Feature 10999: Dual-Stack IP Support for VNFs in SOL003 VNFM Interface 84/13984/3
authorRahul Kumar <rahul.k4@tataelxsi.co.in>
Thu, 2 Nov 2023 13:19:32 +0000 (13:19 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 4 Dec 2023 22:44:43 +0000 (23:44 +0100)
Change-Id: Ifb36f670036b805478ba4e1564a72f43ca1b41d7
Signed-off-by: Rahul Kumar <rahul.k4@tataelxsi.co.in>
osm_nbi/osm_vnfm/vnf_instances.py

index d65f1e0..c9d05ac 100644 (file)
@@ -192,6 +192,11 @@ class NewVnfInstance(BaseMethod):
                 }
             ],
         }
+        vnf_profile = vnf_content["vnf-profile"][0]
+        virtual_link_connectivity = vnf_profile["virtual-link-connectivity"][0]
+        constituent_cpd_id = virtual_link_connectivity["constituent-cpd-id"][0]
+        if "ip-address" in indata["additionalParams"]:
+            constituent_cpd_id["ip-address"] = indata["additionalParams"]["ip-address"]
         new_nsd["nsd"]["nsd"][0] = {
             "description": indata["vnfInstanceDescription"],
             "designer": "OSM",