diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-02-17 10:30:01 +0100 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-02-17 11:01:29 +0000 |
commit | 19320346ab12dfb97b118b9d12fdb562a8ec80e2 (patch) | |
tree | 0a6039d62604ce53e6ff21a754cf2e055240bb6d /testcases/functest_utils.py | |
parent | f841d89babc4cead31cf746628ef2966180bf9a5 (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>
(cherry picked from commit 62131c3f53e66b6305bdd163037d452483821cfd)
Diffstat (limited to 'testcases/functest_utils.py')
-rw-r--r-- | testcases/functest_utils.py | 5 |
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): |