aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/snaps/snaps_utils.py
diff options
context:
space:
mode:
authorHelen Yao <yaohelan@huawei.com>2016-12-24 02:15:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-24 02:15:38 +0000
commit8f36219f66c7319488c14a46514060e1c84734d2 (patch)
tree1177464eb1c869ed93c60301eb6bd227e8634465 /functest/opnfv_tests/openstack/snaps/snaps_utils.py
parent59daa584271df5e0f3de019b385e088a02519295 (diff)
parent645da883ab970d9c738e9534d16357ef256e19c9 (diff)
Merge "refactor snaps and example using new constants provider"
Diffstat (limited to 'functest/opnfv_tests/openstack/snaps/snaps_utils.py')
-rw-r--r--functest/opnfv_tests/openstack/snaps/snaps_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/snaps/snaps_utils.py b/functest/opnfv_tests/openstack/snaps/snaps_utils.py
index a25ad3e0..4ea1a04a 100644
--- a/functest/opnfv_tests/openstack/snaps/snaps_utils.py
+++ b/functest/opnfv_tests/openstack/snaps/snaps_utils.py
@@ -5,17 +5,18 @@
#
# http://www.apache.org/licenses/LICENSE-2.0
-import functest.utils.functest_utils as ft_utils
from snaps.openstack.tests import openstack_tests
from snaps.openstack.utils import neutron_utils
+from functest.utils.constants import CONST
+
def get_ext_net_name():
"""
Returns the first external network name
:return:
"""
- os_env_file = ft_utils.get_functest_config('general.openstack.creds')
+ os_env_file = CONST.openstack_creds
os_creds = openstack_tests.get_credentials(os_env_file=os_env_file)
neutron = neutron_utils.neutron_client(os_creds)
ext_nets = neutron_utils.get_external_networks(neutron)