Added the possibility to set the custom MTU for the VMs

If "default" is set, the MTU will be set automatically
from the newly created SPT internal networks. The default
value in the networks comes from the Neutron configuration.
In case users want to test the bandwidth with some
specific custom MTU, they can set the value in integer or
string formates like 8950.

This possibility saves the time for QAs in case they want
to test the bandwidth with some specific MTU at VMs. This
also helps when the default Neutron MTU seems to be not
correct and QA needs to verify the bandwidth with some new
value.

Change-Id: I0f93b33c4f530b95a5dc214c02cfb3a9ddbd182b
diff --git a/utils/os_client.py b/utils/os_client.py
index 12aad1b..8ef55de 100644
--- a/utils/os_client.py
+++ b/utils/os_client.py
@@ -376,12 +376,21 @@
 
     def create_network(self, tenant_id):
         net_name = "spt-test-net-{}".format(random.randrange(100, 999))
+        config = utils.get_configuration()
+        mtu = config.get('custom_mtu') or 'default'
         net_body = {
             'network': {
                 'name': net_name,
                 'tenant_id': tenant_id
             }
         }
+        if mtu != 'default':
+            try:
+                net_body['network']['mtu'] = int(mtu)
+            except ValueError as e:
+                raise ValueError("MTU value '{}' is not correct. "
+                                 "Must be an integer at 'custom_mtu' in "
+                                 "global_config.yaml.\n{}".format(mtu, e))
         net = self.os_clients.network.create_network(net_body)['network']
         logger.info("Created internal network {}".format(net_name))
         return net