From 3ca59d31b31a78263e66caf7bc665cb71987a8f9 Mon Sep 17 00:00:00 2001 From: Gulsum Atici Date: Tue, 28 Mar 2023 17:50:48 +0300 Subject: [PATCH] Fix Bug 2229 Set fixed IP address for VDU through VNFD and the instantiation params Change-Id: Ia912cd52a0965a6c2b23faa2b88d9b4d0569fd3f Signed-off-by: Gulsum Atici --- osm_nbi/instance_topics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 006dbc4..8271f13 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -887,7 +887,7 @@ class NsrTopic(BaseTopic): vdur["internal-connection-point"].append(vdu_icp) for iface in icp.get("virtual-network-interface-requirement", ()): - iface_fields = ("name", "mac-address") + iface_fields = ("name", "mac-address", "ip-address") vdu_iface = { x: iface[x] for x in iface_fields if iface.get(x) is not None } @@ -1416,8 +1416,8 @@ class NsLcmOpTopic(BaseTopic): ivld.get("id"): set() for ivld in get_iterable(vnfd.get("int-virtual-link-desc")) } - for vdu in get_iterable(vnfd.get("vdu")): - for cpd in get_iterable(vnfd.get("int-cpd")): + for vdu in vnfd.get("vdu", {}): + for cpd in vdu.get("int-cpd", {}): if cpd.get("int-virtual-link-desc"): vnfd_ivlds_cpds[cpd.get("int-virtual-link-desc")] = cpd.get("id") -- 2.25.1