Update openjdk version to 19 and yang2swagger version to 2.1.0
[osm/IM.git] / models / augments / cloud-init.yang
1 /*
2   Copyright 2019 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 cloud-init {
19     yang-version 1.1;
20     namespace "urn:etsi:osm:yang:augments:cloud-init";
21     prefix "cloud-init";
22
23     import etsi-nfv-vnfd {
24         prefix vnfd;
25     }
26
27     grouping extended-cloud-init {
28         choice cloud-init-input {
29             description
30                 "Indicates how the contents of cloud-init script are provided.
31                 There are 2 choices - inline or in a file";
32
33             case inline {
34                 leaf cloud-init {
35                 description
36                     "Contents of cloud-init script, provided inline, in cloud-config format";
37                 type string;
38                 }
39             }
40
41             case filename {
42                 leaf cloud-init-file {
43                 description
44                     "Name of file with contents of cloud-init script in cloud-config format";
45                     type string;
46                 }
47             }
48         }
49     }
50         
51     augment "/vnfd:vnfd/vnfd:vdu" {
52         uses extended-cloud-init;
53     }
54 }