From: Christian Brauner Date: Thu, 31 Aug 2017 11:17:11 +0000 (+0200) Subject: network: log veth_attr.pair and veth_attr.veth1 X-Git-Tag: lxc-2.1.0~12^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ce727fcd97e114a44f2d528016efc20b1dda92b;p=thirdparty%2Flxc.git network: log veth_attr.pair and veth_attr.veth1 If the user specified lxc.net.[i].veth.pair attribute to request that the host side of a veth pair be given a specific name let's log it at the trace level. Otherwise, if the user didn't not specify lxc.net.[i].veth.pair veth_attr.veth1 will contain the name of the host side veth device. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index 0d9ff66e6..3f2614011 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -261,6 +261,9 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf) if (netdev->priv.veth_attr.pair) TRACE("veth pair: %s", netdev->priv.veth_attr.pair); + if (netdev->priv.veth_attr.veth1[0] != '\0') + TRACE("veth1 : %s", + netdev->priv.veth_attr.veth1); break; case LXC_NET_MACVLAN: TRACE("type: macvlan");