From: Christian Brauner Date: Thu, 31 Aug 2017 13:25:16 +0000 (+0200) Subject: network: log ifindex for host side veth device X-Git-Tag: lxc-2.1.0~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d952b351d27147f528af4aa257cb3a0b5fada34a;p=thirdparty%2Flxc.git network: log ifindex for host side veth device Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index 3f2614011..ba4b9c0dd 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -264,6 +264,9 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf) if (netdev->priv.veth_attr.veth1[0] != '\0') TRACE("veth1 : %s", netdev->priv.veth_attr.veth1); + if (netdev->priv.veth_attr.ifindex > 0) + TRACE("host side ifindex for veth device: %d", + netdev->priv.veth_attr.ifindex); break; case LXC_NET_MACVLAN: TRACE("type: macvlan");