Code Review
/
controller.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "BUG-2878: Add the XML declaration to every outgoing NETCONF message."
[controller.git]
/
opendaylight
/
netconf
/
mdsal-netconf-connector
/
src
/
test
/
resources
/
yang
/
mdsal-netconf-mapping-test.yang
1
module config {
2
yang-version 1;
3
namespace "urn:opendaylight:mdsal:mapping:test";
4
prefix "map";
5
6
revision "2015-02-26";
7
8
container mapping-nodes {
9
10
list mapping-node{
11
key "id";
12
leaf id {
13
type string;
14
}
15
16
leaf content {
17
type string;
18
}
19
}
20
}
21
22
container top {
23
24
container users {
25
26
list user {
27
28
leaf name {
29
type string;
30
}
31
32
leaf type {
33
type string;
34
}
35
36
leaf full-name {
37
type string;
38
}
39
40
container company-info {
41
42
leaf dept {
43
type string;
44
}
45
46
leaf id {
47
type string;
48
}
49
}
50
}
51
}
52
53
container modules {
54
55
list module {
56
57
leaf id {
58
type string;
59
}
60
61
leaf type {
62
type string;
63
}
64
65
leaf desc {
66
type string;
67
}
68
}
69
}
70
71
choice choice-node {
72
case a {
73
leaf text {
74
type string;
75
}
76
}
77
78
case b {
79
container text-cont {
80
leaf text {
81
type string;
82
}
83
}
84
}
85
}
86
87
} //top
88
89
augment "/map:top/map:choice-node" {
90
case c {
91
leaf augmented-case {
92
type string;
93
}
94
}
95
96
case d {
97
container choice-wrapper {
98
choice inner-choice {
99
case ia {
100
leaf text {
101
type string;
102
}
103
}
104
105
case ib {
106
leaf text2 {
107
type string;
108
}
109
}
110
}
111
}
112
}
113
}
114
115
augment "/map:top/map:modules/" {
116
container augmented-container{
117
leaf identifier {
118
type string;
119
}
120
}
121
}
122
}