Update ip_address in create_port following the DM
[vfc/gvnfm/vnflcm.git] / lcm / lcm / samples / tests.py
index e34f6a1..01c87de 100644 (file)
@@ -166,23 +166,26 @@ inst_res_data = {
             "vl_id": "vl_vNat",
             "description": "",
             "properties": {
-                "name": "vNat_big_subnet",
-                "network_name": "vNat_big",
+                "connectivity_type": {
+                    "layer_protocol": "ipv4"
+                },
+                "vl_profile": {
+                    "networkName": "vNat_big",
+                    "networkType": "vlan",
+                    "physicalNetwork": "physnet1",
+                    "segmentationId": "30",
+                    "vlanTransparent": False,
+                    "cidr": "10.43.38.0/24",
+                    "gatewayIp": "10.43.38.1",
+                    "dhcpEnabled": False,
+                    "startIp": "10.43.38.2",
+                    "endIp": "10.43.38.254"
+                },
                 "is_predefined": False,
                 "vendor": "zte",
                 "netmask": "255.255.255.0",
                 "mtu": 1500,
-                "network_type": "vlan",
-                "physical_network": "physnet1",
-                "segmentation_id": "30",
-                "vlan_transparent": False,
                 "vds_name": "vds1",
-                "cidr": "10.43.38.0/24",
-                "ip_version": 4,
-                "gateway_ip": "10.43.38.1",
-                "dhcp_enabled": False,
-                "start_ip": "10.43.38.2",
-                "end_ip": "10.43.38.254",
                 "host_routes": [
                     {
                         "destination": "10.43.26.0/24",
@@ -201,9 +204,18 @@ inst_res_data = {
     ],
     "cps": [
         {
+
             "properties": {
                 "name": "vNat_big_subnet_port",
-                "ip_address": "10.43.38.253",
+                "protocol_data": [
+                    {
+                        "address_data": {
+                            "l3_address_data": {
+                                "fixed_ip_address": ["10.43.38.253"]
+                            },
+                        },
+                    }
+                ],
                 "vnic_type": "normal",
                 "role": "root",
                 "virtual_network_interface_requirements": [