diff options
author | 2015-10-29 14:38:40 +0100 | |
---|---|---|
committer | 2015-10-29 14:43:25 +0100 | |
commit | 291f7804f4a89946aee961b4bed43fa91b4a3c1f (patch) | |
tree | 461ededd690aefb5e2a4f7244c65619cdd314b3b /testcases/functest_utils.py | |
parent | bc64327a3c3d9de8d8dcd37495a93c2d2be236da (diff) |
Fix error when deleting the network in vPing test.
JIRA: FUNCTEST-93
Change-Id: I9472c1183eea86b0c018059aa17b76bd2932ad8e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/functest_utils.py')
-rw-r--r-- | testcases/functest_utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py index 262149b2..323297f2 100644 --- a/testcases/functest_utils.py +++ b/testcases/functest_utils.py @@ -210,6 +210,13 @@ def create_neutron_port(neutron_client, name, network_id, ip): print "Error:", sys.exc_info()[0] return False +def delete_neutron_port(neutron_client, port_id): + try: + neutron_client.delete_port(port_id) + return True + except: + print "Error:", sys.exc_info()[0] + return False def get_network_id(neutron_client, network_name): networks = neutron_client.list_networks()['networks'] |