| commit | 6844a400ed2fd0d261def4f3181a07f522db50bf | [log] [tgz] |
|---|---|---|
| author | chamarty <ravi.chamarty@riftio.com> | Thu Jan 26 16:32:24 2017 +0000 |
| committer | chamarty <ravi.chamarty@riftio.com> | Thu Jan 26 16:32:24 2017 +0000 |
| tree | 1349628159bba75029b638bdec94409d0407bd54 | |
| parent | 30118f288deeed4013f940c0e5a8c59d5fa29683 [diff] |
Fix interface ordering for bridge interfaces in translation layer Change-Id: Ib5727c513b9bf47f1d97436448dac2d6f55925d0 Signed-off-by: chamarty <ravi.chamarty@riftio.com>
diff --git a/models/openmano/python/rift/openmano/rift2openmano.py b/models/openmano/python/rift/openmano/rift2openmano.py index b39a9d4..28eb483 100755 --- a/models/openmano/python/rift/openmano/rift2openmano.py +++ b/models/openmano/python/rift/openmano/rift2openmano.py
@@ -579,6 +579,9 @@ 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