Code Review
/
netconf.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Added implementation of ActionFactory"
[netconf.git]
/
restconf
/
restconf-nb-bierman02
/
src
/
test
/
resources
/
full-versions
/
yangs
/
simple-nodes.yang
1
module simple-nodes {
2
yang-version 1;
3
namespace "urn:opendaylight:simple-nodes";
4
prefix "sn";
5
6
description
7
"test file containing yang data nodes";
8
9
revision "2013-07-30" {
10
description
11
"Initial revision.";
12
reference "will be defined";
13
}
14
15
container users {
16
leaf user {
17
type string;
18
}
19
20
leaf group {
21
type string;
22
}
23
}
24
25
list user {
26
key "name class";
27
leaf name {
28
type string;
29
}
30
leaf full-name {
31
type string;
32
}
33
leaf class {
34
type string;
35
}
36
}
37
38
list userWithoutClass {
39
key "name";
40
leaf name {
41
type string;
42
}
43
leaf full-name {
44
type string;
45
}
46
container inner-container {
47
leaf inner-list {
48
type uint16;
49
}
50
}
51
}
52
53
container food {
54
choice snack {
55
case sports-arena {
56
leaf pretzel {
57
type string;
58
}
59
leaf beer {
60
type string;
61
}
62
container nonalcoholic {
63
leaf beer {
64
type string;
65
}
66
}
67
}
68
case late-night {
69
leaf chocolate {
70
type enumeration {
71
enum dark;
72
enum milk;
73
enum first-available;
74
}
75
}
76
}
77
}
78
}
79
80
}