X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fns.py;h=9841852ad585d0fa835d856ca22fc86b72bbb6e9;hb=66af69485ee8c6921ba901b8b594565290d41a24;hp=e62eef59207fa72ef9b26f47768e12313447c432;hpb=38d1217c445a5fd45aacae22541903439992e0ac;p=osm%2FRO.git diff --git a/NG-RO/osm_ng_ro/ns.py b/NG-RO/osm_ng_ro/ns.py index e62eef59..9841852a 100644 --- a/NG-RO/osm_ng_ro/ns.py +++ b/NG-RO/osm_ng_ro/ns.py @@ -687,9 +687,7 @@ class Ns(object): "dhcp_start_address": ip_profile.get("dhcp-params", {}).get( "start-address", None ), - "dhcp_count": ip_profile.get("dhcp-params", {}).get( - "count", None - ), + "dhcp_count": ip_profile.get("dhcp-params", {}).get("count", None), } if ip_profile.get("dns-server"): @@ -787,13 +785,13 @@ class Ns(object): extra_dict["depends_on"].append(net_text) if "port-security-enabled" in interface: - interface["port_security"] = ( - interface.pop("port-security-enabled") + 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") + interface["port_security_disable_strategy"] = interface.pop( + "port-security-disable-strategy" ) net_item = {