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 {
45 "Initial revision. This YANG file defines
46 the Virtual Link Record (VLR)";
48 "Derived from earlier versions of base YANG files";
51 container vlr-catalog {
59 description "Identifier for the VLR.";
64 description "VLR name.";
70 "NS instance identifier.
71 This is a leafref /nsr:ns-instance-config/nsr:nsr/nsr:id";
78 /nsr:ns-instance-config/nsr:nsr[nsr:id=../nsr-id-ref]/nsd/vld:vld/vld:id";
83 description "Identifier for resmgr id mapping";
88 description "Short name to appear as label in the UI";
93 description "Provider of the VLR.";
98 description "Description of the VLR.";
103 description "Version of the VLR";
108 type manotypes:virtual-link-type;
111 leaf root-bandwidth {
113 "For ELAN this is the aggregate bandwidth.";
117 leaf leaf-bandwidth {
119 "For ELAN this is the bandwidth of branches.";
125 "Creation timestamp of this Virtual Link.
126 The timestamp is expressed as seconds
127 since unix epoch - 1970-01-01T00:00:00Z";
134 "Active period of this Virtual Link.
135 Uptime is expressed in seconds";
142 "Identifier for the allocated network resource.";
146 leaf vim-network-name {
148 "Name of network in VIM account. This is used to indicate
149 pre-provisioned network name in cloud account.";
153 // replicate for pnfd container here
155 uses manotypes:provider-network;
156 uses manotypes:ip-profile-info;
160 "Status of the virtual link record.";
167 leaf operational-status {
169 "The operational status of the Virtual Link
170 init : The VL is in init stat.
171 vl-alloc-pending : The VL alloc is pending in VIM
172 running : The VL is up and running in VM
173 vl-terminate-pending : The VL is being terminated in VIM.
174 terminated : The VL is terminated in the VM.
175 failed : The VL instantiation failed in VIM.
179 rwpb:enum-type "VlOperationalStatus";
181 enum vl-alloc-pending;
183 enum vl-terminate-pending;