X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_ro%2Fnfvo.py;h=94b029aab2fde21fb803cbbf5198b9a03e0df088;hb=2391cc10a3f1b845ef81d21454bce74b2169783d;hp=a55994183c237958be452fe33e68e9dd7fa29d9b;hpb=f57559639b53fbe41421eff5212248321e655b19;p=osm%2FRO.git diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index a5599418..94b029aa 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -2191,7 +2191,9 @@ def create_instance(mydb, tenant_id, instance_dict): # 3. Creating new vm instances in the VIM #myvim.new_vminstance(self,vimURI,tenant_id,name,description,image_id,flavor_id,net_dict) - for sce_vnf in scenarioDict['vnfs']: + sce_vnf_list = sorted(scenarioDict['vnfs'], key=lambda k: k['name']) + #for sce_vnf in scenarioDict['vnfs']: + for sce_vnf in sce_vnf_list: if sce_vnf.get("datacenter"): vim = myvims[ sce_vnf["datacenter"] ] myvim_thread_id = myvim_threads_id[ sce_vnf["datacenter"] ]