fix 1023. Issue getting ip from pdu instances 80/8680/2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 12 Mar 2020 17:31:42 +0000 (17:31 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 12 Mar 2020 22:17:06 +0000 (23:17 +0100)
Change-Id: I00ded05ca164e8dec18b821650ac16679137434c
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_nbi/instance_topics.py

index 8ca35d0..6121ff2 100644 (file)
@@ -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"):