]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile/utils: Adds veth mode and vlan ID tracing to lxc_log_configured_netdevs
authorThomas Parrott <thomas.parrott@canonical.com>
Wed, 3 Jun 2020 10:07:15 +0000 (11:07 +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 05dadf9ec62c2bc896726765e37fa563d72ae58c..f8dcf2ae56c5a8f9e88b1bd0066ecc29b73ed532 100644 (file)
@@ -257,6 +257,7 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf)
                switch (netdev->type) {
                case LXC_NET_VETH:
                        TRACE("type: veth");
+                       TRACE("veth mode: %d", netdev->priv.veth_attr.mode);
 
                        if (netdev->priv.veth_attr.pair[0] != '\0')
                                TRACE("veth pair: %s",
@@ -269,6 +270,10 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf)
                        if (netdev->priv.veth_attr.ifindex > 0)
                                TRACE("host side ifindex for veth device: %d",
                                      netdev->priv.veth_attr.ifindex);
+
+                       if (netdev->priv.veth_attr.vlan_id_set)
+                               TRACE("veth vlan id: %d", netdev->priv.veth_attr.vlan_id);
+
                        break;
                case LXC_NET_MACVLAN:
                        TRACE("type: macvlan");