aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitrios Markou <mardim@intracom-telecom.com>2018-03-08 10:49:42 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-08 10:49:42 +0000
commitcde9c60e0bcb6ba141ce50d913dc138bfca3493d (patch)
tree67da6079e269bb64b64462df825b94e80f5a051c
parent607dc8efc9c29bca257089c94226c1ff9b079a1f (diff)
parentdd7c0aad5848ff7f53392923b368a611ece47852 (diff)
Merge "Update SNAPs usage of library"
-rw-r--r--sfc/lib/openstack_utils.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py
index 35e667ae..2752ba5d 100644
--- a/sfc/lib/openstack_utils.py
+++ b/sfc/lib/openstack_utils.py
@@ -45,6 +45,7 @@ class OpenStackSFC:
self.nova = nova_utils.nova_client(self.os_creds)
self.neutron = neutron_utils.neutron_client(self.os_creds)
self.heat = heat_utils.heat_client(self.os_creds)
+ self.keystone = keystone_utils.keystone_client(self.os_creds)
def register_glance_image(self, name, url, img_format, public):
image_settings = ImageConfig(name=name, img_format=img_format, url=url,
@@ -186,14 +187,18 @@ class OpenStackSFC:
'''
stacks = self.heat.stacks.list()
fips = []
+ project_name = 'admin'
for stack in stacks:
servers = heat_utils.get_stack_servers(self.heat,
self.nova,
self.neutron,
- stack)
+ self.keystone,
+ stack,
+ project_name)
sf_creator = cr_inst.generate_creator(self.os_creds,
servers[0],
- self.image_settings)
+ self.image_settings,
+ project_name)
port_name = servers[0].ports[0].name
name = servers[0].name + "-float"
float_ip = FloatingIpConfig(name=name,