Code Review
/
netconf.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Fix netconf-connector-config groupId
[netconf.git]
/
opendaylight
/
restconf
/
sal-rest-connector
/
src
/
test
/
resources
/
full-versions
/
test-module
/
test-module.yang
1
module test-module {
2
namespace "test:module";
3
prefix tstmod;
4
5
revision 2014-01-09 {
6
}
7
8
identity module-type {
9
}
10
11
identity test-identity {
12
}
13
14
container interfaces {
15
container class {
16
leaf name {
17
type string;
18
}
19
leaf address {
20
type string;
21
}
22
leaf email {
23
type string;
24
}
25
}
26
}
27
28
container cont {
29
container cont1 {
30
leaf lf11 {
31
type string;
32
}
33
leaf lf12 {
34
type string;
35
}
36
}
37
list lst1 {
38
key "lf11";
39
leaf lf11 {
40
type string;
41
}
42
}
43
}
44
45
container modules {
46
list module {
47
key "type name";
48
leaf name {
49
type string;
50
mandatory true;
51
}
52
53
leaf type {
54
type identityref {
55
base module-type;
56
}
57
mandatory true;
58
}
59
60
leaf data {
61
type string;
62
}
63
}
64
}
65
66
list lst-with-composite-key {
67
key "key1 key2";
68
leaf key1 {
69
type string;
70
}
71
leaf key2 {
72
type uint8;
73
}
74
}
75
76
rpc no-payload-rpc-test {
77
output {
78
container cont-output {
79
}
80
}
81
}
82
83
rpc rpc-test {
84
input {
85
container cont {
86
container cont1 {
87
leaf lf11 {
88
type string;
89
}
90
leaf lf12 {
91
type string;
92
}
93
}
94
}
95
}
96
output {
97
container cont-output {
98
}
99
}
100
}
101
}