Code Review
/
controller.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d7e69d1c4e5093c2bac67cbd45108044534da2e9
[controller.git]
/
opendaylight
/
sal
/
yang-prototype
/
code-generator
/
binding-generator-impl
/
src
/
test
/
resources
/
simple-bits-demo.yang
1
module simple-bits-demo {
2
3
namespace "urn:simple:bits:demo";
4
prefix "sbd";
5
6
organization "OPEN DAYLIGHT";
7
contact "http://www.opendaylight.org/";
8
9
revision 2013-06-11 {
10
11
}
12
13
typedef byte-type {
14
type bits {
15
bit first-bit {
16
position 10;
17
}
18
bit second-bit {
19
position 20;
20
}
21
bit third-bit {
22
position 30;
23
}
24
bit forth-bit {
25
position 40;
26
}
27
bit fifth-bit {
28
position 50;
29
}
30
bit sixth-bit {
31
position 60;
32
}
33
bit seventh-bit {
34
position 70;
35
}
36
bit eight-bit {
37
position 80;
38
}
39
40
}
41
42
typedef jo {
43
type uint32;
44
}
45
46
47
container leaf-parent-container {
48
leaf byte-leaf {
49
type byte-type;
50
}
51
52
}
53
54
}