aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/functest_utils.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-02-17 10:30:01 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2016-02-17 11:32:16 +0100
commit62131c3f53e66b6305bdd163037d452483821cfd (patch)
treefc40fd44e8db978011cc97db28d2a8e32c84eb07 /testcases/functest_utils.py
parent81892929f7fc0949b08eb79c93583658a2b87c50 (diff)
Release floating ip after vPing_ssh test
Also, check the console to see if the instance fails when sending the discover to the dhcp agent Change-Id: I314051886b9580a42bb88f2d88a9bdbf2a9e198a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/functest_utils.py')
-rw-r--r--testcases/functest_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py
index 838e72634..f119c278a 100644
--- a/testcases/functest_utils.py
+++ b/testcases/functest_utils.py
@@ -146,11 +146,12 @@ def create_floating_ip(neutron_client):
props = {'floating_network_id': extnet_id}
try:
ip_json = neutron_client.create_floatingip({'floatingip': props})
- floating_ip = ip_json['floatingip']['floating_ip_address']
+ fip_addr = ip_json['floatingip']['floating_ip_address']
+ fip_id = ip_json['floatingip']['id']
except Exception, e:
print "Error [create_floating_ip(neutron_client)]:", e
return None
- return floating_ip
+ return {'fip_addr': fip_addr, 'fip_id': fip_id}
def add_floating_ip(nova_client, server_id, floatingip_id):