Adds NSD augments for vim-network-name and connection point ip-address
[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     import ietf-inet-types {
28         prefix "inet";
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         leaf vim-network-name {
57             description
58               "Name of network in VIM account. This is used to indicate
59                pre-provisioned network name in cloud account.";
60             type string;
61         }
62     }
63
64     grouping extended-constituent-cpd-id {
65         leaf ip-address {
66             description
67               "IP address assigned to the internal connection point";
68             type inet:ip-address;
69         }
70     }
71
72
73     augment "/nsd:nsd/nsd:nsd/nsd:virtual-link-desc" {
74         uses extended-vld;
75     }
76
77     augment "/nsd:nsd/nsd:nsd/nsd:df/nsd:vnf-profile/nsd:virtual-link-connectivity/nsd:constituent-cpd-id" {
78         uses extended-constituent-cpd-id;
79     }
80 }