X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fns.py;h=aa1040d782c511a5b1ac7a928f530ff3f26e4778;hp=1b4e9ebc92a76db0199e52c9bf0e99451bc898bd;hb=55fa0bb312eebc5899abca6124b2114db1682f7b;hpb=fb13d2ea0b862011b80f2c64c95bdada2c893ff7 diff --git a/NG-RO/osm_ng_ro/ns.py b/NG-RO/osm_ng_ro/ns.py index 1b4e9ebc..aa1040d7 100644 --- a/NG-RO/osm_ng_ro/ns.py +++ b/NG-RO/osm_ng_ro/ns.py @@ -548,8 +548,12 @@ class Ns(object): for iface_index, interface in enumerate(target_vdu["interfaces"]): if interface.get("ns-vld-id"): net_text = ns_preffix + ":vld." + interface["ns-vld-id"] - else: + elif interface.get("vnf-vld-id"): net_text = vnf_preffix + ":vld." + interface["vnf-vld-id"] + else: + self.logger.error("Interface {} from vdu {} not connected to any vld".format( + iface_index, target_vdu["vdu-name"])) + continue # interface not connected to any vld extra_dict["depends_on"].append(net_text) net_item = {x: v for x, v in interface.items() if x in ("name", "vpci", "port_security", "port_security_disable_strategy", "floating_ip")}