X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=osm_ro%2Fwim%2Fengine.py;fp=osm_ro%2Fwim%2Fengine.py;h=a5da1ddc3b4b9a578c56bb3210e152b9392c862b;hp=39defb18c026d0639417e55358637c9f3ee0cbef;hb=fc7cfbf916777271ba2cf1c8edfa5d62ab9c8ce3;hpb=4a1659a961e78a1bbf50f1702acec3a3c87af7db diff --git a/osm_ro/wim/engine.py b/osm_ro/wim/engine.py index 39defb18..a5da1ddc 100644 --- a/osm_ro/wim/engine.py +++ b/osm_ro/wim/engine.py @@ -356,7 +356,7 @@ class WimEngine(object): (NSR). Arguments: - wim_usage(dict): Mapping between sce_net_id and wim_id + wim_usage(dict): Mapping between sce_net_id and wim_id. If wim_id is False, means not create wam_links networks(list): Dicts containing the information about the networks that will be instantiated to materialize a Network Service (scenario) instance. @@ -374,11 +374,11 @@ class WimEngine(object): wan_groups = [key for key, counter in datacenters_per_group if counter > 1] - + # Keys are tuples(instance_scenario_id, sce_net_id) return [ self.derive_wan_link(wim_usage, key[0], key[1], grouped_networks[key], tenant) - for key in wan_groups + for key in wan_groups if wim_usage.get(key[1]) is not False ] def create_action(self, wan_link): @@ -511,7 +511,7 @@ def _group_networks(networks): (scenario) instance. Returns: dict: Keys are tuples (instance_scenario_id, sce_net_id) and values - are lits of networks. + are list of networks. """ criteria = itemgetter('instance_scenario_id', 'sce_net_id')