Updates branch master with sol006 branch, introducing new SOL006 model classes
[osm/IM.git] / models / augments / ns-vld.yang
1 /*
2   Copyright 2020 Whitestack LLC
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13   implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16 */
17
18 module ns-vld {
19     yang-version 1.1;
20     namespace "urn:etsi:osm:yang:augments:ns-vld";
21     prefix "ns-vld";
22
23     import etsi-nfv-nsd {
24         prefix nsd;
25     }
26
27     grouping extended-vld {
28         container provider-network {
29             description
30               "Container for the provider network.";
31             leaf physical-network {
32                 description
33                   "Name of the physical network on which the provider
34                    network is built.";
35                 type string;
36             }
37
38             leaf segmentation_id {
39                 description
40                   "ID of segregated virtual networks";
41                 type uint32;
42             }
43         }
44
45         leaf mgmt-network {
46             description
47               "Flag indicating whether this network is a VIM management network";
48             type boolean;
49             default false;
50         }
51     }
52
53
54     augment "/nsd:nsd/nsd:nsd/nsd:virtual-link-desc" {
55         uses extended-vld;
56     }
57 }