Create network/subnet refer to the new datamodel
[vfc/gvnfm/vnflcm.git] / lcm / lcm / samples / tests.py
index e34f6a1..9c57d84 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",