bug(port-security): port security keys added to vnfr/vdur. Bug 1430. Bug 1407
[osm/NBI.git] / osm_nbi / instance_topics.py
index 35c39d3..e3f8ad4 100644 (file)
@@ -559,6 +559,13 @@ class NsrTopic(BaseTopic):
                     "connection-point-id": icp["id"],
                     "name": icp.get("id"),
                 }
+
+                if "port-security-enabled" in icp:
+                    vdu_icp["port-security-enabled"] = icp["port-security-enabled"]
+
+                if "port-security-disable-strategy" in icp:
+                    vdu_icp["port-security-disable-strategy"] = icp["port-security-disable-strategy"]
+
                 vdur["internal-connection-point"].append(vdu_icp)
 
                 for iface in icp.get("virtual-network-interface-requirement", ()):
@@ -1098,6 +1105,8 @@ class NsLcmOpTopic(BaseTopic):
                                 vnfr_update[vnfr_update_text + ".mac-address"] = increment_ip_mac(
                                     iface_inst_param.get("mac-address"), vdur.get("count-index", 0))
                                 vnfr_update[vnfr_update_text + ".fixed-mac"] = True
+                            if iface_inst_param.get("floating-ip-required"):
+                                vnfr_update[vnfr_update_text + ".floating-ip-required"] = True
                 # get vnf.internal-vld.internal-conection-point instantiation params to update vnfr.vdur.interfaces
                 # TODO update vld with the ip-profile
                 for ivld_inst_param in get_iterable(vnf_inst_params.get("internal-vld")):