-
Notifications
You must be signed in to change notification settings - Fork 121
/
binary.yang
47 lines (41 loc) · 926 Bytes
/
binary.yang
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
module binary {
yang-version "1";
namespace "http://rob.sh/yang/test/binary";
prefix "foo";
organization "BugReports Inc";
contact "A bug reporter";
description
"A test module";
revision 2014-01-01 {
description "april-fools";
reference "fooled-you";
}
container container {
leaf b1 {
type binary;
description
"A test leaf";
}
leaf b2 {
type binary;
default "eWFuZw=="; /* yang */
description
"A test leaf with a default";
}
leaf b3 {
type binary {
length 2;
}
}
leaf b4 {
type binary {
length 2..4;
}
}
leaf b5 {
type binary {
length "2..4 | 6 | 10..42";
}
}
}
}