Fix GENERIC-RESOURCE-API yang model 65/22065/2
authorDan Timoney <dtimoney@att.com>
Fri, 3 Nov 2017 21:24:19 +0000 (17:24 -0400)
committerDan Timoney <dtimoney@att.com>
Fri, 3 Nov 2017 21:47:25 +0000 (17:47 -0400)
Add missing enum values and container to yang model
Also, BRG and tunnelxconn's service instance parent
is VNF-API, not GENERIC-RESOURCE-API, so do not
try to retrieve service data.

Change-Id: I12c977a7e621ce654d0d5d38f8ac8f3ad95487bd
Issue-ID: SDNC-166
Signed-off-by: Dan Timoney <dtimoney@att.com>
generic-resource-api/model/src/main/resources/generic-resource-api.20161111.json
generic-resource-api/model/src/main/yang/GENERIC-RESOURCE-API.yang
generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiProvider.java
generic-resource-api/provider/src/main/java/org/onap/sdnc/northbound/GenericResourceApiSvcLogicServiceClient.java

index 7d39ff0..024a0e3 100644 (file)
               "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)allotted-resource-information-TOP"
             }
           },
+          {
+            "in": "body",
+            "name": "**(config)brg-request-input",
+            "required": false,
+            "schema": {
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input-TOP"
+            }
+          },
           {
             "in": "body",
             "name": "**(config)service-information",
         "operationId": "PUT-onap-model-information"
       }
     },
+    "/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/{allotted-resource-id}/allotted-resource-data/allotted-resource-operation-information/brg-request-input": {
+      "delete": {
+        "produces": [
+          "application/json",
+          "application/xml"
+        ],
+        "parameters": [
+          {
+            "in": "path",
+            "name": "allotted-resource-id",
+            "required": true,
+            "type": "string"
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "No response was specified"
+          }
+        },
+        "operationId": "DELETE-brg-request-input"
+      },
+      "get": {
+        "produces": [
+          "application/json",
+          "application/xml"
+        ],
+        "parameters": [
+          {
+            "in": "path",
+            "name": "allotted-resource-id",
+            "required": true,
+            "type": "string"
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "No response was specified",
+            "schema": {
+              "$ref": "#/definitions/(config)brg-request-input"
+            }
+          }
+        },
+        "operationId": "GET-brg-request-input"
+      },
+      "put": {
+        "consumes": [
+          "application/json",
+          "application/xml"
+        ],
+        "produces": [
+          "application/json",
+          "application/xml"
+        ],
+        "parameters": [
+          {
+            "in": "path",
+            "name": "allotted-resource-id",
+            "required": true,
+            "type": "string"
+          },
+          {
+            "in": "body",
+            "name": "(config)brg-request-input",
+            "required": false,
+            "schema": {
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input-TOP"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "No response was specified",
+            "schema": {
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input-TOP"
+            }
+          }
+        },
+        "operationId": "PUT-brg-request-input"
+      }
+    },
     "/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/{allotted-resource-id}/allotted-resource-data/allotted-resource-operation-information/request-information": {
       "delete": {
         "produces": [
           },
           {
             "in": "body",
-            "name": "**(config)request-information",
+            "name": "**(config)sdnc-request-header",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)request-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)sdnc-request-header-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)sdnc-request-header",
+            "name": "**(config)request-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)sdnc-request-header-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)request-information-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)contrail-route-request-input",
+            "name": "**(config)service-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)contrail-route-request-input-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)service-information-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)service-information",
+            "name": "**(config)contrail-route-request-input",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)service-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)contrail-route-request-input-TOP"
             }
           },
           {
           },
           {
             "in": "body",
-            "name": "**(config)allotted-resource-identifiers",
+            "name": "**(config)onap-model-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/contrail-route-topology(config)allotted-resource-identifiers-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/contrail-route-topology(config)onap-model-information-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)onap-model-information",
+            "name": "**(config)allotted-resource-identifiers",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/contrail-route-topology(config)onap-model-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/contrail-route-allotted-resources/contrail-route-allotted-resource/allotted-resource-data/contrail-route-topology(config)allotted-resource-identifiers-TOP"
             }
           },
           {
           },
           {
             "in": "body",
-            "name": "**(config)vpn-bindings",
+            "name": "**(config)network-topology-identifier",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/network-topology-information(config)vpn-bindings-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/network-topology-information(config)network-topology-identifier-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)network-topology-identifier",
+            "name": "**(config)route-table-reference",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/network-topology-information(config)network-topology-identifier-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/network-topology-information(config)route-table-reference-TOP"
             }
           },
           {
           },
           {
             "in": "body",
-            "name": "**(config)route-table-reference",
+            "name": "**(config)vpn-bindings",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/network-topology-information(config)route-table-reference-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/network-topology-information(config)vpn-bindings-TOP"
             }
           },
           {
           },
           {
             "in": "body",
-            "name": "**(config)vnf-parameters",
+            "name": "**(config)vnf-topology-identifier",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information(config)vnf-parameters-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information(config)vnf-topology-identifier-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)vnf-topology-identifier",
+            "name": "**(config)vnf-parameters",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information(config)vnf-topology-identifier-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information(config)vnf-parameters-TOP"
             }
           },
           {
           },
           {
             "in": "body",
-            "name": "**(config)request-information",
+            "name": "**(config)sdnc-request-header",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/security-zone-allotted-resources/security-zone-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)request-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/security-zone-allotted-resources/security-zone-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)sdnc-request-header-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)sdnc-request-header",
+            "name": "**(config)request-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/security-zone-allotted-resources/security-zone-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)sdnc-request-header-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/security-zone-allotted-resources/security-zone-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)request-information-TOP"
             }
           },
           {
           },
           {
             "in": "body",
-            "name": "**(config)service-request-input",
+            "name": "**(config)service-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data(config)service-request-input-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data(config)service-information-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)service-information",
+            "name": "**(config)service-request-input",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data(config)service-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data(config)service-request-input-TOP"
             }
           }
         ],
           },
           {
             "in": "body",
-            "name": "**(config)request-information",
+            "name": "**(config)sdnc-request-header",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)request-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)sdnc-request-header-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)sdnc-request-header",
+            "name": "**(config)request-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)sdnc-request-header-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)request-information-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)service-information",
+            "name": "**(config)network-request-input",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)service-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)network-request-input-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)network-request-input",
+            "name": "**(config)service-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)network-request-input-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data(config)service-information-TOP"
             }
           },
           {
           },
           {
             "in": "body",
-            "name": "**(config)network-topology-identifier-structure",
+            "name": "**(config)network-assignments",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data/network-topology(config)network-topology-identifier-structure-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data/network-topology(config)network-assignments-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)network-assignments",
+            "name": "**(config)network-topology-identifier-structure",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data/network-topology(config)network-assignments-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/networks/network/network-data/network-topology(config)network-topology-identifier-structure-TOP"
             }
           }
         ],
           },
           {
             "in": "body",
-            "name": "**(config)vf-module-information",
+            "name": "**(config)vnf-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/vnfs/vnf/vnf-data/vf-modules/vf-module/vf-module-data(config)vf-module-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/vnfs/vnf/vnf-data/vf-modules/vf-module/vf-module-data(config)vnf-information-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)vf-module-request-input",
+            "name": "**(config)vf-module-information",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/vnfs/vnf/vnf-data/vf-modules/vf-module/vf-module-data(config)vf-module-request-input-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/vnfs/vnf/vnf-data/vf-modules/vf-module/vf-module-data(config)vf-module-information-TOP"
             }
           },
           {
             "in": "body",
-            "name": "**(config)vnf-information",
+            "name": "**(config)vf-module-request-input",
             "required": false,
             "schema": {
-              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/vnfs/vnf/vnf-data/vf-modules/vf-module/vf-module-data(config)vnf-information-TOP"
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/services/service/service-data/vnfs/vnf/vnf-data/vf-modules/vf-module/vf-module-data(config)vf-module-request-input-TOP"
             }
           },
           {
             "required": true,
             "type": "string"
           },
+          {
+            "in": "body",
+            "name": "**(config)tunnelxconn-request-input",
+            "required": false,
+            "schema": {
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)tunnelxconn-request-input-TOP"
+            }
+          },
           {
             "in": "body",
             "name": "**(config)request-information",
         "operationId": "PUT-onap-model-information"
       }
     },
+    "/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/{allotted-resource-id}/allotted-resource-data/allotted-resource-operation-information/tunnelxconn-request-input": {
+      "delete": {
+        "produces": [
+          "application/json",
+          "application/xml"
+        ],
+        "parameters": [
+          {
+            "in": "path",
+            "name": "allotted-resource-id",
+            "required": true,
+            "type": "string"
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "No response was specified"
+          }
+        },
+        "operationId": "DELETE-tunnelxconn-request-input"
+      },
+      "get": {
+        "produces": [
+          "application/json",
+          "application/xml"
+        ],
+        "parameters": [
+          {
+            "in": "path",
+            "name": "allotted-resource-id",
+            "required": true,
+            "type": "string"
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "No response was specified",
+            "schema": {
+              "$ref": "#/definitions/(config)tunnelxconn-request-input"
+            }
+          }
+        },
+        "operationId": "GET-tunnelxconn-request-input"
+      },
+      "put": {
+        "consumes": [
+          "application/json",
+          "application/xml"
+        ],
+        "produces": [
+          "application/json",
+          "application/xml"
+        ],
+        "parameters": [
+          {
+            "in": "path",
+            "name": "allotted-resource-id",
+            "required": true,
+            "type": "string"
+          },
+          {
+            "in": "body",
+            "name": "(config)tunnelxconn-request-input",
+            "required": false,
+            "schema": {
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)tunnelxconn-request-input-TOP"
+            }
+          }
+        ],
+        "responses": {
+          "200": {
+            "description": "No response was specified",
+            "schema": {
+              "$ref": "#/definitions/GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)tunnelxconn-request-input-TOP"
+            }
+          }
+        },
+        "operationId": "PUT-tunnelxconn-request-input"
+      }
+    },
     "/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/{allotted-resource-id}/allotted-resource-data/tunnelxconn-parameters": {
       "delete": {
         "produces": [
           },
           "type": "object"
         },
-        "GENERIC-RESOURCE-API:brg-wan-ip-address": {
-          "$ref": "#/definitions/0.3.56.0%p",
-          "enum": [
-            "0.3.56.0%p",
-            "5cB:e8b%LpL}pp"
-          ]
+        "GENERIC-RESOURCE-API:brg-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API(config)brg-request-input"
+          },
+          "type": "object"
         },
         "GENERIC-RESOURCE-API:request-information": {
           "items": {
             "$ref": "#/definitions/GENERIC-RESOURCE-API(config)service-information"
           },
           "type": "object"
-        },
-        "GENERIC-RESOURCE-API:vgmux-bearer-ip": {
-          "$ref": "#/definitions/1.0.21.6",
-          "enum": [
-            "1.0.21.6",
-            ":"
-          ]
-        },
-        "GENERIC-RESOURCE-API:vni": {
-          "$ref": "#/definitions/Some vni"
         }
       },
       "type": "object"
           },
           "type": "object"
         },
-        "brg-wan-ip-address": {
-          "$ref": "#/definitions/27.0.29.2",
-          "enum": [
-            "27.0.29.2",
-            ":50%{p"
-          ]
+        "brg-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input"
+          },
+          "type": "object"
         },
         "request-information": {
           "items": {
             "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)service-information"
           },
           "type": "object"
-        },
-        "vgmux-bearer-ip": {
-          "$ref": "#/definitions/2.0.0.0%N{",
-          "enum": [
-            "2.0.0.0%N{",
-            "D::D%NN"
-          ]
-        },
-        "vni": {
-          "$ref": "#/definitions/Some vni"
         }
       },
       "type": "object"
     "(config)brg-assignmentsPOST": {
       "properties": {
         "vbrg-wan-ip": {
-          "$ref": "#/definitions/4.254.7.5%{L",
+          "$ref": "#/definitions/0.1.0.242",
           "enum": [
-            "4.254.7.5%{L",
-            "0a6:"
+            "0.1.0.242",
+            "dD1e:%pNL{"
           ]
         }
       },
       },
       "type": "object"
     },
+    "(config)brg-request-inputPOST": {
+      "properties": {
+        "brg-wan-mac-address": {
+          "$ref": "#/definitions/Some brg-wan-mac-address"
+        },
+        "vgmux-bearer-ip": {
+          "$ref": "#/definitions/0.36.254.57",
+          "enum": [
+            "0.36.254.57",
+            "Df:b4%p{"
+          ]
+        },
+        "vni": {
+          "$ref": "#/definitions/Some vni"
+        }
+      },
+      "type": "object"
+    },
     "(config)brg-response-informationPOST": {
       "properties": {
         "instance-id": {
     "(config)interface-route-prefixesPOST": {
       "properties": {
         "interface-route-prefix": {
-          "$ref": "#/definitions/2.178.7.3%{",
+          "$ref": "#/definitions/1.0.25.1%{",
           "description": "route prefixes (CIDRs) to be provided to MSO in vnf-topology as a list of static routes",
           "enum": [
-            "2.178.7.3%{",
-            ":%N"
+            "1.0.25.1%{",
+            ":%{{L{"
           ]
         },
         "interface-route-prefix-cidr": {
     "(config)network-ips-v6POST": {
       "properties": {
         "ip-address-ipv6": {
-          "$ref": "#/definitions/B:9",
+          "$ref": "#/definitions/c:a2",
           "description": "List of assigned ipv6 addresses on a network"
         }
       },
     "(config)network-ipsPOST": {
       "properties": {
         "ip-address": {
-          "$ref": "#/definitions/3.1.2.4",
+          "$ref": "#/definitions/0.52.68.25%}N",
           "description": "List of assigned ipv4 addresses on a network",
           "enum": [
-            "3.1.2.4",
-            "C8CE:"
+            "0.52.68.25%}N",
+            "EF::"
           ]
         }
       },
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "request-id": {
           "$ref": "#/definitions/Some dhcp-start-address"
         },
         "gateway-address": {
-          "$ref": "#/definitions/1.7.0.5",
+          "$ref": "#/definitions/9.76.167.68%L{LL{pp{{",
           "enum": [
-            "1.7.0.5",
-            ":B%}LLp"
+            "9.76.167.68%L{LL{pp{{",
+            "12Fe:f"
           ]
         },
         "ip-version": {
           "$ref": "#/definitions/Some ip-version"
         },
         "start-address": {
-          "$ref": "#/definitions/0.0.7.0%{N{",
+          "$ref": "#/definitions/0.1.12.2",
           "enum": [
-            "0.0.7.0%{N{",
-            "dce4:::"
+            "0.1.12.2",
+            "::DC:2"
           ]
         },
         "subnet-name": {
     "(config)tunnelxconn-assignmentsPOST": {
       "properties": {
         "vg-ip": {
-          "$ref": "#/definitions/255.148.0.1%{N",
+          "$ref": "#/definitions/254.28.9.228",
           "description": "The Network Controller will assign the VG IP address from local inventory",
           "enum": [
-            "255.148.0.1%{N",
-            "f:"
+            "254.28.9.228",
+            "DF8C:%p"
           ]
         },
         "vgmux-bearer-ip": {
-          "$ref": "#/definitions/16.46.115.1",
+          "$ref": "#/definitions/3.209.28.4",
           "description": "The Network Controller will look up the vgmux bearer ip from the vgmux vf module",
           "enum": [
-            "16.46.115.1",
-            ":%{N"
+            "3.209.28.4",
+            "fB:%p"
           ]
         },
         "vgmux-lan-ip": {
-          "$ref": "#/definitions/1.8.23.91%}pNLLpp",
+          "$ref": "#/definitions/0.0.123.0",
           "description": "The Network Controller will look up the vgmux lan ip from the vgmux vg module",
           "enum": [
-            "1.8.23.91%}pNLLpp",
-            "Ac::"
+            "0.0.123.0",
+            ":"
           ]
         },
         "vni": {
       },
       "type": "object"
     },
+    "(config)tunnelxconn-request-inputPOST": {
+      "properties": {
+        "brg-wan-mac-address": {
+          "$ref": "#/definitions/Some brg-wan-mac-address"
+        }
+      },
+      "type": "object"
+    },
     "(config)tunnelxconn-response-informationPOST": {
       "properties": {
         "instance-id": {
     "(config)vm-networksPOST": {
       "properties": {
         "floating-ip": {
-          "$ref": "#/definitions/0.0.0.7",
+          "$ref": "#/definitions/1.0.1.1%{{L",
           "description": "Floating ipv4 for VMs of a given type on this network",
           "enum": [
-            "0.0.0.7",
-            ":"
+            "1.0.1.1%{{L",
+            "Ad:2F:%p}N"
           ]
         },
         "floating-ip-v6": {
-          "$ref": "#/definitions/:2",
+          "$ref": "#/definitions/9:",
           "description": "Floating ipv6 for VMs of a given type on this network"
         },
         "interface-route-prefixes": {
           },
           "type": "object"
         },
-        "GENERIC-RESOURCE-API:brg-wan-mac-address": {
-          "$ref": "#/definitions/Some brg-wan-mac-address"
-        },
         "GENERIC-RESOURCE-API:request-information": {
           "items": {
             "$ref": "#/definitions/GENERIC-RESOURCE-API(config)request-information"
             "$ref": "#/definitions/GENERIC-RESOURCE-API(config)service-information"
           },
           "type": "object"
+        },
+        "GENERIC-RESOURCE-API:tunnelxconn-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API(config)tunnelxconn-request-input"
+          },
+          "type": "object"
         }
       },
       "type": "object"
       },
       "type": "object"
     },
+    "GENERIC-RESOURCE-API(config)brg-request-input": {
+      "properties": {
+        "GENERIC-RESOURCE-API:brg-wan-mac-address": {
+          "$ref": "#/definitions/Some brg-wan-mac-address"
+        },
+        "GENERIC-RESOURCE-API:vgmux-bearer-ip": {
+          "$ref": "#/definitions/0.9.0.0%NNNpN{",
+          "enum": [
+            "0.9.0.0%NNNpN{",
+            "7:"
+          ]
+        },
+        "GENERIC-RESOURCE-API:vni": {
+          "$ref": "#/definitions/Some vni"
+        }
+      },
+      "type": "object"
+    },
+    "GENERIC-RESOURCE-API(config)brg-request-input-TOP": {
+      "properties": {
+        "GENERIC-RESOURCE-API:brg-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API(config)brg-request-input"
+          },
+          "type": "object"
+        }
+      },
+      "type": "object"
+    },
     "GENERIC-RESOURCE-API(config)brg-response-information": {
       "properties": {
         "GENERIC-RESOURCE-API:instance-id": {
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
       },
       "type": "object"
     },
+    "GENERIC-RESOURCE-API(config)tunnelxconn-request-input": {
+      "properties": {
+        "GENERIC-RESOURCE-API:brg-wan-mac-address": {
+          "$ref": "#/definitions/Some brg-wan-mac-address"
+        }
+      },
+      "type": "object"
+    },
+    "GENERIC-RESOURCE-API(config)tunnelxconn-request-input-TOP": {
+      "properties": {
+        "GENERIC-RESOURCE-API:tunnelxconn-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API(config)tunnelxconn-request-input"
+          },
+          "type": "object"
+        }
+      },
+      "type": "object"
+    },
     "GENERIC-RESOURCE-API(config)tunnelxconn-response-information": {
       "properties": {
         "GENERIC-RESOURCE-API:instance-id": {
           },
           "type": "object"
         },
-        "GENERIC-RESOURCE-API:brg-wan-ip-address": {
-          "$ref": "#/definitions/0.3.1.29",
-          "enum": [
-            "0.3.1.29",
-            "926d:"
-          ]
+        "GENERIC-RESOURCE-API:brg-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input"
+          },
+          "type": "object"
         },
         "GENERIC-RESOURCE-API:request-information": {
           "items": {
             "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)service-information"
           },
           "type": "object"
-        },
-        "GENERIC-RESOURCE-API:vgmux-bearer-ip": {
-          "$ref": "#/definitions/1.85.0.0",
-          "enum": [
-            "1.85.0.0",
-            "be:"
-          ]
-        },
-        "GENERIC-RESOURCE-API:vni": {
-          "$ref": "#/definitions/Some vni"
         }
       },
       "type": "object"
       },
       "type": "object"
     },
+    "GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input": {
+      "properties": {
+        "GENERIC-RESOURCE-API:brg-wan-mac-address": {
+          "$ref": "#/definitions/Some brg-wan-mac-address"
+        },
+        "GENERIC-RESOURCE-API:vgmux-bearer-ip": {
+          "$ref": "#/definitions/26.0.26.7",
+          "enum": [
+            "26.0.26.7",
+            "A9:cA7"
+          ]
+        },
+        "GENERIC-RESOURCE-API:vni": {
+          "$ref": "#/definitions/Some vni"
+        }
+      },
+      "type": "object"
+    },
+    "GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input-TOP": {
+      "properties": {
+        "GENERIC-RESOURCE-API:brg-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)brg-request-input"
+          },
+          "type": "object"
+        }
+      },
+      "type": "object"
+    },
     "GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)request-information": {
       "properties": {
         "GENERIC-RESOURCE-API:notification-url": {
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
     "GENERIC-RESOURCE-API/brg-allotted-resources/brg-allotted-resource/allotted-resource-data/brg-topology(config)brg-assignments": {
       "properties": {
         "GENERIC-RESOURCE-API:vbrg-wan-ip": {
-          "$ref": "#/definitions/1.2.0.2",
+          "$ref": "#/definitions/1.1.2.2%{{pN",
           "enum": [
-            "1.2.0.2",
-            "8Cad:8df9"
+            "1.1.2.2%{{pN",
+            "d2:b%ppLpNN"
           ]
         }
       },
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
           "$ref": "#/definitions/Some dhcp-start-address"
         },
         "GENERIC-RESOURCE-API:gateway-address": {
-          "$ref": "#/definitions/21.184.2.0",
+          "$ref": "#/definitions/3.16.94.1",
           "enum": [
-            "21.184.2.0",
-            "::%pN"
+            "3.16.94.1",
+            "DCA6:c"
           ]
         },
         "GENERIC-RESOURCE-API:ip-version": {
           "$ref": "#/definitions/Some ip-version"
         },
         "GENERIC-RESOURCE-API:start-address": {
-          "$ref": "#/definitions/252.2.183.0",
+          "$ref": "#/definitions/2.7.8.2",
           "enum": [
-            "252.2.183.0",
-            "aA:d3"
+            "2.7.8.2",
+            "3bcB:%L"
           ]
         },
         "GENERIC-RESOURCE-API:subnet-name": {
           "$ref": "#/definitions/Some dhcp-start-address"
         },
         "GENERIC-RESOURCE-API:gateway-address": {
-          "$ref": "#/definitions/192.0.197.0",
+          "$ref": "#/definitions/1.0.21.50%L",
           "enum": [
-            "192.0.197.0",
-            "C::0"
+            "1.0.21.50%L",
+            "c2Ed:9%N"
           ]
         },
         "GENERIC-RESOURCE-API:ip-version": {
           "$ref": "#/definitions/Some ip-version"
         },
         "GENERIC-RESOURCE-API:start-address": {
-          "$ref": "#/definitions/8.12.3.5%NL}",
+          "$ref": "#/definitions/119.2.170.2",
           "enum": [
-            "8.12.3.5%NL}",
-            "fCe9:"
+            "119.2.170.2",
+            ":"
           ]
         },
         "GENERIC-RESOURCE-API:subnet-name": {
     "GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information/vnf-assignments/vnf-vms(config)vm-networks": {
       "properties": {
         "GENERIC-RESOURCE-API:floating-ip": {
-          "$ref": "#/definitions/0.9.254.2%LL",
+          "$ref": "#/definitions/0.0.25.54%{NNNL}pLp}",
           "description": "Floating ipv4 for VMs of a given type on this network",
           "enum": [
-            "0.9.254.2%LL",
-            ":"
+            "0.0.25.54%{NNNL}pLp}",
+            ":%p{L"
           ]
         },
         "GENERIC-RESOURCE-API:floating-ip-v6": {
-          "$ref": "#/definitions/3:1d",
+          "$ref": "#/definitions/DB8:",
           "description": "Floating ipv6 for VMs of a given type on this network"
         },
         "GENERIC-RESOURCE-API:interface-route-prefixes": {
     "GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information/vnf-assignments/vnf-vms/vm-networks(config)interface-route-prefixes": {
       "properties": {
         "GENERIC-RESOURCE-API:interface-route-prefix": {
-          "$ref": "#/definitions/25.25.49.13%{N",
+          "$ref": "#/definitions/84.59.6.1%pN{",
           "description": "route prefixes (CIDRs) to be provided to MSO in vnf-topology as a list of static routes",
           "enum": [
-            "25.25.49.13%{N",
-            "f58f:2%}}NppNLpL"
+            "84.59.6.1%pN{",
+            "5aFf::"
           ]
         },
         "GENERIC-RESOURCE-API:interface-route-prefix-cidr": {
     "GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information/vnf-assignments/vnf-vms/vm-networks(config)network-ips": {
       "properties": {
         "GENERIC-RESOURCE-API:ip-address": {
-          "$ref": "#/definitions/1.0.4.243%LLLpL}p",
+          "$ref": "#/definitions/221.2.45.0%}{}",
           "description": "List of assigned ipv4 addresses on a network",
           "enum": [
-            "1.0.4.243%LLLpL}p",
-            "d:7:Fb:"
+            "221.2.45.0%}{}",
+            "ddAF:C"
           ]
         }
       },
     "GENERIC-RESOURCE-API/preload-vnfs/vnf-preload-list/preload-data/vnf-topology-information/vnf-assignments/vnf-vms/vm-networks(config)network-ips-v6": {
       "properties": {
         "GENERIC-RESOURCE-API:ip-address-ipv6": {
-          "$ref": "#/definitions/Dc6b:",
+          "$ref": "#/definitions/:",
           "description": "List of assigned ipv6 addresses on a network"
         }
       },
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
         "GENERIC-RESOURCE-API:floating-ip-v4": {
           "description": "Floating ipv4 for VMs of a given type on this network",
           "items": {
-            "$ref": "#/definitions/6.252.1.9%{LL",
+            "$ref": "#/definitions/0.255.197.19%}",
             "enum": [
-              "6.252.1.9%{LL",
-              "B:"
+              "0.255.197.19%}",
+              ":DA%p"
             ]
           },
           "type": "array"
         "GENERIC-RESOURCE-API:floating-ip-v6": {
           "description": "Floating ipv6 for VMs of a given type on this network",
           "items": {
-            "$ref": "#/definitions/A9e6:2e"
+            "$ref": "#/definitions/:85:2"
           },
           "type": "array"
         }
           },
           "type": "object"
         },
-        "GENERIC-RESOURCE-API:brg-wan-mac-address": {
-          "$ref": "#/definitions/Some brg-wan-mac-address"
-        },
         "GENERIC-RESOURCE-API:request-information": {
           "items": {
             "$ref": "#/definitions/GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)request-information"
             "$ref": "#/definitions/GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)service-information"
           },
           "type": "object"
+        },
+        "GENERIC-RESOURCE-API:tunnelxconn-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)tunnelxconn-request-input"
+          },
+          "type": "object"
         }
       },
       "type": "object"
             "CreateSecurityZoneInstance",
             "DeleteSecurityZoneInstance",
             "ActivateDCINetworkInstance",
-            "DeActivateDCINetworkInstance"
+            "DeActivateDCINetworkInstance",
+            "CreateTunnelXConnInstance",
+            "DeleteTunnelXConnInstance",
+            "CreateBRGInstance",
+            "DeleteBRGInstance"
           ]
         },
         "GENERIC-RESOURCE-API:request-id": {
       },
       "type": "object"
     },
+    "GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)tunnelxconn-request-input": {
+      "properties": {
+        "GENERIC-RESOURCE-API:brg-wan-mac-address": {
+          "$ref": "#/definitions/Some brg-wan-mac-address"
+        }
+      },
+      "type": "object"
+    },
+    "GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)tunnelxconn-request-input-TOP": {
+      "properties": {
+        "GENERIC-RESOURCE-API:tunnelxconn-request-input": {
+          "items": {
+            "$ref": "#/definitions/GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information(config)tunnelxconn-request-input"
+          },
+          "type": "object"
+        }
+      },
+      "type": "object"
+    },
     "GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/allotted-resource-operation-information/allotted-resource-information(config)onap-model-information": {
       "properties": {
         "GENERIC-RESOURCE-API:model-customization-uuid": {
     "GENERIC-RESOURCE-API/tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/allotted-resource-data/tunnelxconn-topology(config)tunnelxconn-assignments": {
       "properties": {
         "GENERIC-RESOURCE-API:vg-ip": {
-          "$ref": "#/definitions/22.80.15.0%L",
+          "$ref": "#/definitions/101.112.40.0%NLpNNLp{p",
           "description": "The Network Controller will assign the VG IP address from local inventory",
           "enum": [
-            "22.80.15.0%L",
-            "bD4:ca"
+            "101.112.40.0%NLpNNLp{p",
+            "5Ede:"
           ]
         },
         "GENERIC-RESOURCE-API:vgmux-bearer-ip": {
-          "$ref": "#/definitions/2.204.65.2",
+          "$ref": "#/definitions/25.0.2.0%LLNp",
           "description": "The Network Controller will look up the vgmux bearer ip from the vgmux vf module",
           "enum": [
-            "2.204.65.2",
-            "8ce::"
+            "25.0.2.0%LLNp",
+            "A:"
           ]
         },
         "GENERIC-RESOURCE-API:vgmux-lan-ip": {
-          "$ref": "#/definitions/2.0.254.1%p",
+          "$ref": "#/definitions/191.0.17.5%LLpN}{",
           "description": "The Network Controller will look up the vgmux lan ip from the vgmux vg module",
           "enum": [
-            "2.0.254.1%p",
-            "FF3b:285"
+            "191.0.17.5%LLpN}{",
+            "dbC::"
           ]
         },
         "GENERIC-RESOURCE-API:vni": {
     "GENERIC-RESOURCE-API/vnf-topology-information/vnf-assignments/vnf-vms(config)vm-networks": {
       "properties": {
         "GENERIC-RESOURCE-API:floating-ip": {
-          "$ref": "#/definitions/1.25.3.1%L{N{pNLL}}{pL{Lpp}N",
+          "$ref": "#/definitions/15.16.8.2%L}}{L",
           "description": "Floating ipv4 for VMs of a given type on this network",
           "enum": [
-            "1.25.3.1%L{N{pNLL}}{pL{Lpp}N",
-            "3::08B3"
+            "15.16.8.2%L}}{L",
+            "3:7b1b:"
           ]
         },
         "GENERIC-RESOURCE-API:floating-ip-v6": {
-          "$ref": "#/definitions/cEa:",
+          "$ref": "#/definitions/cE2c:2b:",
           "description": "Floating ipv6 for VMs of a given type on this network"
         },
         "GENERIC-RESOURCE-API:interface-route-prefixes": {
     "GENERIC-RESOURCE-API/vnf-topology-information/vnf-assignments/vnf-vms/vm-networks(config)interface-route-prefixes": {
       "properties": {
         "GENERIC-RESOURCE-API:interface-route-prefix": {
-          "$ref": "#/definitions/3.209.0.0%N}p{",
+          "$ref": "#/definitions/20.23.0.1",
           "description": "route prefixes (CIDRs) to be provided to MSO in vnf-topology as a list of static routes",
           "enum": [
-            "3.209.0.0%N}p{",
-            ":2%L}"
+            "20.23.0.1",
+            ":56Ab:"
           ]
         },
         "GENERIC-RESOURCE-API:interface-route-prefix-cidr": {
     "GENERIC-RESOURCE-API/vnf-topology-information/vnf-assignments/vnf-vms/vm-networks(config)network-ips": {
       "properties": {
         "GENERIC-RESOURCE-API:ip-address": {
-          "$ref": "#/definitions/0.0.28.122%{",
+          "$ref": "#/definitions/0.24.0.1",
           "description": "List of assigned ipv4 addresses on a network",
           "enum": [
-            "0.0.28.122%{",
-            ":4%L}pL"
+            "0.24.0.1",
+            "5F::da6a:f6"
           ]
         }
       },
     "GENERIC-RESOURCE-API/vnf-topology-information/vnf-assignments/vnf-vms/vm-networks(config)network-ips-v6": {
       "properties": {
         "GENERIC-RESOURCE-API:ip-address-ipv6": {
-          "$ref": "#/definitions/:",
+          "$ref": "#/definitions/:%}LpLNLLLpL{L{LNN}L}}",
           "description": "List of assigned ipv6 addresses on a network"
         }
       },
index 6f77628..d82b630 100644 (file)
@@ -806,8 +806,11 @@ module GENERIC-RESOURCE-API {
        uses tunnelxconn-request-input;\r
    }\r
    grouping tunnelxconn-request-input {\r
-       leaf brg-wan-mac-address {\r
-           type string;\r
+\r
+       container tunnelxconn-request-input {\r
+           leaf brg-wan-mac-address {\r
+               type string;\r
+           }\r
        }\r
    }\r
    grouping tunnelxconn-topology {\r
@@ -848,14 +851,16 @@ module GENERIC-RESOURCE-API {
        uses brg-request-input;\r
    }\r
    grouping brg-request-input {\r
-       leaf vgmux-bearer-ip {\r
-           type inet:ip-address;\r
-       }\r
-       leaf vni {\r
-           type string;\r
-       }\r
-       leaf brg-wan-ip-address {\r
-           type inet:ip-address;\r
+       container brg-request-input {\r
+           leaf vgmux-bearer-ip {\r
+               type inet:ip-address;\r
+           }\r
+           leaf vni {\r
+               type string;\r
+           }\r
+           leaf brg-wan-mac-address {\r
+               type string;\r
+           }\r
        }\r
    }\r
    grouping brg-topology {\r
@@ -1031,6 +1036,10 @@ module GENERIC-RESOURCE-API {
                enum "DeleteSecurityZoneInstance";\r
                enum "ActivateDCINetworkInstance";\r
                enum "DeActivateDCINetworkInstance";\r
+               enum "CreateTunnelXConnInstance";\r
+               enum "DeleteTunnelXConnInstance";\r
+               enum "CreateBRGInstance";\r
+               enum "DeleteBRGInstance";\r
             }\r
          }\r
          leaf source {\r
index a747df6..1e45ee7 100644 (file)
@@ -1615,7 +1615,7 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
                }
 
                String siid = input.getServiceInformation().getServiceInstanceId();
-
+/*
                // Get the service-instance service data from MD-SAL
                ServiceDataBuilder serviceDataBuilder = new ServiceDataBuilder();
                getServiceData(siid, serviceDataBuilder);
@@ -1634,7 +1634,7 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
                        RpcResult<TunnelxconnTopologyOperationOutput> rpcResult = RpcResultBuilder
                                        .<TunnelxconnTopologyOperationOutput>status(true).withResult(responseBuilder.build()).build();
                        return Futures.immediateFuture(rpcResult);
-               }
+               }*/
 
                log.info("Adding INPUT data for {} [{}] input: {}", SVC_OPERATION, siid, input);
                TunnelxconnTopologyOperationInputBuilder inputBuilder = new TunnelxconnTopologyOperationInputBuilder(input);
@@ -1656,7 +1656,7 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
                        if (svcLogicClient.hasGraph(appName, SVC_OPERATION, null, "sync")) {
 
                                try {
-                                       respProps = svcLogicClient.execute(appName, SVC_OPERATION, null, "sync", serviceDataBuilder, parms);
+                                       respProps = svcLogicClient.execute(appName, SVC_OPERATION, null, "sync",  parms);
                                } catch (Exception e) {
                                        log.error("Caught exception executing service logic for {}", SVC_OPERATION, e);
                                        errorMessage = e.getMessage();
@@ -1696,24 +1696,7 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
                // Got success from SLI
                try {
 
-                       serviceData = serviceDataBuilder.build();
-                       log.info("Updating MD-SAL for {} [{}] ServiceData: {}", SVC_OPERATION, siid, serviceData);
 
-                       // service object
-                       ServiceBuilder serviceBuilder = new ServiceBuilder();
-                       serviceBuilder.setServiceData(serviceData);
-                       serviceBuilder.setServiceInstanceId(siid);
-                       serviceBuilder.setServiceStatus(serviceStatusBuilder.build());
-                       saveService(serviceBuilder.build(), false, LogicalDatastoreType.CONFIGURATION);
-
-                       if (input.getSdncRequestHeader() != null && input.getSdncRequestHeader().getSvcAction() != null) {
-                               // Only update operational tree on activate or delete
-                               if (input.getSdncRequestHeader().getSvcAction().equals(SvcAction.Unassign)
-                                               || input.getSdncRequestHeader().getSvcAction().equals(SvcAction.Activate)) {
-                                       log.info("Updating OPERATIONAL tree.");
-                                       saveService(serviceBuilder.build(), false, LogicalDatastoreType.OPERATIONAL);
-                               }
-                       }
 
                        TunnelxconnResponseInformationBuilder tunnelxconnResponseInformationBuilder = new TunnelxconnResponseInformationBuilder();
                        tunnelxconnResponseInformationBuilder.setInstanceId(allottedResourceId);
@@ -1775,7 +1758,7 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
 
                String siid = input.getServiceInformation().getServiceInstanceId();
 
-               // Get the service-instance service data from MD-SAL
+/*             // Get the service-instance service data from MD-SAL
                ServiceDataBuilder serviceDataBuilder = new ServiceDataBuilder();
                getServiceData(siid, serviceDataBuilder);
 
@@ -1793,7 +1776,7 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
                        RpcResult<BrgTopologyOperationOutput> rpcResult = RpcResultBuilder.<BrgTopologyOperationOutput>status(true)
                                        .withResult(responseBuilder.build()).build();
                        return Futures.immediateFuture(rpcResult);
-               }
+               }*/
 
                log.info("Adding INPUT data for {} [{}] input: {}", SVC_OPERATION, siid, input);
                BrgTopologyOperationInputBuilder inputBuilder = new BrgTopologyOperationInputBuilder(input);
@@ -1815,7 +1798,7 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
                        if (svcLogicClient.hasGraph(appName, SVC_OPERATION, null, "sync")) {
 
                                try {
-                                       respProps = svcLogicClient.execute(appName, SVC_OPERATION, null, "sync", serviceDataBuilder, parms);
+                                       respProps = svcLogicClient.execute(appName, SVC_OPERATION, null, "sync", parms);
                                } catch (Exception e) {
                                        log.error("Caught exception executing service logic for {}", SVC_OPERATION, e);
                                        errorMessage = e.getMessage();
@@ -1855,24 +1838,6 @@ public class GenericResourceApiProvider implements AutoCloseable, GENERICRESOURC
                // Got success from SLI
                try {
 
-                       serviceData = serviceDataBuilder.build();
-                       log.info("Updating MD-SAL for {} [{}] ServiceData: {}", SVC_OPERATION, siid, serviceData);
-
-                       // service object
-                       ServiceBuilder serviceBuilder = new ServiceBuilder();
-                       serviceBuilder.setServiceData(serviceData);
-                       serviceBuilder.setServiceInstanceId(siid);
-                       serviceBuilder.setServiceStatus(serviceStatusBuilder.build());
-                       saveService(serviceBuilder.build(), false, LogicalDatastoreType.CONFIGURATION);
-
-                       if (input.getSdncRequestHeader() != null && input.getSdncRequestHeader().getSvcAction() != null) {
-                               // Only update operational tree on activate or delete
-                               if (input.getSdncRequestHeader().getSvcAction().equals(SvcAction.Unassign)
-                                               || input.getSdncRequestHeader().getSvcAction().equals(SvcAction.Activate)) {
-                                       log.info("Updating OPERATIONAL tree.");
-                                       saveService(serviceBuilder.build(), false, LogicalDatastoreType.OPERATIONAL);
-                               }
-                       }
 
                        BrgResponseInformationBuilder brgResponseInformationBuilder = new BrgResponseInformationBuilder();
                        brgResponseInformationBuilder.setInstanceId(allottedResourceId);
index 8ba70de..b000ed4 100644 (file)
@@ -1,5 +1,5 @@
 /*-
- * ============LICENSE_START=======================================================
+z * ============LICENSE_START=======================================================
  * openECOMP : SDN-C
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights
@@ -106,6 +106,21 @@ public class GenericResourceApiSvcLogicServiceClient {
         return respProps;
     }
 
+       public Properties execute(String module, String rpc, String version, String mode, Properties properties)
+                       throws SvcLogicException {
+
+               printPropsDebugLogs(properties, "Parameters passed to SLI");
+
+               Properties respProps = svcLogic.execute(module, rpc, version, mode, properties);
+               printPropsDebugLogs(respProps, "Parameters returned by SLI");
+               if (respProps == null || FAILURE_RESULT.equalsIgnoreCase(respProps.getProperty(SVC_LOGIC_STATUS_KEY))) {
+                       return (respProps);
+               }
+
+               return respProps;
+       }
+
+
     private void printPropsDebugLogs(Properties properties, String msg) {
         if (!LOG.isDebugEnabled()) {
             return;