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 "urn:ietf:params:xml:ns:yang:nfvo:vld";
27 prefix "project-vnfd";
30 import ietf-inet-types {
34 import ietf-yang-types {
48 "Update model to support projects.";
53 "Initial revision. This YANG file defines
54 the Virtual Link Descriptor (VLD)";
56 "Derived from earlier versions of base YANG files";
59 augment "/rw-project:project" {
60 container vld-catalog {
66 description "Identifier for the VLD.";
71 description "Virtual Link Descriptor (VLD) name.";
76 description "Short name for VLD for UI";
81 description "Provider of the VLD.";
86 description "Description of the VLD.";
91 description "Version of the VLD";
96 type manotypes:virtual-link-type;
101 "For ELAN this is the aggregate bandwidth.";
105 leaf leaf-bandwidth {
107 "For ELAN this is the bandwidth of branches.";
111 list vnfd-connection-point-ref {
113 "A list of references to connection points.";
114 key "vnfd-ref member-vnf-index-ref";
117 description "A reference to a vnfd";
119 path "../../../../project-vnfd:vnfd-catalog/project-vnfd:vnfd/project-vnfd:id";
123 leaf member-vnf-index-ref {
125 "A reference to the consituent-vnfd id in nsd.
126 Should have been a leafref to:
127 '/rw-project:project/project-nsd:nsd-catalog:/nsd/constituent-vnfd/member-vnf-index-ref'.
128 Instead using direct leaf to avoid circular reference.";
132 leaf vnfd-connection-point-ref {
134 "A reference to a connection point name in a vnfd";
136 path "../../../../project-vnfd:vnfd-catalog/project-vnfd:vnfd"
137 + "[project-vnfd:id = current()/../vld:vnfd-ref]"
138 + "/project-vnfd:connection-point/project-vnfd:name";
143 // replicate for pnfd container here
144 uses manotypes:provider-network;