summaryrefslogtreecommitdiffstats
path: root/testcases/functest_utils.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-01-06 07:30:24 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-01-06 07:30:24 +0000
commitd5f9c2da17a62a5402d0990fe174a7f7b971d9e0 (patch)
treea40c010b6a23bcdc024cd99b5b48f07c1521cb95 /testcases/functest_utils.py
parent91a3e0ae28f0cbf224cabc7e3a0ebd5df2fcc0ba (diff)
parenta215e9127631b428420ba9b89077271a161facc4 (diff)
Merge "Using shared private network"
Diffstat (limited to 'testcases/functest_utils.py')
-rw-r--r--testcases/functest_utils.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py
index fe0b3be74..682c33ee3 100644
--- a/testcases/functest_utils.py
+++ b/testcases/functest_utils.py
@@ -143,6 +143,16 @@ def create_neutron_net(neutron_client, name):
return False
+def update_neutron_net(neutron_client, network_id, shared=False):
+ json_body = {'network': {'shared': shared}}
+ try:
+ neutron_client.update_network(network_id, body=json_body)
+ return True
+ except:
+ print "Error:", sys.exc_info()[0]
+ return False
+
+
def delete_neutron_net(neutron_client, network_id):
try:
neutron_client.delete_network(network_id)