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";
34 import ietf-inet-types {
38 import ietf-yang-types {
52 "Update model to support projects.";
57 "Initial revision. This YANG file defines
58 the Virtual Link Descriptor (VLD)";
60 "Derived from earlier versions of base YANG files";
63 augment "/rw-project:project" {
64 container vld-catalog {
70 description "Identifier for the VLD.";
75 description "Virtual Link Descriptor (VLD) name.";
80 description "Short name for VLD for UI";
85 description "Provider of the VLD.";
90 description "Description of the VLD.";
95 description "Version of the VLD";
100 type manotypes:virtual-link-type;
103 leaf root-bandwidth {
105 "For ELAN this is the aggregate bandwidth.";
109 leaf leaf-bandwidth {
111 "For ELAN this is the bandwidth of branches.";
115 list vnfd-connection-point-ref {
117 "A list of references to connection points.";
118 key "vnfd-ref member-vnf-index-ref";
121 description "A reference to a vnfd";
123 path "../../../../vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id";
127 leaf member-vnf-index-ref {
129 "A reference to the consituent-vnfd id in nsd.
130 Should have been a leafref to:
131 '/nsd:nsd-catalog:/nsd:nsd/constituent-vnfd/member-vnf-index-ref'.
132 Instead using direct leaf to avoid circular reference.";
136 leaf vnfd-connection-point-ref {
138 "A reference to a connection point name in a vnfd";
140 path "../../../../vnfd:vnfd-catalog/vnfd:vnfd"
141 + "[vnfd:id = current()/../vld:vnfd-ref]"
142 + "/vnfd:connection-point/vnfd:name";
147 // replicate for pnfd container here
148 uses manotypes:provider-network;