X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fns.py;h=a1d2736406e93e6465bbfc09fc08828baf8acfbd;hb=ba3bae32479541d826dc7cdea872d7b9c22514bc;hp=57fbb0d263403f9e0c0bb9b85c96ae951841895b;hpb=e88f2d6da5b3e18b25944ac1326fbace46435036;p=osm%2FRO.git diff --git a/NG-RO/osm_ng_ro/ns.py b/NG-RO/osm_ng_ro/ns.py index 57fbb0d2..a1d27364 100644 --- a/NG-RO/osm_ng_ro/ns.py +++ b/NG-RO/osm_ng_ro/ns.py @@ -1005,6 +1005,7 @@ class Ns(object): disk_list.append(persistent_root_disk[vsd["id"]]) return persistent_root_disk + return persistent_root_disk @staticmethod def find_persistent_volumes( @@ -1774,7 +1775,11 @@ class Ns(object): net_item["model"] = interface.get("type") if interface.get("ip-address"): - net_item["ip_address"] = interface["ip-address"] + dual_ip = interface.get("ip-address").split(";") + if len(dual_ip) == 2: + net_item["ip_address"] = dual_ip + else: + net_item["ip_address"] = interface["ip-address"] if interface.get("mac-address"): net_item["mac_address"] = interface["mac-address"]