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:etsi:osm:yang:vlr";
26 import ietf-yang-types {
40 "Update model to support projects.";
45 "Initial revision. This YANG file defines
46 the Virtual Link Record (VLR)";
48 "Derived from earlier versions of base YANG files";
51 augment "/osm-project:project" {
52 container vlr-catalog {
54 description "Schema version for the VLR. If unspecified, it assumes v3.0";
66 description "Identifier for the VLR.";
71 description "VLR name.";
77 "NS instance identifier.
78 This is a leafref /osm-project:project/nsr:ns-instance-config/nsr:nsr/nsr:id";
85 /osm-project:project/nsr:ns-instance-config/nsr:nsr[nsr:id=../nsr-id-ref]
91 description "Identifier for resmgr id mapping";
96 description "Short name to appear as label in the UI";
101 description "Provider of the VLR.";
106 description "Description of the VLR.";
111 description "Version of the VLR";
116 type manotypes:virtual-link-type;
119 leaf root-bandwidth {
121 "For ELAN this is the aggregate bandwidth.";
125 leaf leaf-bandwidth {
127 "For ELAN this is the bandwidth of branches.";
133 "Creation timestamp of this Virtual Link.
134 The timestamp is expressed as seconds
135 since unix epoch - 1970-01-01T00:00:00Z";
142 "Active period of this Virtual Link.
143 Uptime is expressed in seconds";
150 "Identifier for the allocated network resource.";
154 leaf vim-network-name {
156 "Name of network in VIM account. This is used to indicate
157 pre-provisioned network name in cloud account.";
161 // replicate for pnfd container here
163 uses manotypes:provider-network;
164 uses manotypes:ip-profile-info;
168 "Status of the virtual link record.";
175 leaf operational-status {
177 "The operational status of the Virtual Link
178 init : The VL is in init stat.
179 vl-alloc-pending : The VL alloc is pending in VIM
180 running : The VL is up and running in VM
181 vl-terminate-pending : The VL is being terminated in VIM.
182 terminated : The VL is terminated in the VM.
183 failed : The VL instantiation failed in VIM.
188 enum vl-alloc-pending;
190 enum vl-terminate-pending;