diff options
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 262149b25..323297f28 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'] |