Adds execution environment and Juju cloud augments to SOL006
[osm/IM.git] / models / augments / configuration.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 configuration {
19     yang-version 1.1;
20     namespace "urn:etsi:osm:yang:configuration";
21     prefix "configuration";
22
23     import etsi-nfv-vnfd {
24         prefix vnfd;
25     }
26
27     import day1-2 {
28         prefix day1-2;
29     }
30
31     import kdu {
32         prefix kdu;
33     }
34     grouping extended-vnf-configuration {
35         leaf vnf-configuration-id {
36             description
37               "Reference for the VNF configuration to use in this DF";
38             type leafref {
39                 path "/vnfd:vnfd/day1-2:vnf-configuration/day1-2:id";
40             }
41         }
42     }
43
44     grouping extended-vdu-configuration {
45         leaf vdu-configuration-id {
46             description
47               "Reference for the VDU configuration to use in this DF";
48             type leafref {
49                 path "/vnfd:vnfd/day1-2:vdu-configuration/day1-2:id";
50             }
51         }
52     }
53
54     grouping extended-kdu-configuration {
55         list kdu-profile {
56             key "name";
57
58             leaf name {
59                 description
60                   "Reference to the KDU";
61                 type leafref {
62                     path "/vnfd:vnfd/kdu:kdu/kdu:name";
63                 }
64             }
65
66             leaf kdu-configuration-id {
67                 description
68                   "Reference to the KDU configuration to use in this DF";
69                 type leafref {
70                     path "/vnfd:vnfd/kdu:kdu-configuration/kdu:id";
71                 }
72             }
73
74             leaf kdu-model-id {
75                 description
76                   "Reference to the KDU model to use in this DF";
77                 type leafref {
78                     path "/vnfd:vnfd/kdu:kdu-model/kdu:id";
79                 }
80             }
81         }
82     }
83
84     augment "/vnfd:vnfd/vnfd:df" {
85         uses extended-vnf-configuration;
86         uses extended-kdu-configuration;
87     }
88
89     augment "/vnfd:vnfd/vnfd:df/vnfd:vdu-profile" {
90         uses extended-vdu-configuration;
91     }
92 }