]> git.proxmox.com Git - mirror_lxc.git/commitdiff
confile/utils: Adds veth vlan tagged ID tracing to lxc_log_configured_netdevs
authorThomas Parrott <thomas.parrott@canonical.com>
Thu, 4 Jun 2020 14:30:34 +0000 (15:30 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 08:40:06 +0000 (09:40 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/confile_utils.c

index f8dcf2ae56c5a8f9e88b1bd0066ecc29b73ed532..89fc555bc0eb83a1a7917eb6e4138d4c95fd4b34 100644 (file)
@@ -274,6 +274,11 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf)
                        if (netdev->priv.veth_attr.vlan_id_set)
                                TRACE("veth vlan id: %d", netdev->priv.veth_attr.vlan_id);
 
+                       lxc_list_for_each_safe(cur, &netdev->priv.veth_attr.vlan_tagged_ids, next) {
+                               unsigned short vlan_tagged_id = PTR_TO_USHORT(cur->elem);
+                               TRACE("veth vlan tagged id: %u", vlan_tagged_id);
+                       }
+
                        break;
                case LXC_NET_MACVLAN:
                        TRACE("type: macvlan");