X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fns.py;h=e62eef59207fa72ef9b26f47768e12313447c432;hp=2db33e497ee204a8957c87e733fe0bdda9052380;hb=38d1217c445a5fd45aacae22541903439992e0ac;hpb=f29a91f8d792936bf9c264f3e6075784b58ebc68 diff --git a/NG-RO/osm_ng_ro/ns.py b/NG-RO/osm_ng_ro/ns.py index 2db33e49..e62eef59 100644 --- a/NG-RO/osm_ng_ro/ns.py +++ b/NG-RO/osm_ng_ro/ns.py @@ -785,6 +785,17 @@ class Ns(object): continue # interface not connected to any vld extra_dict["depends_on"].append(net_text) + + if "port-security-enabled" in interface: + interface["port_security"] = ( + interface.pop("port-security-enabled") + ) + + if "port-security-disable-strategy" in interface: + interface["port_security_disable_strategy"] = ( + interface.pop("port-security-disable-strategy") + ) + net_item = { x: v for x, v in interface.items()