projects
/
osm
/
RO.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a1a61
)
Deployment of VNFs alphabetically ordered by name in a NS instance
36/2036/2
author
garciadeblas
<gerardo.garciadeblas@telefonica.com>
Sun, 23 Jul 2017 17:44:55 +0000
(19:44 +0200)
committer
tierno
<alfonso.tiernosepulveda@telefonica.com>
Wed, 2 Aug 2017 09:42:45 +0000
(11:42 +0200)
Change-Id: I457a41846687d83f13a6a21439dcb445bfd023e0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_ro/nfvo.py
patch
|
blob
|
history
diff --git
a/osm_ro/nfvo.py
b/osm_ro/nfvo.py
index
a559941
..
94b029a
100644
(file)
--- 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"] ]