diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-09-26 15:54:06 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-09-26 15:54:06 +0800 |
commit | 7f11278c5d26e04a4a3f13125295e2b4ae15411d (patch) | |
tree | b7be9b79c4472593466a4ee02f1efe4938a72939 | |
parent | d98391234384e81f07ae1d3c88ec8c10badeab65 (diff) |
Add report subnetwork info to resmgr
Change-Id: Iee28171a7e041e2a4d9381684882ab5716f0a694
Issue-ID: VFC-460
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r-- | lcm/ns/vls/create_vls.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lcm/ns/vls/create_vls.py b/lcm/ns/vls/create_vls.py index 0065ff68..1d89c3d0 100644 --- a/lcm/ns/vls/create_vls.py +++ b/lcm/ns/vls/create_vls.py @@ -158,7 +158,17 @@ class CreateVls(object): "vlanTransparent": str(self.vl_properties.get("vlan_transparent", "")), "routerExternal": self.route_external, "resourceProviderType": "", - "resourceProviderId": ""} + "resourceProviderId": "", + "subnet_list": [{ + "subnet_name": self.vl_properties.get("name", ""), + "cidr": self.vl_properties.get("cidr", "192.168.0.0/24"), + "ip_version": self.vl_properties.get("ip_version", const.IPV4), + "enable_dhcp": self.vl_properties.get("dhcp_enabled", False), + "gateway_ip": self.vl_properties.get("gateway_ip", ""), + "dns_nameservers": self.vl_properties.get("dns_nameservers", ""), + "host_routes": self.vl_properties.get("host_routes", "") + }] + } resmgr.create_vl(req_param) def create_vl_inst_id_in_vnffg(self): |