Added information about MTU at VMs and OS networks
* go inside VMs and get MTUs, print them
* check 'mtu' at neutron nets, print them in table
This information is useful when the QA engineers get
some unexpected results, so they can see which MTU is
set by default at the newly created OS network (SPT
nets) and which MTU is set at VMs (should be the same
as networks have).
Change-Id: Iab7b4bb5830bae0d638b05f9eacc5ae07743eb9d
diff --git a/utils/ssh.py b/utils/ssh.py
index 0d82c52..f6d61a2 100644
--- a/utils/ssh.py
+++ b/utils/ssh.py
@@ -178,6 +178,13 @@
"seconds.".format(floating_ip, attempts, bsleep))
time.sleep(bsleep)
+ def get_mtu_from_vm(self, floating_ip, user='ubuntu', password='password',
+ private_key=None):
+ transport = SSHTransport(floating_ip, user, password, private_key)
+ iface = (transport.exec_command(
+ 'ls /sys/class/net | grep -v lo | head -n 1')).decode("utf-8")
+ mtu = transport.exec_command('cat /sys/class/net/{}/mtu'.format(iface))
+ return mtu.decode("utf-8")
class prepare_iperf(object):