From 3576644cf8903148f59718ff998194b6bee20d84 Mon Sep 17 00:00:00 2001 From: bravof Date: Thu, 4 Feb 2021 14:58:04 -0300 Subject: [PATCH] bug(port-security): port security keys added to vnfr/vdur. Bug 1430. Bug 1407 Change-Id: I7ba1def44ad18cb1b5c5847fbe258b158467191c Signed-off-by: bravof --- osm_nbi/instance_topics.py | 7 +++++++ 1 file changed, 7 insertions(+) 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", ()): -- 2.25.1