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:vlr";
30 import ietf-inet-types {
34 import ietf-yang-types {
52 "Update model to support projects.";
57 "Initial revision. This YANG file defines
58 the Virtual Link Record (VLR)";
60 "Derived from earlier versions of base YANG files";
63 augment "/rw-project:project" {
64 container vlr-catalog {
72 description "Identifier for the VLR.";
77 description "VLR name.";
83 "NS instance identifier.
84 This is a leafref /rw-project:project/nsr:ns-instance-config/nsr:nsr/nsr:id";
91 /rw-project:project/nsr:ns-instance-config/nsr:nsr[nsr:id=../nsr-id-ref]
97 description "Identifier for resmgr id mapping";
102 description "Short name for VLR for UI";
107 description "Provider of the VLR.";
112 description "Description of the VLR.";
117 description "Version of the VLR";
122 type manotypes:virtual-link-type;
125 leaf root-bandwidth {
127 "For ELAN this is the aggregate bandwidth.";
131 leaf leaf-bandwidth {
133 "For ELAN this is the bandwidth of branches.";
139 "Creation timestamp of this Virtual Link.
140 The timestamp is expressed as seconds
141 since unix epoch - 1970-01-01T00:00:00Z";
148 "Active period of this Virtual Link.
149 Uptime is expressed in seconds";
156 "Identifier for the allocated network resource.";
160 leaf vim-network-name {
162 "Name of network in VIM account. This is used to indicate
163 pre-provisioned network name in cloud account.";
167 // replicate for pnfd container here
169 uses manotypes:provider-network;
170 uses manotypes:ip-profile-info;
174 "Status of the virtual link record.";
181 leaf operational-status {
183 "The operational status of the Virtual Link
184 init : The VL is in init stat.
185 vl-alloc-pending : The VL alloc is pending in VIM
186 running : The VL is up and running in VM
187 vl-terminate-pending : The VL is being terminated in VIM.
188 terminated : The VL is terminated in the VM.
189 failed : The VL instantiation failed in VIM.
193 rwpb:enum-type "VlOperationalStatus";
195 enum vl-alloc-pending;
197 enum vl-terminate-pending;