bug(port-security): port security keys added to vnfr/vdur. Bug 1430. Bug 1407 54/10254/1
authorbravof <fbravo@whitestack.com>
Thu, 4 Feb 2021 17:58:04 +0000 (14:58 -0300)
committerbravof <fbravo@whitestack.com>
Thu, 4 Feb 2021 17:58:04 +0000 (14:58 -0300)
Change-Id: I7ba1def44ad18cb1b5c5847fbe258b158467191c
Signed-off-by: bravof <fbravo@whitestack.com>
osm_nbi/instance_topics.py

index c2a4be3..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", ()):