projects
/
osm
/
SO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix interface ordering for bridge interfaces in translation layer
[osm/SO.git]
/
models
/
openmano
/
python
/
rift
/
openmano
/
rift2openmano.py
diff --git
a/models/openmano/python/rift/openmano/rift2openmano.py
b/models/openmano/python/rift/openmano/rift2openmano.py
index
b39a9d4
..
28eb483
100755
(executable)
--- a/
models/openmano/python/rift/openmano/rift2openmano.py
+++ b/
models/openmano/python/rift/openmano/rift2openmano.py
@@
-579,6
+579,9
@@
def rift2openmano_vnfd(rift_vnfd, rift_nsd):
if bps/x[1] >= 1:
intf["bandwidth"] = "{} {}bps".format(math.ceil(bps/x[1]), x[0])
+ # Sort bridge-ifaces-list TODO sort others
+ newlist = sorted(vnfc["bridge-ifaces"], key=lambda k: k['name'])
+ vnfc["bridge-ifaces"] = newlist
return openmano_vnf