summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/heat/manager.py
diff options
context:
space:
mode:
authorliyin <liyin11@huawei.com>2017-01-11 19:10:57 +0800
committerAce Lee <liyin11@huawei.com>2017-01-12 08:36:38 +0000
commit9512f7cabad8cb1d7aaee22efe018c6539148dc2 (patch)
treee5fa5532cb7d8c00428999c3d09d64d466080004 /utils/infra_setup/heat/manager.py
parente1a54d34819563946d1ff1ec673d1d261b826ad8 (diff)
Bottlenecks stack environment prepare
JIRA: BOTTLENECK-124 This code is for Bottlenecks to have a common way to prepare stack environment. those action are divided into three part: fetch os file, source file and adding ext-net to source file. those function also need change other file like fetch_os_creds.sh. And add some config to config file. remove parser file logging function. This code is relying on the patch: Modify utils/ code into PEP8 style Change-Id: I54405776b6dc3f5fb939e511c96963a9c1624938 Signed-off-by: liyin <liyin11@huawei.com>
Diffstat (limited to 'utils/infra_setup/heat/manager.py')
-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"):