]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: log ifindex for host side veth device
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 31 Aug 2017 13:25:16 +0000 (15:25 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 4 Sep 2017 11:19:14 +0000 (13:19 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile_utils.c

index 18d8226e0629992cabe58acf864fbade9326d586..31e705f9df9f052bebe729af36b69091a301865a 100644 (file)
@@ -266,6 +266,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");