4 * Copyright 2016-2017 RIFT.IO Inc
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
23 namespace "http://riftio.com/ns/riftware-1.0/rw-nsd";
48 "Update model to support projects.";
53 "Initial revision. This YANG file augments
56 "Derived from earlier versions of base YANG files";
59 grouping nsd-config-parameter{
60 list config-parameter-map {
62 description "A mapping of VNF config parameter
63 requests and sources within this network service";
65 description "Identfier for VNF map";
68 container config-parameter-request {
69 leaf member-vnf-index-ref {
70 description "Reference to member-vnf within constituent-vnfds";
72 path "../../../nsd:constituent-vnfd/nsd:member-vnf-index";
77 "A reference to a vnfd.";
80 path "../../../nsd:constituent-vnfd[nsd:member-vnf-index = current()/../member-vnf-index-ref]/nsd:vnfd-id-ref";
83 leaf config-parameter-request-ref {
84 description "Reference to the request in the VNF
85 with the specified member-vnf-index";
88 "/vnfd:vnfd-catalog/vnfd:vnfd[vnfd:id = current()/../vnfd-id-ref]" +
89 "/rwvnfd:config-parameter/rwvnfd:config-parameter-request/rwvnfd:name";
93 container config-parameter-source {
94 leaf member-vnf-index-ref {
95 description "Reference to member-vnf within constituent-vnfds";
97 path "../../../nsd:constituent-vnfd/nsd:member-vnf-index";
102 "A reference to a vnfd.";
104 path "../../../nsd:constituent-vnfd[nsd:member-vnf-index = current()/../member-vnf-index-ref]/nsd:vnfd-id-ref";
107 leaf config-parameter-source-ref {
108 description "Reference to the source in the VNF
109 with the specified member-vnf-index";
112 "/vnfd:vnfd-catalog/vnfd:vnfd[vnfd:id = current()/../vnfd-id-ref]" +
113 "/rwvnfd:config-parameter/rwvnfd:config-parameter-source/rwvnfd:name";
120 augment /nsd:nsd-catalog/nsd:nsd {
121 uses rw-nsd-base:rw-nsd-ext;
122 uses nsd-config-parameter;
125 augment /nsd:nsd-catalog/nsd:nsd/nsd:service-primitive/nsd:parameter {
127 description "If this is an output of the primitive execution";
133 augment /nsd:nsd-catalog/nsd:nsd/nsd:service-primitive/nsd:parameter-group/nsd:parameter {
135 description "If this is an output of the primitive execution";
141 augment /nsd:nsd-catalog/nsd:nsd/nsd:vld {
142 leaf ipv4-nat-pool-name{
144 description "IPV4 nat pool name";
147 list virtual-connection-points {
149 "A list of virtual-connection points associated with Virtual Link.
150 These connection points are not directly associated with any VNFs";
152 uses vnfd-base:common-connection-point;
154 leaf-list associated-cps {
156 "A List of connection points associated with virtual connection point";
158 path "../../nsd:vnfd-connection-point-ref/nsd:vnfd-connection-point-ref";