+provider_network_schema = {
+ "title": "provider network validation schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "physical-network": name_schema,
+ "segmentation-id": name_schema,
+ "sdn-ports": { # external ports to append to the SDN-assist network
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "switch_id": shortname_schema,
+ "switch_port": shortname_schema,
+ "mac_address": mac_schema,
+ "vlan": vlan_schema,
+ },
+ "additionalProperties": True
+ }
+ },
+ "network-type": shortname_schema,
+ },
+ "additionalProperties": True
+}
+