aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-01-25 19:23:51 +0100
committerManuel Buil <mbuil@suse.com>2018-01-26 10:44:24 +0100
commitb3791d8df2a7666603148e771191e1f6e7f4a784 (patch)
treed0ee0f3a5c273db26a27773c1da86bf359875723
parent74a36db25f6fe2b62b41846f27fbf929d270afe5 (diff)
Fix cleanup function
A floating ip remains when executing the clean up function. That floating ip belongs to the Tacker VNF and thus we should add that creator to the list Change-Id: Ic15574bf93f30a26f81a4944d742307dda4bfe6d Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--sfc/lib/openstack_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py
index f55f62e8..28cfebe7 100644
--- a/sfc/lib/openstack_utils.py
+++ b/sfc/lib/openstack_utils.py
@@ -193,6 +193,7 @@ class OpenStackSFC:
port_name=port_name,
router_name=router.name)
ip = sf_creator.add_floating_ip(float_ip)
+ self.creators.append(sf_creator)
fips.append(ip.ip)
return fips