Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Reordered schema sections
- Loading branch information
Showing
with
82 additions
and
86 deletions.
-
+55
−55
netjsonconfig/backends/openwrt/schema.py
-
+27
−31
netjsonconfig/schema.py
|
@@ -126,6 +126,61 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
"switch": { |
|
|
"type": "array", |
|
|
"title": "VLANs", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"title": "Switch", |
|
|
"items": { |
|
|
"type": "object", |
|
|
"additionalProperties": True, |
|
|
"required": [ |
|
|
"name", |
|
|
"reset", |
|
|
"enable_vlan", |
|
|
"vlan" |
|
|
], |
|
|
"properties": { |
|
|
"name": { |
|
|
"type": "string" |
|
|
}, |
|
|
"reset": { |
|
|
"type": "boolean" |
|
|
}, |
|
|
"enable_vlan": { |
|
|
"type": "boolean" |
|
|
}, |
|
|
"vlan": { |
|
|
"type": "array", |
|
|
"title": "VLANs", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"type": "object", |
|
|
"title": "VLAN", |
|
|
"additionalProperties": True, |
|
|
"required": [ |
|
|
"device", |
|
|
"vlan", |
|
|
"ports" |
|
|
], |
|
|
"properties": { |
|
|
"device": { |
|
|
"type": "string" |
|
|
}, |
|
|
"vlan": { |
|
|
"type": "integer" |
|
|
}, |
|
|
"ports": { |
|
|
"type": "string" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
"ip_rules": { |
|
|
"type": "array", |
|
|
"title": "Ip rules", |
|
@@ -224,61 +279,6 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
"switch": { |
|
|
"type": "array", |
|
|
"title": "VLANs", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"title": "Programmable Switch", |
|
|
"items": { |
|
|
"type": "object", |
|
|
"additionalProperties": True, |
|
|
"required": [ |
|
|
"name", |
|
|
"reset", |
|
|
"enable_vlan", |
|
|
"vlan" |
|
|
], |
|
|
"properties": { |
|
|
"name": { |
|
|
"type": "string" |
|
|
}, |
|
|
"reset": { |
|
|
"type": "boolean" |
|
|
}, |
|
|
"enable_vlan": { |
|
|
"type": "boolean" |
|
|
}, |
|
|
"vlan": { |
|
|
"type": "array", |
|
|
"title": "VLANs", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"type": "object", |
|
|
"title": "VLAN", |
|
|
"additionalProperties": True, |
|
|
"required": [ |
|
|
"device", |
|
|
"vlan", |
|
|
"ports" |
|
|
], |
|
|
"properties": { |
|
|
"device": { |
|
|
"type": "string" |
|
|
}, |
|
|
"vlan": { |
|
|
"type": "integer" |
|
|
}, |
|
|
"ports": { |
|
|
"type": "string" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
"files": { |
|
|
"type": "array", |
|
|
"title": "files", |
|
|
|
@@ -263,8 +263,35 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
"interfaces": { |
|
|
"type": "array", |
|
|
"title": "Interfaces", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"oneOf": [ |
|
|
{"$ref": "#/definitions/network_interface"}, |
|
|
{"$ref": "#/definitions/wireless_interface"}, |
|
|
{"$ref": "#/definitions/bridge_interface"} |
|
|
] |
|
|
} |
|
|
}, |
|
|
"dns_servers": { |
|
|
"title": "DNS Servers", |
|
|
"type": "array", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"type": "string" |
|
|
} |
|
|
}, |
|
|
"dns_search": { |
|
|
"title": "DNS Search", |
|
|
"type": "array", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"type": "string" |
|
|
} |
|
|
}, |
|
|
"radios": { |
|
@@ -310,19 +337,6 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
"interfaces": { |
|
|
"type": "array", |
|
|
"title": "Interfaces", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"oneOf": [ |
|
|
{"$ref": "#/definitions/network_interface"}, |
|
|
{"$ref": "#/definitions/wireless_interface"}, |
|
|
{"$ref": "#/definitions/bridge_interface"} |
|
|
] |
|
|
} |
|
|
}, |
|
|
"routes": { |
|
|
"type": "array", |
|
|
"title": "Routes", |
|
@@ -349,24 +363,6 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
"dns_servers": { |
|
|
"title": "DNS Servers", |
|
|
"type": "array", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"type": "string" |
|
|
} |
|
|
}, |
|
|
"dns_search": { |
|
|
"title": "DNS Search", |
|
|
"type": "array", |
|
|
"uniqueItems": True, |
|
|
"additionalItems": True, |
|
|
"items": { |
|
|
"type": "string" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |