aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/model/src/main
diff options
context:
space:
mode:
authorCheung, Pat (kc1472) <kc1472@att.com>2019-03-11 17:23:05 +0000
committerCheung, Pat (kc1472) <kc1472@att.com>2019-03-11 18:09:40 +0000
commitdd6ec30e6a0141de5a4489b1c7c058419927d689 (patch)
tree875370af29e24843ce2b709755f742e4b2dcdce6 /generic-resource-api/model/src/main
parent9f044980443b05e92fc961293416f9cda8deeac7 (diff)
Dublin yang model update
PNF support in Dublin Change-Id: Icb2a00b37be11e1d0ac1b13940c0c8053a2a5b64 Issue-ID: SDNC-633 Signed-off-by: Cheung, Pat (kc1472) <kc1472@att.com>
Diffstat (limited to 'generic-resource-api/model/src/main')
-rw-r--r--generic-resource-api/model/src/main/yang/GENERIC-RESOURCE-API.yang110
1 files changed, 109 insertions, 1 deletions
diff --git a/generic-resource-api/model/src/main/yang/GENERIC-RESOURCE-API.yang b/generic-resource-api/model/src/main/yang/GENERIC-RESOURCE-API.yang
index 62d8c7bc..ac89e023 100644
--- a/generic-resource-api/model/src/main/yang/GENERIC-RESOURCE-API.yang
+++ b/generic-resource-api/model/src/main/yang/GENERIC-RESOURCE-API.yang
@@ -51,6 +51,20 @@ module GENERIC-RESOURCE-API {
}
}
}
+ container pnfs {
+ list pnf {
+ key "pnf-id";
+ leaf pnf-id {
+ type string;
+ mandatory true;
+ }
+ container pnf-data {
+ uses pnf-operation-information;
+ uses pnf-topology;
+ uses pnf-level-oper-status;
+ }
+ }
+ }
container vnfs {
list vnf {
key "vnf-id";
@@ -429,6 +443,79 @@ module GENERIC-RESOURCE-API {
uses oper-status-data;
}
}
+ grouping pnf-operation-information {
+ uses sdnc-request-header;
+ uses request-information;
+ uses service-information;
+ uses pnf-details;
+ uses pnf-request-input;
+ }
+ grouping pnf-details {
+ container pnf-details {
+ leaf pnf-id {
+ description "pnfId*Identifier of this Pnf information element. CORRELATIONID = PNF-NAME (A&AI)";
+ type string;
+ mandatory true;
+ }
+ leaf pnf-type {
+ description "pnfType (template)*Type of Resource. NEW type: PNF (pre-defined in SDC)";
+ type string;
+ }
+ leaf pnf-name {
+ type string;
+ }
+ uses onap-model-information;
+ }
+ }
+ grouping pnf-request-input {
+ container pnf-request-input {
+ leaf request-version {
+ description "keep this? e.g. 1702";
+ type string;
+ }
+ leaf pnf-name {
+ type string;
+ }
+ uses region-identifier;
+ container pnf-input-parameters {
+ uses param;
+ }
+ }
+ }
+ grouping pnf-topology {
+ container pnf-topology {
+ uses pnf-topology-identifier-structure;
+ uses region-identifier;
+ uses onap-model-information;
+ container pnf-parameters-data {
+ uses param;
+ }
+ leaf sdnc-generated-cloud-resources {
+ 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;
+ }
+ }
+ }
+ grouping pnf-topology-identifier-structure {
+ container pnf-topology-identifier-structure {
+ leaf pnf-id {
+ type string;
+ }
+ leaf pnf-type {
+ description "In preload tree, this label is used for the vf-module-type";
+ type string;
+ }
+ leaf pnf-name {
+ description "optionally comes from pnf-request-input container or is assigned by sdn-c";
+ type string;
+ }
+ }
+ }
+ grouping pnf-level-oper-status {
+ container pnf-level-oper-status {
+ uses oper-status-data;
+ }
+ }
grouping vnf-operation-information {
uses sdnc-request-header;
uses request-information;
@@ -2353,6 +2440,9 @@ module GENERIC-RESOURCE-API {
enum "CreateVnfInstance";
enum "ActivateVnfInstance";
enum "DeleteVnfInstance";
+ enum "CreatePnfInstance";
+ enum "ActivatePnfInstance";
+ enum "DeletePnfInstance";
enum "CreateVfModuleInstance";
enum "ActivateVfModuleInstance";
enum "DeleteVfModuleInstance";
@@ -2580,12 +2670,15 @@ module GENERIC-RESOURCE-API {
enum "CreateNetworkInstance";
enum "ActivateNetworkInstance";
enum "DeActivateNetworkInstance";
+ enum "DeleteNetworkInstance";
enum "CreateServiceInstance";
enum "DeleteServiceInstance";
- enum "DeleteNetworkInstance";
enum "CreateVnfInstance";
enum "ActivateVnfInstance";
enum "DeleteVnfInstance";
+ enum "CreatePnfInstance";
+ enum "ActivatePnfInstance";
+ enum "DeletePnfInstance";
enum "CreateVfModuleInstance";
enum "ActivateVfModuleInstance";
enum "DeleteVfModuleInstance";
@@ -2690,6 +2783,11 @@ module GENERIC-RESOURCE-API {
uses instance-reference;
}
}
+ grouping pnf-response-information {
+ container pnf-response-information {
+ uses instance-reference;
+ }
+ }
grouping contrail-route-response-information {
container contrail-route-response-information {
uses instance-reference;
@@ -3135,6 +3233,16 @@ module GENERIC-RESOURCE-API {
uses service-response-information;
}
}
+ rpc pnf-topology-operation {
+ input {
+ uses pnf-operation-information;
+ }
+ output {
+ uses topology-response-common;
+ uses pnf-response-information;
+ uses service-response-information;
+ }
+ }
rpc contrail-route-topology-operation {
input {
uses contrail-route-operation-information;