blob: 8b4f0c35873f141d616ff91a2769ec0897bfaf2e [file] [log] [blame]
sonu gupta1bb37b82016-11-11 16:51:18 +05301module bit {
2
3 yang-version 1;
4
5 namespace "ydt.bit";
6
7 prefix "bit";
8
9 organization "ON-LAB";
10
11 description "This module defines for bit classifier.";
12
13 revision "2016-05-24" {
14 description "Initial revision.";
15 }
sonu gupta1bb37b82016-11-11 16:51:18 +053016
17 list bitList {
18 config false;
19 leaf bit {
20 type bits {
21 bit disable-nagle {
22 position 0;
23 }
24 bit auto-sense-speed {
25 position 1;
26 }
27 bit ten-Mb-only {
28 position 2;
29 }
30 }
Vidyashree Rama6160be12016-11-24 13:43:31 +053031 }
32 }
sonu gupta1bb37b82016-11-11 16:51:18 +053033
Vidyashree Rama6160be12016-11-24 13:43:31 +053034 typedef percent {
35 type bits {
36 bit bit3 {
37 position 3;
38 }
39 bit bit4 {
40 position 4;
41 }
42 bit bit5 {
43 position 5;
44 }
45 }
46 }
47
48 leaf name {
49 type percent;
50 }
51
52 grouping greeting {
53 leaf surname {
54 type bits {
55 bit bit6 {
56 position 6;
57 }
58 bit bit7 {
59 position 7;
60 }
61 bit bit8 {
62 position 8;
63 }
64 }
65 }
66 }
67
68 container cont1 {
69 uses greeting;
70 }
71
72 augment "/cont1" {
73 leaf lastname {
74 type bits {
75 bit bit9 {
76 position 9;
77 }
78 bit bit10 {
79 position 10;
80 }
81 bit bit11 {
82 position 11;
83 }
84 }
85 }
86 }
87
88 container food {
89 choice snack {
90 case sportsarena {
91 leaf pretzel {
92 type bits {
93 bit bit12 {
94 position 12;
95 }
96 bit bit13 {
97 position 13;
98 }
99 bit bit14 {
100 position 14;
101 }
102 }
103 }
104 }
sonu gupta1bb37b82016-11-11 16:51:18 +0530105 }
106 }
107}