Update ASDC References to SDC 1/2
[appc.git] / appc-sdc-listener / appc-yang-generator / src / main / resources / templates / YangTemplate.vm
1 module $moduleName {
2         yang-version 1;
3         namespace "org:openecomp:appc:vnf:$moduleName";
4     prefix appc-vnf;
5     organization "Copyright 2017 AT&T Intellectual Property.";
6
7     description
8         "$moduleType description";
9         
10         revision "2017-01-01" {
11         description
12                 "$moduleName Configuration";
13         }
14
15     import ietf-inet-types {
16            prefix inet;
17         }
18
19     import ietf-yang-types {
20                 prefix yang;
21         }
22
23         grouping vnf-config-grp {
24                 container vnf-config  {
25                         #foreach( $data in $leaves )
26         leaf $data.getName() {  
27                                         type $data.getType();
28                                         description "$data.getDescription()";
29                                         mandatory $data.getMandatory();
30                                         default "$data.getDefaultValue()"; 
31                                 }
32                         #end                    
33 }
34         }
35         
36         container vnf-config-repo {
37                 list vnf-config-list {
38                         key "vnf-identifier";
39                         leaf vnf-identifier {
40                                 type string;
41                         }
42                         uses vnf-config-grp;
43                 }
44                 
45         }       
46                 
47 }