summaryrefslogtreecommitdiffstats
path: root/generic-resource-api/model/yang
diff options
context:
space:
mode:
authorCheung, Pat (kc1472) <kc1472@att.com>2020-10-06 14:29:47 +0000
committerCheung, Pat (kc1472) <kc1472@att.com>2020-10-06 14:29:47 +0000
commit6756e81243a47bbf50136733391a60f55d3a1d96 (patch)
tree2b571018deb15d5756d7cb913d8c2e0bf96d0c87 /generic-resource-api/model/yang
parent30503f6381613928e0df248cd61faca2278c3741 (diff)
GRAPI yang model update
Added limit for String items to address Lack of Resources and Rate Limiting Security Vulnerability Issue-ID: SDNC-1347 Signed-off-by: Cheung, Pat (kc1472) <kc1472@att.com> Change-Id: I12a85e8db37280f7cd3981cad48a3bcf806a974e
Diffstat (limited to 'generic-resource-api/model/yang')
-rw-r--r--generic-resource-api/model/yang/src/main/yang/GENERIC-RESOURCE-API.yang1611
1 files changed, 1190 insertions, 421 deletions
diff --git a/generic-resource-api/model/yang/src/main/yang/GENERIC-RESOURCE-API.yang b/generic-resource-api/model/yang/src/main/yang/GENERIC-RESOURCE-API.yang
index 703b2b5d..ab153f02 100644
--- a/generic-resource-api/model/yang/src/main/yang/GENERIC-RESOURCE-API.yang
+++ b/generic-resource-api/model/yang/src/main/yang/GENERIC-RESOURCE-API.yang
@@ -34,7 +34,9 @@ module GENERIC-RESOURCE-API {
list network {
key "network-id";
leaf network-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container network-data {
@@ -43,7 +45,9 @@ module GENERIC-RESOURCE-API {
container network-provided-allotted-resources {
leaf-list network-provided-ar-id {
description "List of allotted resources using capacity from this network";
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
}
@@ -69,7 +73,9 @@ module GENERIC-RESOURCE-API {
list vnf {
key "vnf-id";
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container vnf-data {
@@ -84,7 +90,9 @@ module GENERIC-RESOURCE-API {
container vnf-provided-allotted-resources {
leaf-list vnf-provided-ar-id {
description "List of allotted resources using capacity from this vnf";
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
}
@@ -93,7 +101,9 @@ module GENERIC-RESOURCE-API {
list vf-module {
key "vf-module-id";
leaf vf-module-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container vf-module-data {
@@ -135,7 +145,9 @@ module GENERIC-RESOURCE-API {
key "forwarding-path-id";
leaf forwarding-path-id {
description "Generated by SDNC";
- type string;
+ type string {
+ length "0..512";
+ }
mandatory true;
}
uses forwarding-path-information;
@@ -146,13 +158,19 @@ module GENERIC-RESOURCE-API {
grouping service-status {
container service-status {
leaf response-code {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf response-message {
- type string;
+ type string {
+ length "0..2000";
+ }
}
leaf final-indicator {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf request-status {
type enumeration {
@@ -163,10 +181,14 @@ module GENERIC-RESOURCE-API {
}
leaf action {
description "value would one of possible request-actions; match the list in service-data oper-status";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf rpc-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf rpc-action {
description "this is the svc-action from the incoming request";
@@ -181,7 +203,9 @@ module GENERIC-RESOURCE-API {
}
}
leaf response-timestamp {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -194,7 +218,9 @@ module GENERIC-RESOURCE-API {
grouping service-request-input {
container service-request-input {
leaf service-instance-name {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
container service-input-parameters {
uses param;
@@ -213,22 +239,32 @@ module GENERIC-RESOURCE-API {
container service-topology-identifier {
leaf service-instance-id {
description "repeated";
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf service-type {
description "tag labeled subscription-service-type in the service-information input";
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf service-id {
description "from MSO input on STO assign";
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf service-instance-name {
description "optionally comes from service-request-input container or is assigned by sdn-c";
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf global-customer-id {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
}
}
@@ -241,10 +277,14 @@ module GENERIC-RESOURCE-API {
list service-parameter {
key "service-parameter-name";
leaf service-parameter-name {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf service-parameter-value {
- type string;
+ type string {
+ length "0..20000" ;
+ }
}
}
}
@@ -264,13 +304,19 @@ module GENERIC-RESOURCE-API {
grouping network-information {
container network-information {
leaf network-id {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf network-type {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf network-technology {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf from-preload {
description "Indicates if source is preload data";
@@ -282,7 +328,9 @@ module GENERIC-RESOURCE-API {
grouping network-request-input {
container network-request-input {
leaf network-name {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
uses region-identifier;
container network-input-parameters {
@@ -290,7 +338,9 @@ module GENERIC-RESOURCE-API {
}
leaf network-instance-group-id {
description "When network has instance-group role in service model";
- type string;
+ type string {
+ length "0..255" ;
+ }
}
}
}
@@ -306,35 +356,53 @@ module GENERIC-RESOURCE-API {
grouping network-topology-identifier-structure {
container network-topology-identifier-structure {
leaf network-id {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf network-name {
- type string;
+ type string {
+ length "0..255" ;
+ }
}
leaf network-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-instance-group-id {
description "When network is part of network instance-Group-data & instance Group in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-technology {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf eipam-v4-address-plan {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf eipam-v6-address-plan {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf is-trunked {
- type boolean;
+ type boolean;
}
leaf segmentation-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
container related-networks {
uses related-network;
@@ -350,10 +418,14 @@ module GENERIC-RESOURCE-API {
list network-parameter {
key "network-parameter-name";
leaf network-parameter-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-parameter-value {
- type string;
+ type string {
+ length "0..20000";
+ }
}
}
}
@@ -363,70 +435,102 @@ module GENERIC-RESOURCE-API {
key "network-instance-group-id";
leaf network-instance-group-id {
description "Also a Key in Network Instance Group in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf network-instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf service-instance-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses onap-model-information;
container subnet-assignment-policy {
leaf subnet-use {
description "Current valid values - unique, shared (default)";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
container vpn-binding-policy {
leaf vpn-binding {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vpn-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vpn-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vpn-platform {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf global-route-target {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf route-target-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
container aggregate-route-policy {
leaf aggregate-route-policy-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf ipv4-aggregate-route-level {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf ipv6-aggregate-route-level {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
uses aggregate-routes;
uses subnets;
leaf subnet-key-value {
- description "key-value provided to EIPAM when creating shared subnet";
- type string;
+ description "key-value provided to IPAM when creating shared subnet";
+ type string {
+ length "0..255";
+ }
}
container networks {
list network {
key "network-id";
leaf network-id {
description "Index into network-topology-identifier structure";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf neutron-network-id {
description "Neutron-network-id assigned by PO/RO";
- type string;
+ type string {
+ length "0..255";
+ }
}
uses vpn-bindings;
leaf vlan-tag-id {
@@ -434,14 +538,18 @@ module GENERIC-RESOURCE-API {
}
leaf network-status {
description "assigned, unassigned";
- type string;
+ type string {
+ length "0..255";
+ }
}
container customer-bonding-requests {
list customer-bonding-request {
key "configuration-id";
leaf configuration-id {
description "e.g. vlan network receptor configuration id";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -538,13 +646,19 @@ module GENERIC-RESOURCE-API {
grouping vnf-information {
container vnf-information {
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses onap-model-information;
}
@@ -552,10 +666,15 @@ module GENERIC-RESOURCE-API {
grouping vnf-request-input {
container vnf-request-input {
leaf request-version {
- type string;
+ description "keep this? e.g. 1702";
+ type string {
+ length "0..255";
+ }
}
leaf vnf-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses region-identifier;
container vnf-networks {
@@ -568,7 +687,9 @@ module GENERIC-RESOURCE-API {
key "vnf-network-instance-group-id";
leaf vnf-network-instance-group-id {
description "List of vnf network-instance-group";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
container vnf-input-parameters {
@@ -586,7 +707,7 @@ module GENERIC-RESOURCE-API {
uses param;
}
leaf sdnc-generated-cloud-resources {
- description "Indicate if source is sdnc generated cloud param";
+ description "Indicate if source is sdnc generated cloud param. When true, the parameters are literal HEAT template parameter names;When false, the parameters need to be converted to HEAT format";
type boolean;
}
}
@@ -594,28 +715,40 @@ module GENERIC-RESOURCE-API {
grouping vnf-topology-identifier-structure {
container vnf-topology-identifier-structure {
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-type {
description "In preload tree, this label is used for the vf-module-type";
type string;
}
leaf nf-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf nf-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf nf-function {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf nf-code {
description "used in vnf naming";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-name {
description "optionally comes from vnf-request-input container or is assigned by sdn-c";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -623,12 +756,16 @@ module GENERIC-RESOURCE-API {
container vnf-resource-assignments {
leaf vnf-status {
description "Orchestration status from AAI - to be set by SDNC";
- type string;
+ type string {
+ length "0..255";
+ }
}
container availability-zones {
leaf-list availability-zone {
description "Openstack availability zone name or UUID";
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
leaf max-count {
@@ -647,46 +784,66 @@ module GENERIC-RESOURCE-API {
grouping vnf-network-data {
leaf network-role {
description "A Network Role to which a VNF must connect";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-name {
description "Unique Neutron UUID of an instance of the network role ";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf neutron-id {
description "Unique Neutron UUID of an instance of the network role ";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-id {
description "Unique Neutron UUID of an instance of the network role ";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf contrail-network-fqdn {
description "contrail network policy object";
- type string;
+ type string {
+ length "0..255";
+ }
}
container subnets-data {
list subnet-data {
key "sdnc-subnet-id";
leaf sdnc-subnet-id {
description "Unique SDNC generated UUID of the subnet. Key into A&AI instance.This maps to ipv4-key-subnet-id and ipv6-key-subnet-id in VNF-API";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf subnet-role {
description "Subnet Role for the subnet";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf subnet-name {
description "Populated for preload only";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf ip-version {
description "Should be ipv4 or ipv6";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf subnet-id {
description "subnet UUID to be passed into the HEAT template";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dhcp-enabled {
description "Indicator to use this subnet for DHCP ";
@@ -705,19 +862,23 @@ module GENERIC-RESOURCE-API {
}
leaf cidr-mask {
description "cidr mask";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
leaf is-trunked {
- type boolean;
- }
- leaf segmentation-id {
- type string;
- }
- container related-networks {
- uses related-network;
- }
+ type boolean;
+ }
+ leaf segmentation-id {
+ type string {
+ length "0..255";
+ }
+ }
+ container related-networks {
+ uses related-network;
+ }
}
grouping vnf-level-oper-status {
container vnf-level-oper-status {
@@ -735,10 +896,14 @@ module GENERIC-RESOURCE-API {
grouping vf-module-information {
container vf-module-information {
leaf vf-module-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vf-module-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf from-preload {
description "Indicates if source is preload data";
@@ -751,10 +916,14 @@ module GENERIC-RESOURCE-API {
container vf-module-request-input {
leaf request-version {
description "keep this?";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vf-module-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses region-identifier;
container vf-module-input-parameters {
@@ -781,22 +950,30 @@ module GENERIC-RESOURCE-API {
container vf-module-topology-identifier {
leaf vf-module-id {
description "vf-module id";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vf-module-name {
description "vf-module-name";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vf-module-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
grouping vf-module-assignments {
container vf-module-assignments {
leaf vf-module-status {
- description "Orchestration status from AAI - to be set by SDNC";
- type string;
+ description "Orchestration status from AAI";
+ type string {
+ length "0..255";
+ }
}
container vms {
list vm {
@@ -810,13 +987,20 @@ module GENERIC-RESOURCE-API {
key "neutron-subnet-id";
leaf neutron-subnet-id {
description "Same as subnet-id in subnet-data structure";
- type string;
+ type string {
+ length "0..255";
+ }
+ mandatory true;
}
leaf network-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf ip-version {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -824,30 +1008,40 @@ module GENERIC-RESOURCE-API {
}
grouping vm-topology-data {
leaf vm-type {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
uses onap-model-information;
leaf nfc-naming-code {
description "used in vm naming(draft 29: changed from nfc-code)";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vm-type-tag {
description "from tosca data on vfc";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vm-count {
type uint8;
}
container vm-names {
leaf-list vm-name {
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
list vnfc-names {
key "vnfc-name";
leaf vnfc-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
container vnfc-networks {
uses vnfc-network-data;
@@ -865,11 +1059,15 @@ module GENERIC-RESOURCE-API {
list vnfc-network-data {
key "vnfc-network-role";
leaf vnfc-network-role {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf vnfc-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses connection-point;
container vnfc-ports {
@@ -877,12 +1075,16 @@ module GENERIC-RESOURCE-API {
key "vnfc-port-id";
leaf vnfc-port-id {
description "Port(s) with a given network-role are assigned vnfc-port-id from series - 01, 02, 03 ...Example: VM with two ports with network-role =X and another 2 ports with network-role=Y vnfc-port-ids:01 - 1st port with network-role=X02 - 2nd port with network-role=X01 - 1st port with network-role=Y02 - 2nd port with network-role=Y";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf common-sub-interface-role {
description "If sub-interfaces have common interface role (network role)";
- type string;
+ type string {
+ length "0..255";
+ }
}
container vnic-sub-interfaces {
uses sub-interface-network-data;
@@ -893,7 +1095,9 @@ module GENERIC-RESOURCE-API {
key "vnfc-subnet-role";
leaf vnfc-subnet-role {
description "Default value if subnet role is not defined.";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
list vnfc-ip-assignments {
@@ -919,11 +1123,13 @@ module GENERIC-RESOURCE-API {
list vnfc-subnet-ip {
key "vnfc-ip-address";
leaf vnfc-ip-address {
- description "Either IpV4 IP or IpV6 IP addresses should be present";
+ description "Either IpV4 IP or IpV6 IP address should be present";
type inet:ip-address;
}
leaf vnfc-client-key {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf ip-type {
description "Capture what type of IP this is, if is virtual IP (AKA, floating IP) or Fixed IP. ";
@@ -940,18 +1146,24 @@ module GENERIC-RESOURCE-API {
grouping vm-network-data {
leaf network-role {
description "network (identified by role) that this VM connects to. Should also be included in the vnf-networks for the containing VNF";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf network-role-tag {
- type string;
+ type string {
+ length "0..255";
+ }
}
container network-information-items {
list network-information-item {
key "ip-version";
leaf ip-version {
description "Use ipv4 or ipv6";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf use-dhcp {
description "Indicator to use DHCP on this network for this VM";
@@ -967,7 +1179,9 @@ module GENERIC-RESOURCE-API {
container network-ips {
leaf-list network-ip {
description "List of assigned ip addresses of type ip-version on a network";
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
}
@@ -976,7 +1190,9 @@ module GENERIC-RESOURCE-API {
container mac-addresses {
leaf-list mac-address {
description "List of network assignments for this vm-type";
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
}
@@ -1009,13 +1225,17 @@ module GENERIC-RESOURCE-API {
container application-tags {
container c-tags {
leaf-list c-tag {
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
}
container s-tags {
leaf-list s-tag {
- type string;
+ type string {
+ length "0..255";
+ }
ordered-by user;
}
}
@@ -1025,7 +1245,9 @@ module GENERIC-RESOURCE-API {
type boolean;
}
leaf segmentation-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
container related-networks {
uses related-network;
@@ -1038,15 +1260,21 @@ module GENERIC-RESOURCE-API {
}
grouping allotted-resource-info {
leaf allotted-resource-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf allotted-resource-type {
description "Not an enum, but expected values are contrail-route and security-zone.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf allotted-resource-pointer {
description "Pointer to the allotted-resources topology";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
grouping forwarding-path-operation-information {
@@ -1061,7 +1289,9 @@ module GENERIC-RESOURCE-API {
key "forwarding-path-name";
leaf forwarding-path-name {
description "Forwarding-path-name from tosca-model. ";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
uses onap-model-information;
@@ -1071,7 +1301,9 @@ module GENERIC-RESOURCE-API {
grouping forwarding-path-information {
leaf forwarding-path-name {
description "Fowarding-path name from TOSCA model, or name generated by SDNC";
- type string;
+ type string {
+ length "0..512";
+ }
}
leaf forwarding-path-type {
description "Based on MySQL Forwarding_Path tables path_type value from related TOSCA model";
@@ -1091,21 +1323,29 @@ module GENERIC-RESOURCE-API {
grouping service-path-information {
leaf service-path-instance-id {
description "Service path instance ID generated by SDNC. Identifies a service-path-instance within a forwarding-path definition";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf service-path-instance-name {
description "A unique name generated by SDNC ( forwarding-path-name + service-path-instance-id )";
- type string;
+ type string {
+ length "0..512";
+ }
}
leaf version {
description "Only one version of the service-path-instance data will be available in MD-SAL. version will be updated when the service-path-instance is reevaluated ";
- type string;
+ type string {
+ length "0..255";
+ }
}
list service {
key "service-instance-id";
leaf service-instance-id {
description "service-instance-id of each service-instance in the service-path-instance";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf service-path-sequence-id {
description "e.g. S1S2S3S5seq id=1 S1-S2seq id=2 S2S3seq id=3 S3S5Incremental integer value";
@@ -1122,7 +1362,9 @@ module GENERIC-RESOURCE-API {
grouping vnf-path-information {
leaf vnf-instance-id {
description "VNF instance ID in the path";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-path-sequence-id {
description "Sequence ID at the VNF instance levele.g. e.g. V1V2V3V5V6seq id=1 V1-V2seq id=2 V2V3seq id=3 V3V5seq id=4 V5V6incremental integer value.";
@@ -1130,46 +1372,66 @@ module GENERIC-RESOURCE-API {
}
leaf left-network-name {
description "Every VNF instance in the path is connected to one or two VNFs.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf left-network-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf right-network-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf right-network-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
container vf-module-instance {
leaf vf-module-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vf-module-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
- grouping forwarding-path-level-oper-status {
- container forwarding-path-level-oper-status {
- uses oper-status-data;
- }
+ grouping forwarding-path-level-oper-status {
+ container forwarding-path-level-oper-status {
+ uses oper-status-data;
+ }
}
grouping configuration-info {
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-type {
description "Not an enum, but expected values are port-mirror-configuration, , vlan-network-receptor";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-sub-type {
description "Not an enum, but expected values are vprobe and pprobe";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-topology-link {
description "Pointer to the configurations topology";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
grouping vnfc-instance-group {
@@ -1177,21 +1439,29 @@ module GENERIC-RESOURCE-API {
key "instance-group-role nfc-naming-code configuration-id";
leaf instance-group-role {
description "i.e.TSBC_VNFC_group";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf nfc-naming-code {
description "Set to nfc-naming-code from A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf group-type {
description " port-mirror-source or port-mirror-dest";
- type string;
+ type string {
+ length "0..255";
+ }
}
uses vnfc-objects;
}
@@ -1201,32 +1471,48 @@ module GENERIC-RESOURCE-API {
list vnfc-object {
key "vnfc-key";
leaf vnfc-key {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnfc-name {
description "Vnfc name as key in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vm-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vserver-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vserver-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
container vnics {
list vnic {
key "vnic-port-name";
leaf vnic-port-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnic-port-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
container capacity {
leaf vnic-capacity {
@@ -1251,13 +1537,19 @@ module GENERIC-RESOURCE-API {
key "vnfc-name";
leaf vnfc-name {
description "Vnfc name as key in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vserver-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vserver-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses vnics;
}
@@ -1268,10 +1560,14 @@ module GENERIC-RESOURCE-API {
list vnic {
key "vnic-port-name";
leaf vnic-port-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnic-port-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses sub-interfaces;
}
@@ -1282,10 +1578,14 @@ module GENERIC-RESOURCE-API {
list sub-interface {
key "sub-interface-port-name";
leaf sub-interface-port-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf sub-interface-port-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
container sub-interface-ip-addresses {
uses ip-addresses;
@@ -1293,15 +1593,21 @@ module GENERIC-RESOURCE-API {
uses vlan-tags;
container sub-interface-network {
leaf network-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
leaf sub-interface-status {
description "NULL, unassigned, assigned";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1310,12 +1616,16 @@ module GENERIC-RESOURCE-API {
container vlan-tags {
leaf vlan-interface {
description "A&AI Key";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf upper-tag-id {
+ description "aka outer tag";
type uint32;
}
leaf lower-tag-id {
+ description "aka inner tag";
type uint32;
}
leaf is-private {
@@ -1329,20 +1639,28 @@ module GENERIC-RESOURCE-API {
key "instance-group-id";
leaf instance-group-id {
description "A&AI ID";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
container vnfcs {
list vnfc {
key "vnfc-name";
leaf vnfc-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses vnic-groups;
}
@@ -1356,16 +1674,22 @@ module GENERIC-RESOURCE-API {
key "vnic-interface-role";
leaf vnic-interface-role {
description "Same as network-role of network where vnic is connected";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf network-instance-group-function {
description "network-instance-Group-function for network collection where vnics with vnic-interface-role will connect";
- type string;
- }
+ type string {
+ length "0..255";
+ }
+ }
leaf vlan-assignment-policy-name {
description "Policy name in ASDC model & policy definition in Policy Engine";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vlan-tag-index-next {
description "Next tag to be assigned";
@@ -1378,7 +1702,9 @@ module GENERIC-RESOURCE-API {
list vlan-vnic {
key "vnic-port-id";
leaf vnic-port-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container vnic-sub-interfaces {
@@ -1389,37 +1715,84 @@ module GENERIC-RESOURCE-API {
}
}
}
+ grouping vnf-cloud-param {
+ leaf service-instance-id {
+ type string {
+ length "0..255";
+ }
+ }
+ leaf service-instance-name {
+ type string {
+ length "0..255";
+ }
+ }
+ list vnf {
+ key "vnf-id";
+ leaf vnf-id {
+ type string {
+ length "0..255";
+ }
+ }
+ leaf vnf-name {
+ type string {
+ length "0..255";
+ }
+ }
+ uses param;
+ list vf-module {
+ key "vf-module-id";
+ leaf vf-module-id {
+ type string {
+ length "0..255";
+ }
+ }
+ uses param;
+ }
+ }
+ }
grouping vnf-network-collection {
list vnf-network-collection {
key "network-instance-group-function";
leaf network-instance-group-function {
description "Network Instance-Group function in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf network-instance-group-id {
description "Network Instance-Group id in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-collection-service-instance-id {
description "Service-instance-id of service that created the network collection";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-collection-customization-uuid {
description "network-collection-customization-uuid stored in Network IsntanceGroup.customization-uuid in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
container networks {
list network {
key "network-id";
leaf network-id {
description "Index into network-topology-identifier structure";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf neutron-network-id {
description "Neutron-network-id assigned by PO/RO";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1432,15 +1805,21 @@ module GENERIC-RESOURCE-API {
list vnf-sub-interface-group {
key "vnfc-instance-group-function network-instance-group-function parent-port-role";
leaf vnfc-instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf network-instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf parent-port-role {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
uses vnfcs;
@@ -1449,7 +1828,9 @@ module GENERIC-RESOURCE-API {
key "configuration-id";
leaf configuration-id {
description "e.g. vlan network receptor configuration id";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1460,12 +1841,16 @@ module GENERIC-RESOURCE-API {
key "network-id";
leaf network-id {
description "Subinterface network id (UUID in A&AI)";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf neutron-network-id {
description "Neutron network id assigned by PO/RP";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-name {
description "Subinterface network name";
@@ -1477,18 +1862,24 @@ module GENERIC-RESOURCE-API {
}
leaf network-role {
description "e.g. untrusted ";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-role-tag {
description "Assuming HEAT template network role tag parameter - not used";
- type string;
+ type string {
+ length "0..255";
+ }
}
container network-information-items {
list network-information-item {
key "ip-version";
leaf ip-version {
description "Use ipv4 or ipv6";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf use-dhcp {
description "Indicator to use DHCP on this network for this VM - set to N for Vlan tagging";
@@ -1524,41 +1915,20 @@ module GENERIC-RESOURCE-API {
}
}
}
- grouping vnf-cloud-param {
- leaf service-instance-id {
- type string;
- }
- leaf service-instance-name {
- type string;
- }
- list vnf {
- key "vnf-id";
- leaf vnf-id {
- type string;
- }
- leaf vnf-name {
- type string;
- }
- uses param;
- list vf-module {
- key "vf-module-id";
- leaf vf-module-id {
- type string;
- }
- uses param;
- }
- }
- }
grouping vnf-get-resource-request-input-data {
list vnf {
key "vnf-id";
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
list vf-module {
key "vf-module-id";
leaf vf-module-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1568,41 +1938,59 @@ module GENERIC-RESOURCE-API {
list entitlement-pool-list {
key "entitlement-pool-uuid action";
leaf entitlement-pool-uuid {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf action {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf entitlement-pool-invariant-uuid {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf entitlement-uuid {
description "assigned by ALTS";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
list license-key-group-list {
key "license-key-group-uuid action";
leaf license-key-group-uuid {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf action {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf license-key-group-invariant-uuid {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf license-key {
description "assigned by ALTS";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf license-uuid {
description "assigned by ALTS";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1612,10 +2000,14 @@ module GENERIC-RESOURCE-API {
key "network-id";
leaf network-id {
description "Key to l3-network object";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses vlan-tags;
}
@@ -1624,27 +2016,39 @@ module GENERIC-RESOURCE-API {
container connection-point {
leaf connection-point-id {
description "Key to CP object in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf port-id {
description "port-index when multiple CPs connect to same network. Default zero (0)";
- type string;
+ type string {
+ length "0..255";
+ }
}
list vlan-data {
key "vlan-uuid";
leaf vlan-uuid {
description "Key to vlan-tag uuid object in A&AI Generated by vlan mS";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vlan-tag-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vlan-tag-description {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vlan-role {
description "Inner/Outer roles";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1654,17 +2058,23 @@ module GENERIC-RESOURCE-API {
key "route-id";
leaf route-id {
description "Unique id";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf start-address {
type inet:ip-address;
}
leaf cidr-mask {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf ip-version {
description "Use values 4 or 6.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1672,10 +2082,14 @@ module GENERIC-RESOURCE-API {
container pnf-information {
leaf pnf-name {
description "Key for A&AI query";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf pnf-type {
- type string;
+ type string {
+ length "0..255";
+ }
}
uses onap-model-information;
}
@@ -1698,11 +2112,15 @@ module GENERIC-RESOURCE-API {
container contrail-applied-service-info {
leaf service-instance-id {
description "The service-instance-id of the service in which the resource(s) providing the applied-service are. For vIPR, this is the service-instance-id of the vIPR-ATM service in which the vIPR-ATM VNF Contrail service is the applied service. MSO will populate with the input data.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf contrail-fqdn {
description "For future use by MSO on input; MSO not expected to populate in 1707. If MSO can identify the contrail-fqdn of the Contrail applied service for this contrail-route, then it would be specified here on input. Otherwise, SDN-C will look it up by the vIPR-ATM VNF in the service-instance-id of the contrail-applied-service-info grouing.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
container contrail-route-input-parameters {
@@ -1712,10 +2130,14 @@ module GENERIC-RESOURCE-API {
}
grouping network-info {
leaf network-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
grouping contrail-route-topology {
@@ -1732,11 +2154,15 @@ module GENERIC-RESOURCE-API {
container contrail-route-assignments {
leaf fq-name {
description "The Contrail fq-name of the network policy";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf contrail-id {
description "The ID assigned by Contrail to the network-policy (one for one with the fq-name)";
- type string;
+ type string {
+ length "0..255";
+ }
}
container source-network {
uses network-info;
@@ -1747,20 +2173,28 @@ module GENERIC-RESOURCE-API {
container contrail-applied-service {
leaf service-instance-id {
description "The service-instance-id of the vnf from which the contrail applied service is coming";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-id {
description "The vnf representing the contrail applied service";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf contrail-fqdn {
description "This is the fq-name of the Contrail service instance through which the route is passing.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
leaf vlan-tag {
description "Contrail-assigned vlan-tag to the vipr vm interface for this route.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1774,15 +2208,21 @@ module GENERIC-RESOURCE-API {
grouping security-zone-request-input {
container security-zone-request-input {
leaf vlan-tag {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf trusted-network-role {
description "In the case of vIPR, this is the landing networks network-role; used in naming";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf untrusted-network-role {
description "In the case of vIPR, this is the tenant oam networks network-role; used in naming";
- type string;
+ type string {
+ length "0..255";
+ }
}
container security-zone-input-parameters {
uses param;
@@ -1803,28 +2243,42 @@ module GENERIC-RESOURCE-API {
container security-zone-assignments {
leaf trusted-network-role {
description "In the case of vIPR, this is the landing networks network-role; used in naming";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf security-zone-name-trusted {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf untrusted-network-role {
description "In the case of vIPR, this is the tenant oam networks network-role; used in naming";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf security-zone-name-untrusted {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf security-zone-service-instance-id {
description "Will be the same as the parent-service-instance-id";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf security-zone-vnf-id {
description "Selected by SDNC from the security-zone-service-instance-id";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vlan-tag {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -1841,7 +2295,9 @@ module GENERIC-RESOURCE-API {
uses port-info;
leaf source-port-id {
description "needed for srv-action=disable/enable";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
container dest-port {
@@ -1856,7 +2312,9 @@ module GENERIC-RESOURCE-API {
grouping port-info {
leaf service-instance-id {
description "May not be need.";
- type string;
+ type string {
+ length "0..255";
+ }
}
uses pnf-information;
uses vnf-information;
@@ -1877,126 +2335,194 @@ module GENERIC-RESOURCE-API {
uses param;
}
leaf vnics-group-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf owning-entity {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf tenant-context {
description "From tenant object in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf tenant {
description "Tenant name from A&AI for source VNF";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf tenant-id {
description "tenant-id from A&AI for source VNF";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-tenant {
description "Tenant name from A&AI for destination VNF";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-tenant-id {
description "tenant-id from A&AI for destination VNF";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf cloud-region-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf cloud-owner {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-network-fqdn {
- type string;
+ type string {
+ length "0..512";
+ }
}
leaf source-network-fqdn {
- type string;
+ type string {
+ length "0..512";
+ }
}
leaf source-capacity {
description "Source port pps (packets per second) rating from tosca model";
type uint32;
}
leaf source-vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-vnf-id {
description "For vProbe";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-pnf-name {
description "For pProbe";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-p-interface {
description "For pProbe; from policy manager";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-pnf-port-policy-name {
description "For pProbe; from tosca model";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf probe-type {
description "vprobe or pprobe; derived from configuration-information.configuration-sub-type";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf route-allotted-resource-id {
description "For vProbe";
- type string;
+ type string {
+ length "0..255";
+ }
}
container source-vnfc-instance-group-id {
leaf service-instance-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf nfc-naming-code {
- type string;
+ description "Set to nfc-naming-code";
+ type string {
+ length "0..255";
+ }
}
leaf instance-group-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
container dest-vnfc-instance-group-id {
leaf service-instance-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf nfc-naming-code {
- type string;
+ description "Set to nfc-naming-code";
+ type string {
+ length "0..255";
+ }
}
leaf instance-group-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
container source-to-dest-maps {
list source-to-dest-map {
key "source-port-id";
leaf source-port-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf source-port-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf source-vserver-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-vserver-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-port-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dest-port-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf link-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
container dest-ip-addresses {
uses ip-addresses;
@@ -2015,23 +2541,31 @@ module GENERIC-RESOURCE-API {
grouping gc-request-input {
container gc-request-input {
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vf-module-id {
description "This is mandatory in case of rebuild";
- type string;
+ type string {
+ length "0..255";
+ }
}
container input-parameters {
uses param;
}
leaf rebuild {
description "Value will indicate what to rebuild";
- type string;
+ type string {
+ length "0..255";
+ }
}
list configuration-ids {
key "configuration-id";
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -2039,33 +2573,51 @@ module GENERIC-RESOURCE-API {
grouping vnr-parameters {
container vnr-parameters {
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vf-module-id {
description "This is mandatory in case of rebuild";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-service-instance-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-collection-service-instance-id {
description "service instance id that created network-collection";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-instance-group-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnfc-instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf parent-port-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf upper-tag-id {
type uint32;
@@ -2190,30 +2742,46 @@ module GENERIC-RESOURCE-API {
grouping vnf-vnr-rebuild-data {
container vnf-vnr-rebuild-data {
leaf vnf-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnf-service-instance-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
list vnrs-data {
key "configuration-id";
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-instance-group-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vnfc-instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf network-instance-group-function {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf parent-port-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf upper-tag-id {
type uint32;
@@ -2227,15 +2795,21 @@ module GENERIC-RESOURCE-API {
grouping allotted-resource-information {
container allotted-resource-information {
leaf allotted-resource-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf allotted-resource-type {
description "Not an enum, but expected values are contrail-route and security-zone.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf parent-service-instance-id {
description "Service-instance-id of the parent service to which this allotted resource belongs.";
- type string;
+ type string {
+ length "0..255";
+ }
}
uses onap-model-information;
}
@@ -2243,23 +2817,33 @@ module GENERIC-RESOURCE-API {
grouping allotted-resource-identifiers {
container allotted-resource-identifiers {
leaf allotted-resource-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf allotted-resource-name {
description "For a contrail-route, the network policy name.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf allotted-resource-type {
description "(Added in draft 32)Expected to be contrail-route or security-zone.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf consuming-service-instance-id {
description "The service-instance-id of the consuming service of this allotted resource";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf parent-service-instance-id {
description "Service-instance-id of the parent service to which this allotted resource belongs.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -2271,13 +2855,19 @@ module GENERIC-RESOURCE-API {
grouping allotted-resource-status {
container allotted-resource-status {
leaf response-code {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf response-message {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf final-indicator {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf request-status {
type enumeration {
@@ -2288,10 +2878,14 @@ module GENERIC-RESOURCE-API {
}
leaf action {
description "value would one of possible request-actions; match the list in service-data oper-status";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf rpc-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf rpc-action {
description "this is the svc-action from the incoming request";
@@ -2305,25 +2899,35 @@ module GENERIC-RESOURCE-API {
}
}
leaf response-timestamp {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
grouping configuration-information {
container configuration-information {
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-type {
description "Not an enum, but expected values are port-mirror-configuration, vlan-network-receptor";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-sub-type {
description "e.g. vprobe and pprobe when configuration-type=port-mirror-configuration";
- type string;
+ type string {
+ length "0..255";
+ }
}
uses onap-model-information;
}
@@ -2331,22 +2935,32 @@ module GENERIC-RESOURCE-API {
grouping configuration-identifiers {
container configuration-identifiers {
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-type {
description "Not an enum, but expected values are port-mirror-configuration.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf configuration-sub-type {
description " vprobe and pprobe";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf parent-service-instance-id {
description "Service-instance-id of the parent service to which this resource belongs.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -2358,13 +2972,19 @@ module GENERIC-RESOURCE-API {
grouping configuration-status {
container configuration-status {
leaf response-code {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf response-message {
- type string;
+ type string {
+ length "0..2000";
+ }
}
leaf final-indicator {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf request-status {
type enumeration {
@@ -2375,10 +2995,14 @@ module GENERIC-RESOURCE-API {
}
leaf action {
description "value would one of possible request-actions; match the list in service-data oper-status";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf rpc-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf rpc-action {
description "this is the svc-action from the incoming request";
@@ -2394,33 +3018,45 @@ module GENERIC-RESOURCE-API {
}
}
leaf response-timestamp {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
grouping topology-response-common {
leaf svc-request-id {
description "the request id from the request message for which this is the responseKeep as M";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf response-code {
description "a success code or an defined error codeKeep as M";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf response-message {
description "message included for error code";
- type string;
+ type string {
+ length "0..2000";
+ }
}
leaf ack-final-indicator {
description "Expected to be Y or N.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
grouping sdnc-request-header {
container sdnc-request-header {
leaf svc-request-id {
description "Uniquely generated by calling system (e.g. MSO or SDN-GP)";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf svc-action {
description "This is the rpcAction";
@@ -2444,7 +3080,9 @@ module GENERIC-RESOURCE-API {
}
leaf svc-notification-url {
description "Contains URL for asynchronous response";
- type string;
+ type string {
+ length "0..512";
+ }
}
}
}
@@ -2452,7 +3090,9 @@ module GENERIC-RESOURCE-API {
container request-information {
leaf request-id {
description "Request ID generated upstream of MSO";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf request-action {
description "still need to work Disconnect";
@@ -2553,16 +3193,24 @@ module GENERIC-RESOURCE-API {
}
}
leaf source {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf notification-url {
- type string;
+ type string {
+ length "0..512";
+ }
}
leaf order-number {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf order-version {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -2570,23 +3218,33 @@ module GENERIC-RESOURCE-API {
container service-information {
leaf service-id {
description "This maps to the product-family-id in A&AI";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf subscription-service-type {
description "used to reference a&ai subscription-service-type. For example, we show as vIPR-ATM in example.";
- type string;
+ type string {
+ length "0..255";
+ }
}
uses onap-model-information;
leaf service-instance-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf global-customer-id {
description "need for put of data to AnAI (MSO provides)";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf subscriber-name {
description "Would not be expected for vIPR-ATM or mobility services.";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -2594,67 +3252,94 @@ module GENERIC-RESOURCE-API {
container onap-model-information {
leaf model-invariant-uuid {
description "identifies the invariant uuid for this service or resource";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf model-customization-uuid {
description "customized resource for use within a given service.Would not be present at the service level but would be present for the resource level";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf model-uuid {
description "identifies the uuid for this service or resource, which is version specific";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf model-version {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf model-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
grouping region-identifier {
leaf tenant {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf aic-cloud-region {
description "The AIC cloud region which maps to contrail versions";
type string;
}
leaf cloud-owner {
- description "The cloud owner provided by the caller";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf aic-clli {
description "Not expected to be used";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
grouping param {
list param {
key "name";
leaf name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf value {
- type string;
+ type string {
+ length "0..20000";
+ }
}
container resource-resolution-data {
list resource-key {
key "name";
leaf name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf value {
- type string;
+ type string {
+ length "0..20000";
+ }
}
}
leaf status {
description "SUCCESS, FAILED, or PENDING - RA returned data as capability";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf capability-name {
description "Resource assignment resolution Capability name";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf payload {
type string;
@@ -2682,11 +3367,15 @@ module GENERIC-RESOURCE-API {
}
grouping instance-reference {
leaf instance-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf object-path {
description "restconf retrieval path to this particular objectE.g. restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/service-topology/";
- type string;
+ type string {
+ length "0..512";
+ }
}
}
grouping oper-status-data {
@@ -2813,7 +3502,9 @@ module GENERIC-RESOURCE-API {
}
leaf last-svc-request-id {
description "Not currently populated in service data.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf last-order-status {
type enumeration {
@@ -2828,10 +3519,14 @@ module GENERIC-RESOURCE-API {
}
leaf create-timestamp {
description "Not currently populated in service data.";
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf modify-timestamp {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
grouping service-response-information {
@@ -2904,12 +3599,16 @@ module GENERIC-RESOURCE-API {
key "preload-id preload-type";
leaf preload-id {
description "vf-module-name or network name";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf preload-type {
description "network or vf-module";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
uses preload-data;
@@ -2950,10 +3649,14 @@ module GENERIC-RESOURCE-API {
type inet:ip-address;
}
leaf cidr-mask {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf ip-version {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dhcp-enabled {
type enumeration {
@@ -2962,10 +3665,14 @@ module GENERIC-RESOURCE-API {
}
}
leaf dhcp-start-address {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf dhcp-end-address {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf addr-from-start {
description "Default is N";
@@ -2975,10 +3682,14 @@ module GENERIC-RESOURCE-API {
}
}
leaf subnet-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf subnet-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf subnet-sequence {
type uint8;
@@ -2989,20 +3700,30 @@ module GENERIC-RESOURCE-API {
list vpn-bindings {
key "vpn-binding-id";
leaf vpn-binding-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf vpn-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf global-route-target {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf route-target-role {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf aic-zone {
description "AIC Zone the route target associated with";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -3010,10 +3731,14 @@ module GENERIC-RESOURCE-API {
list network-policy {
key "network-policy-fqdn";
leaf network-policy-fqdn {
- type string;
+ type string {
+ length "0..512";
+ }
}
leaf network-policy-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -3021,17 +3746,23 @@ module GENERIC-RESOURCE-API {
list route-table-reference {
key "route-table-reference-fqdn";
leaf route-table-reference-fqdn {
- type string;
+ type string {
+ length "0..512";
+ }
mandatory true;
}
leaf route-table-reference-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
grouping provider-network-information {
leaf physical-network-name {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf is-provider-network {
type boolean;
@@ -3039,7 +3770,7 @@ module GENERIC-RESOURCE-API {
leaf is-shared-network {
type boolean;
}
- leaf is-external-network {
+ leaf is-external-network {
type boolean;
}
}
@@ -3047,11 +3778,15 @@ module GENERIC-RESOURCE-API {
list host-routes {
key "route-prefix";
leaf route-prefix {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf next-hop {
description "Could be ip-address or hostname or service-instance";
- type string;
+ type string {
+ length "0..255";
+ }
}
}
}
@@ -3076,7 +3811,9 @@ module GENERIC-RESOURCE-API {
}
}
leaf last-svc-request-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf last-order-status {
type enumeration {
@@ -3089,10 +3826,14 @@ module GENERIC-RESOURCE-API {
}
}
leaf create-timestamp {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf modify-timestamp {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf maintenance-indicator {
type enumeration {
@@ -3104,16 +3845,24 @@ module GENERIC-RESOURCE-API {
}
grouping preload-topology-response-body {
leaf svc-request-id {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf response-code {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf response-message {
- type string;
+ type string {
+ length "0..2000";
+ }
}
leaf ack-final-indicator {
- type string;
+ type string {
+ length "0..255";
+ }
}
}
rpc generic-configuration-notification {
@@ -3125,7 +3874,9 @@ module GENERIC-RESOURCE-API {
uses topology-response-common;
leaf configuration-topology-link {
description "Returns URL to generic-configuration-topology ";
- type string;
+ type string {
+ length "0..512";
+ }
}
uses vnr-parameters;
uses vnf-vnr-rebuild-data;
@@ -3138,7 +3889,9 @@ module GENERIC-RESOURCE-API {
list contrail-route-allotted-resource {
key "allotted-resource-id";
leaf allotted-resource-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container allotted-resource-data {
@@ -3155,7 +3908,9 @@ module GENERIC-RESOURCE-API {
list security-zone-allotted-resource {
key "allotted-resource-id";
leaf allotted-resource-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container allotted-resource-data {
@@ -3235,7 +3990,9 @@ module GENERIC-RESOURCE-API {
list port-mirror-configuration {
key "configuration-id";
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container configuration-data {
@@ -3252,7 +4009,9 @@ module GENERIC-RESOURCE-API {
list gc-configuration {
key "configuration-id";
leaf configuration-id {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
container configuration-data {
@@ -3357,25 +4116,35 @@ module GENERIC-RESOURCE-API {
rpc policy-update-notify-operation {
input {
leaf policy-name {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf version-id {
description "Map JSON versionNo to version-id";
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
leaf update-type {
- type string;
+ type string {
+ length "0..255";
+ }
mandatory true;
}
}
output {
leaf error-code {
- type string;
+ type string {
+ length "0..255";
+ }
}
leaf error-msg {
- type string;
+ type string {
+ length "0..2000";
+ }
}
}
}