From: bravof Date: Thu, 4 Feb 2021 17:58:04 +0000 (-0300) Subject: bug(port-security): port security keys added to vnfr/vdur. Bug 1430. Bug 1407 X-Git-Tag: v9.1.0~1^2~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F10254%2F1;p=osm%2FNBI.git bug(port-security): port security keys added to vnfr/vdur. Bug 1430. Bug 1407 Change-Id: I7ba1def44ad18cb1b5c5847fbe258b158467191c Signed-off-by: bravof --- diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index c2a4be3..e3f8ad4 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -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", ()):