summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/heat
diff options
context:
space:
mode:
authorYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2017-01-17 02:45:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-17 02:45:28 +0000
commit14f84a307691cc17d02ec10dd07cf5f3e2c03705 (patch)
treed738e24ec847d4d260e85dbf344a0cb123cd086d /utils/infra_setup/heat
parent7442c4d4516cd34dd50918a7b82462a356c94944 (diff)
parent9512f7cabad8cb1d7aaee22efe018c6539148dc2 (diff)
Merge "Bottlenecks stack environment prepare"
Diffstat (limited to 'utils/infra_setup/heat')
-rw-r--r--utils/infra_setup/heat/manager.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/infra_setup/heat/manager.py b/utils/infra_setup/heat/manager.py
index 3a270ac1..5c181ae6 100644
--- a/utils/infra_setup/heat/manager.py
+++ b/utils/infra_setup/heat/manager.py
@@ -11,6 +11,7 @@ import time
import common as op_utils
from glanceclient.client import Client as GlanceClient
from novaclient.client import Client as NovaClient
+from neutronclient.v2_0.client import Client as NeutronClient
def _get_glance_client():
@@ -28,6 +29,12 @@ def _get_nova_client():
session=sess)
+def _get_neutron_client():
+ sess = op_utils.get_session()
+ neutron_client = NeutronClient(session=sess)
+ return neutron_client
+
+
def stack_create_images(
imagefile=None,
image_name="bottlenecks_image"):