diff options
author | Marco Capitani <m.capitani@nextworks.it> | 2017-06-09 10:44:56 +0200 |
---|---|---|
committer | Marco Capitani <m.capitani@nextworks.it> | 2017-06-09 10:44:56 +0200 |
commit | 57218e2bd37d32a9dafedde90a62b46955ac5e8f (patch) | |
tree | ca2ee339226d2fcffde343ecf2480446e6ea1ef2 /rumba/ssh_support.py | |
parent | fcdbe20a05764f84a7c95c4bf916a7569e373270 (diff) | |
download | rumba-57218e2bd37d32a9dafedde90a62b46955ac5e8f.tar.gz rumba-57218e2bd37d32a9dafedde90a62b46955ac5e8f.zip |
jfed: build mac2ifname; model: added flags to testbed
Diffstat (limited to 'rumba/ssh_support.py')
-rw-r--r-- | rumba/ssh_support.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py index f8ba03b..a1e1ba4 100644 --- a/rumba/ssh_support.py +++ b/rumba/ssh_support.py @@ -275,9 +275,9 @@ def setup_vlan(testbed, node, vlan_id, int_name): % args), sudo("ifconfig %(ifname)s.%(vlan)s up" % args)] - # TODO: is ethtool needed? Should install or check if it is present. - # cmds += [sudo("ethtool -K %(ifname)s rxvlan off" - # % args), - # sudo("ethtool -K %(ifname)s txvlan off" - # % args)] + if testbed.flags['no_vlan_offload']: + cmds += [sudo("ethtool -K %(ifname)s rxvlan off" + % args), + sudo("ethtool -K %(ifname)s txvlan off" + % args)] execute_commands(testbed, node.ssh_config, cmds) |