From: tierno Date: Thu, 12 Mar 2020 17:31:42 +0000 (+0000) Subject: fix 1023. Issue getting ip from pdu instances X-Git-Tag: v7.1.0rc1~20 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=commitdiff_plain;h=c88003e347abe00f8091fbcbd9112967b07c9cc9;hp=ad6d533c806bce1b3506c22570838570a1055da7 fix 1023. Issue getting ip from pdu instances Change-Id: I00ded05ca164e8dec18b821650ac16679137434c Signed-off-by: tierno --- diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 8ca35d0..6121ff2 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -759,7 +759,7 @@ class NsLcmOpTopic(BaseTopic): vnfr_update[iface_text + ".{}".format(k)] = v vnfr_update_rollback[iface_text + ".{}".format(k)] = vdur_interface.get(v) if pdu_interface.get("ip-address"): - if vdur_interface.get("mgmt-interface"): + if vdur_interface.get("mgmt-interface") or vdur_interface.get("mgmt-vnf"): vnfr_update_rollback[vdu_text + ".ip-address"] = vdur.get("ip-address") vnfr_update[vdu_text + ".ip-address"] = pdu_interface["ip-address"] if vdur_interface.get("mgmt-vnf"):