492f9906018a8e7dfeb81024640d5cffc8abb38e
[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     import ietf-inet-types {
32         prefix inet;
33     }
34
35     grouping extended-vld {
36         container provider-network {
37             description
38               "Container for the provider network.";
39             leaf physical-network {
40                 description
41                   "Name of the physical network on which the provider
42                    network is built.";
43                 type string;
44             }
45
46             leaf segmentation_id {
47                 description
48                   "ID of segregated virtual networks";
49                 type uint32;
50             }
51         }
52
53         leaf vim-network-name {
54             description
55               "Name of network in VIM account. This is used to indicate
56                 pre-provisioned network name in cloud account.";
57             type string;
58         }
59
60         leaf mgmt-network {
61             description
62               "Flag indicating whether this network is a VIM management network";
63             type boolean;
64             default false;
65         }
66     }
67
68     grouping extended-ip-address {
69         leaf ip-address {
70             description
71               "IP address of the connection point";
72             type inet:ip-address;
73         }
74     }
75
76     augment "/nsd:nsd/nsd:nsd/nsd:virtual-link-desc" {
77         uses extended-vld;
78     }
79
80     augment "/nsd:nsd/nsd:nsd/nsd:df/nsd:vnf-profile/nsd:virtual-link-connectivity/nsd:constituent-cpd-id" {
81         uses extended-ip-address;
82     }
83 }