network: log ifindex for host side veth device

parent 085bb443
...@@ -264,6 +264,9 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf) ...@@ -264,6 +264,9 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf)
if (netdev->priv.veth_attr.veth1[0] != '\0') if (netdev->priv.veth_attr.veth1[0] != '\0')
TRACE("veth1 : %s", TRACE("veth1 : %s",
netdev->priv.veth_attr.veth1); 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; break;
case LXC_NET_MACVLAN: case LXC_NET_MACVLAN:
TRACE("type: macvlan"); TRACE("type: macvlan");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment