From 134ded24d0135d5b394007aa04c586eadb07e15b Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Wed, 3 Jun 2020 11:07:15 +0100 Subject: [PATCH] confile/utils: Adds veth mode and vlan ID tracing to lxc_log_configured_netdevs Signed-off-by: Thomas Parrott --- src/lxc/confile_utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index 05dadf9ec..f8dcf2ae5 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -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"); -- 2.47.2