49f575226da57d42c56400d9cad216d18aafc997
[osm/IM.git] / 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     import common-augments {
28         prefix common;
29     }
30
31     grouping extended-vld {
32         container provider-network {
33             description
34               "Container for the provider network.";
35             leaf physical-network {
36                 description
37                   "Name of the physical network on which the provider
38                    network is built.";
39                 type string;
40             }
41
42             leaf segmentation_id {
43                 description
44                   "ID of segregated virtual networks";
45                 type uint32;
46             }
47         }
48
49         leaf mgmt-network {
50             description
51               "Flag indicating whether this network is a VIM management network";
52             type boolean;
53             default false;
54         }
55     }
56
57
58     augment "/nsd:nsd/nsd:nsd/nsd:virtual-link-desc" {
59         uses extended-vld;
60     }
61 }