From deca6d35cd4ba0c6444b92d15b07ade1169d0ef3 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 14 Dec 2017 12:13:19 +0100 Subject: Migrate to SNAPs openstack library Functest is deprecating its openstack library which we were using extensively We need then to move to an alternative and the best appears to be SNAPs Change-Id: Icaa0b9f1ec580545b9d0faa88be2080a310deaf7 Signed-off-by: Manuel Buil --- sfc/lib/topology_shuffler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sfc/lib/topology_shuffler.py') diff --git a/sfc/lib/topology_shuffler.py b/sfc/lib/topology_shuffler.py index 24c8f875..f678137a 100644 --- a/sfc/lib/topology_shuffler.py +++ b/sfc/lib/topology_shuffler.py @@ -1,7 +1,6 @@ import datetime import random import logging -import sfc.lib.utils as sfc_utils logger = logging.getLogger(__name__) @@ -78,7 +77,7 @@ def get_seed(): return seed -def topology(vnf_names, av_zones=None, seed=None): +def topology(vnf_names, os_sfc_util, av_zones=None, seed=None): ''' Get the topology for client, server and vnfs. The topology is returned as a dict in the form @@ -93,7 +92,7 @@ def topology(vnf_names, av_zones=None, seed=None): ''' if av_zones is None: - av_zones = sfc_utils.get_av_zones() + av_zones = os_sfc_util.get_av_zones() if len(av_zones) < 2 or seed is None: # fall back to nova availability zone -- cgit 1.2.3-korg