Code Review
/
mdsal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Fix path namespace resolution
[mdsal.git]
/
binding
/
mdsal-binding-generator-impl
/
src
/
test
/
resources
/
binding-generator-impl-test
/
choice-test.yang
1
module choice-test {
2
yang-version 1;
3
namespace "uri:choice-test";
4
prefix tst;
5
6
revision 2014-10-07 {
7
description
8
"Choice test.";
9
}
10
11
choice mychoice {
12
case one {
13
container mycontainer {
14
leaf mychoiceleafone {
15
type string;
16
}
17
}
18
}
19
case two {
20
list mylist {
21
leaf mychoiceleaftwo {
22
type int16;
23
}
24
}
25
}
26
}
27
28
container myrootcontainer {
29
choice mychoice2 {
30
case one2 {
31
container mycontainer2 {
32
leaf mychoiceleafone2 {
33
type string;
34
}
35
}
36
}
37
case two2 {
38
list mylist2 {
39
leaf mychoiceleaftwo2 {
40
type int16;
41
}
42
}
43
}
44
}
45
}
46
}
47