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