blob: 2cc78b38fa6a8d7d007e1389c52ff10e01997fc2 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
module test-module {
namespace "test:module";
prefix tstmod;
revision 2014-01-09 {
}
identity module-type {
}
identity test-identity {
}
container interfaces {
container class {
leaf name {
type string;
}
leaf address {
type string;
}
leaf email {
type string;
}
}
}
container cont {
container cont1 {
leaf lf11 {
type string;
}
leaf lf12 {
type string;
}
}
list lst1 {
key "lf11";
leaf lf11 {
type string;
}
}
}
container modules {
list module {
key "type name";
leaf name {
type string;
mandatory true;
}
leaf type {
type identityref {
base module-type;
}
mandatory true;
}
leaf data {
type string;
}
}
}
list lst-with-composite-key {
key "key1 key2";
leaf key1 {
type string;
}
leaf key2 {
type uint8;
}
}
rpc no-payload-rpc-test {
output {
container cont-output {
}
}
}
rpc rpc-test {
input {
container cont {
container cont1 {
leaf lf11 {
type string;
}
leaf lf12 {
type string;
}
}
}
}
output {
container cont-output {
}
}
}
}
|