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:vlr";
30 import ietf-inet-types {
34 import ietf-yang-types {
48 "Initial revision. This YANG file defines
49 the Virtual Link Record (VLR)";
51 "Derived from earlier versions of base YANG files";
54 container vlr-catalog {
62 description "Identifier for the VLR.";
67 description "VLR name.";
73 "NS instance identifier.
74 This is a leafref /nsr:ns-instance-config/nsr:nsr/nsr:id";
79 description "Identifier for resmgr id mapping";
84 description "Short name for VLR for UI";
89 description "Provider of the VLR.";
94 description "Description of the VLR.";
99 description "Version of the VLR";
104 type manotypes:virtual-link-type;
107 leaf root-bandwidth {
109 "For ELAN this is the aggregate bandwidth.";
113 leaf leaf-bandwidth {
115 "For ELAN this is the bandwidth of branches.";
121 "Creation timestamp of this Virtual Link.
122 The timestamp is expressed as seconds
123 since unix epoch - 1970-01-01T00:00:00Z";
129 description "Reference to VLD";
131 path "/vld:vld-catalog/vld:vld/vld:id";
137 "Identifier for the allocated network resource.";
141 // replicate for pnfd container here
143 uses manotypes:provider-network;
147 "Status of the virtual link record.";
154 leaf operational-status {
156 "The operational status of the Virtual Link
157 init : The VL is in init stat.
158 vl-alloc-pending : The VL alloc is pending in VIM
159 running : The VL is up and running in VM
160 vl-terminate-pending : The VL is being terminated in VIM.
161 terminated : The VL is terminated in the VM.
162 failed : The VL instantiation failed in VIM.
166 //rwpb:enum-type "VlOperationalStatus";
168 enum vl-alloc-pending;
170 enum vl-terminate-pending;