Provider network and dnsmaq conf improvment
When dhcp server is launch, now dns servers and default routes can be progated to a vm.
A qrouter is created inside a namespace allowing connections with a provider network and a openvim tenant network.
Change-Id: If2becc010b2886493396c9f6b363980a846a04da
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
diff --git a/osm_openvim/vim_schema.py b/osm_openvim/vim_schema.py
index 1925f05..4689a89 100644
--- a/osm_openvim/vim_schema.py
+++ b/osm_openvim/vim_schema.py
@@ -603,10 +603,26 @@
"enable_dhcp": {"type": "boolean"},
"dhcp_first_ip": ip_schema,
"dhcp_last_ip": ip_schema,
+ "dns": {"type": "array", "items": [ip_schema]},
+ "links": {"type": "array", "items": {"type": "object", "properties": {
+ "nat": cidr_schema,
+ "iface": name_schema,
+ "vlan": vlan_schema},
+ "required": ["iface"],
+ "additionalProperties": False
+ },
+
+ },
+ "routes": {"type": "object", "properties": {"default": ip_schema}, "patternProperties": {
+ "^([0-9]{1,3}.){3}[0-9]{1,3}/[0-9]{1,2}$": ip_schema,
+ },
+ "additionalProperties": False
+ },
+
"bind_net": name_schema, # can be name, or uuid
"bind_type": {"oneOf": [{"type": "null"}, {"type": "string", "pattern": "^vlan:[0-9]{1,4}$"}]}
},
- "required": ["name"]
+ "required": ["name"]
}
},
"required": ["network"],