blob: 518150f6ea21474024e30273694d3879bb7f242c [file] [log] [blame]
Bharat saraswalb41904b2016-10-20 19:22:36 +05301module grouping {
2
3 namespace "yang:grouping";
4 prefix "grouping";
5 yang-version 1;
6 revision 2016-10-08;
7
8 grouping link-details {
9 leaf link-id {
10 type union {
11 type int32;
12 type uint16;
13 type enumeration {
14 enum one;
15 enum two;
16 enum five {
17 value 5;
18 }
19 enum six-square {
20 value 36;
21 }
22 }
23 }
24 }
25 typedef group {
26 type bits {
27 bit disable-nagle {
28 position 0;
29 }
30 bit auto-sense-speed {
31 position 1;
32 }
33 bit Mb-only {
34 position 2;
35 }
36 }
37 }
38 container link {
39 leaf port {
40 type int32;
41 }
42
43 leaf-list port-id {
44 type string;
45 }
46 list areas {
47 key "name1";
48 leaf name1 {
49 type string;
50 }
51 }
52 }
53 }
54
55 container cont2 {
56 uses link-details;
57 }
58}