From 0335c28f6c30d9c53df2e83a9a37e436da40008d Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 15 Nov 2017 00:10:53 +0100 Subject: ssh_support: Use ip link set for creating VLANs This replaces the deprecated ifconfig command. Signed-off-by: Dimitri Staessens --- rumba/ssh_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py index 80e079e..bb0eb2e 100644 --- a/rumba/ssh_support.py +++ b/rumba/ssh_support.py @@ -317,7 +317,7 @@ def setup_vlan(testbed, node, vlan_id, int_name): cmds = [sudo("ip link add link %(ifname)s name " "%(ifname)s.%(vlan)s type vlan id %(vlan)s" % args), - sudo("ifconfig %(ifname)s.%(vlan)s up" + sudo("ip link set dev %(ifname)s.%(vlan)s up" % args)] if testbed.flags['no_vlan_offload']: cmds += [sudo("ethtool -K %(ifname)s rxvlan off" -- cgit v1.2.3