aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2017-11-15 00:10:53 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2017-11-15 00:21:23 +0100
commit0335c28f6c30d9c53df2e83a9a37e436da40008d (patch)
treed3f8bba302b6a7bf7fb5d14875a4d4f90f404ccc
parent32e751dc3396311d0bf1e3073cd4b2927303b51f (diff)
downloadrumba-0335c28f6c30d9c53df2e83a9a37e436da40008d.tar.gz
rumba-0335c28f6c30d9c53df2e83a9a37e436da40008d.zip
ssh_support: Use ip link set for creating VLANs
This replaces the deprecated ifconfig command. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
-rw-r--r--rumba/ssh_support.py2
1 files changed, 1 insertions, 1 deletions
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"