blob: f6db459dc3f3b0c9292bc2e03299306ba10799db [file] [log] [blame]
sonu gupta1bb37b82016-11-11 16:51:18 +05301module binarytest {
2
3 yang-version 1;
4
5 namespace "ydt.binarytest";
6
7 prefix "binarytest";
8
9 organization "ON-LAB";
10
11 description "This module defines for binarytest classifier.";
12
13 revision "2016-05-24" {
14 description "Initial revision.";
15 }
16
17 list binaryList {
18 config false;
19 leaf binary {
20 type binary;
21 }
22 leaf binaryWithRange {
23 type binary {
24 length "2 .. 10";
25 }
26 }
27 leaf binaryWithMultiRange {
28 type binary {
29 length "min..10 | 20 | 30..max";
30 }
31 }
32 }
Vidyashree Ramaf463dc52016-10-06 12:46:33 +053033
34 typedef percent {
35 type binary;
36 }
37
38 leaf name {
39 type percent;
40 }
41
42 grouping greeting {
43 leaf surname {
44 type binary;
45 }
46 }
47
48 container cont1 {
49 uses greeting;
50 }
51
52 augment "/cont1" {
53 leaf lastname {
54 type binary;
55 }
56 }
57
58 container food {
59 choice snack {
60 case sportsarena {
61 leaf pretzel {
62 type binary;
63 }
64 }
65 }
66 }
67
68 leaf middlename {
69 type union {
70 type int8;
71 type binary;
72 }
73 }
sonu gupta1bb37b82016-11-11 16:51:18 +053074}