Add REST API and CLI CURD support for kubevirt network
Change-Id: I5e01036c42157013ca3fb4665c67c8d47cf22c7b
diff --git a/apps/kubevirt-networking/app/src/main/resources/definitions/KubevirtNetworks.json b/apps/kubevirt-networking/app/src/main/resources/definitions/KubevirtNetworks.json
new file mode 100644
index 0000000..f838b60
--- /dev/null
+++ b/apps/kubevirt-networking/app/src/main/resources/definitions/KubevirtNetworks.json
@@ -0,0 +1,66 @@
+{
+ "type": "object",
+ "title": "regions",
+ "required": [
+ "regions"
+ ],
+ "properties": {
+ "regions": {
+ "type": "array",
+ "xml": {
+ "name": "regions",
+ "wrapped": true
+ },
+ "items": {
+ "type": "object",
+ "description": "A network object.",
+ "required": [
+ "networkId",
+ "type",
+ "name",
+ "segmentId",
+ "gatewayIp",
+ "cidr",
+ "mtu"
+ ],
+ "properties": {
+ "networkId": {
+ "type": "string",
+ "example": "sona-network",
+ "description": "The ID of the attached network."
+ },
+ "type": {
+ "type": "string",
+ "example": "VXLAN",
+ "description": "Type of kubernetes network."
+ },
+ "name": {
+ "type": "string",
+ "example": "sona-network",
+ "description": "The name of network."
+ },
+ "segmentId": {
+ "type": "string",
+ "example": "1",
+ "description": "Segment ID of tenant network."
+ },
+ "gatewayIp": {
+ "type": "string",
+ "example": "10.10.10.1",
+ "description": "The IP address of the gateway."
+ },
+ "cidr": {
+ "type": "string",
+ "example": "10.10.10.0/24",
+ "description": "The CIDR of this network."
+ },
+ "mtu": {
+ "type": "integer",
+ "example": 1500,
+ "description": "The Maximum Transmission Unit of this network."
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file