aboutsummaryrefslogtreecommitdiff
path: root/rumba/testbeds/jfed.py
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2017-06-09 10:44:56 +0200
committerMarco Capitani <m.capitani@nextworks.it>2017-06-09 10:44:56 +0200
commit57218e2bd37d32a9dafedde90a62b46955ac5e8f (patch)
treeca2ee339226d2fcffde343ecf2480446e6ea1ef2 /rumba/testbeds/jfed.py
parentfcdbe20a05764f84a7c95c4bf916a7569e373270 (diff)
downloadrumba-57218e2bd37d32a9dafedde90a62b46955ac5e8f.tar.gz
rumba-57218e2bd37d32a9dafedde90a62b46955ac5e8f.zip
jfed: build mac2ifname; model: added flags to testbed
Diffstat (limited to 'rumba/testbeds/jfed.py')
-rw-r--r--rumba/testbeds/jfed.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/rumba/testbeds/jfed.py b/rumba/testbeds/jfed.py
index 1e1c732..83fbce7 100644
--- a/rumba/testbeds/jfed.py
+++ b/rumba/testbeds/jfed.py
@@ -68,6 +68,7 @@ class Testbed(mod.Testbed):
tar.close()
logger.info("Extracted in current directory")
os.remove(tarball)
+ self.flags['no_vlan_offload'] = True
def create_rspec(self, experiment):
impl = xml.getDOMImplementation()
@@ -189,11 +190,17 @@ class Testbed(mod.Testbed):
mac = ":".join(
[aux_mac_address[i:i+2] for i in range(0, 12, 2)]
)
- ssh_support.copy_path_to_testbed(
- self,
- node_n.ssh_config,
- os.path.join(dir_path, 'mac2ifname.sh'),
- '')
+ command = (
+ 'echo "mac=\\"\$1\\"; cd / && ./sbin/ifconfig -a | '
+ 'awk \'/^[a-z]/ { if ( \\"\'\\"\$mac\\"\'\\" == \$5 )'
+ ' print \$1}\'" > mac2ifname.sh')
+ ssh_support.execute_command(self, node_n.ssh_config, command)
+
+ # ssh_support.copy_path_to_testbed(
+ # self,
+ # node_n.ssh_config,
+ # os.path.join(dir_path, 'mac2ifname.sh'),
+ # '')
ssh_support.execute_command(
self,
node_n.ssh_config,