X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=RO%2Fosm_ro%2Fnfvo.py;fp=RO%2Fosm_ro%2Fnfvo.py;h=f06bce41f84cb30885abad33687acf1405185770;hb=c621450cfed2b142b5cd3d9b355dd6155e6b0d76;hp=100c6aed8df6e70af80a2e00d3cf32d2a9ff8bce;hpb=f3b9008ac799485802a235e6f8700796ef9b0d8f;p=osm%2FRO.git diff --git a/RO/osm_ro/nfvo.py b/RO/osm_ro/nfvo.py index 100c6aed..f06bce41 100644 --- a/RO/osm_ro/nfvo.py +++ b/RO/osm_ro/nfvo.py @@ -3315,7 +3315,10 @@ def create_instance(mydb, tenant_id, instance_dict): # TODO: use this information during network creation wim_account_id = wim_account_name = None if len(involved_datacenters) > 1 and 'uuid' in sce_net: - if target_wim_account is None or target_wim_account is True: # automatic selection of WIM + urls = [myvims[v].url for v in involved_datacenters] + if len(set(urls)) < 2: + wim_usage[sce_net['uuid']] = False + elif target_wim_account is None or target_wim_account is True: # automatic selection of WIM # OBS: sce_net without uuid are used internally to VNFs # and the assumption is that VNFs will not be split among # different datacenters