4 * Copyright 2016 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 {
48 "Initial revision. This YANG file defines
49 the Virtual Link Descriptor (VLD)";
51 "Derived from earlier versions of base YANG files";
54 container vld-catalog {
60 description "Identifier for the VLD.";
65 description "Virtual Link Descriptor (VLD) name.";
70 description "Short name for VLD for UI";
75 description "Provider of the VLD.";
80 description "Description of the VLD.";
85 description "Version of the VLD";
90 type manotypes:virtual-link-type;
95 "For ELAN this is the aggregate bandwidth.";
101 "For ELAN this is the bandwidth of branches.";
105 list vnfd-connection-point-ref {
107 "A list of references to connection points.";
108 key "vnfd-ref member-vnf-index-ref";
111 description "A reference to a vnfd";
113 path "/vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id";
117 leaf member-vnf-index-ref {
119 "A reference to the consituent-vnfd id in nsd.
120 Should have been a leafref to:
121 '/nsd:nsd-catalog:/nsd:nsd/constituent-vnfd/member-vnf-index-ref'.
122 Instead using direct leaf to avoid circular reference.";
126 leaf vnfd-connection-point-ref {
128 "A reference to a connection point name in a vnfd";
130 path "/vnfd:vnfd-catalog/vnfd:vnfd"
131 + "[vnfd:id = current()/../vld:vnfd-ref]"
132 + "/vnfd:connection-point/vnfd:name";
137 // replicate for pnfd container here
138 uses manotypes:provider-network;