Bharat saraswal | d14cbe8 | 2016-07-14 13:26:18 +0530 | [diff] [blame] | 1 | module test { |
| 2 | namespace "test:test"; |
| 3 | prefix test ; |
| 4 | |
| 5 | |
| 6 | import test1{ |
| 7 | prefix test1; |
| 8 | } |
| 9 | |
| 10 | import test2{ |
| 11 | prefix test2; |
| 12 | } |
| 13 | |
| 14 | include acme-types; |
| 15 | |
| 16 | organization ""; |
| 17 | contact ""; |
| 18 | |
| 19 | description |
| 20 | "Defines basic service types for L3VPN service."; |
| 21 | |
| 22 | revision "2015-12-16" { |
| 23 | reference ""; |
| 24 | } |
| 25 | |
| 26 | container cont1 { |
| 27 | container cont2 { |
| 28 | leaf leaf { |
| 29 | type int32; |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 34 | choice choice1 { |
| 35 | case case1 { |
| 36 | leaf case-leaf { |
| 37 | type int32; |
| 38 | } |
| 39 | container case-container3 { |
| 40 | leaf leafs { |
| 41 | type int64; |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
Bharat saraswal | d14cbe8 | 2016-07-14 13:26:18 +0530 | [diff] [blame] | 47 | |
| 48 | augment /cont3 { |
| 49 | leaf leaf1 { |
| 50 | type int32; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | augment /cont1/cont2 { |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 55 | leaf-list leaf2 { |
Bharat saraswal | d14cbe8 | 2016-07-14 13:26:18 +0530 | [diff] [blame] | 56 | type int32; |
| 57 | } |
| 58 | } |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 59 | augment /choice1 { |
| 60 | leaf-list leaf2 { |
| 61 | type int32; |
| 62 | } |
| 63 | leaf leaf1 { |
| 64 | type int32; |
| 65 | } |
| 66 | container case-container { |
| 67 | leaf leafs { |
| 68 | type int64; |
| 69 | } |
| 70 | } |
| 71 | container case-container2 { |
| 72 | leaf leafs { |
| 73 | type int64; |
| 74 | } |
| 75 | } |
| 76 | } |
Bharat saraswal | d14cbe8 | 2016-07-14 13:26:18 +0530 | [diff] [blame] | 77 | |
| 78 | augment /test1:cont1/test1:cont2 { |
| 79 | leaf a { |
| 80 | type int32; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | augment /test1:cont1/test1:cont2/test1:cont1s/test1:cont1s { |
| 85 | leaf a { |
| 86 | type int32; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | augment /test1:cont1/test1:cont2/test1:cont1s/test1:cont1s/test2:aa { |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 91 | leaf name { |
| 92 | type string; |
| 93 | } |
| 94 | leaf surname { |
| 95 | type string; |
| 96 | } |
| 97 | leaf-list aleaflist { |
Bharat saraswal | d14cbe8 | 2016-07-14 13:26:18 +0530 | [diff] [blame] | 98 | type int32; |
| 99 | } |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 100 | container cont1 { |
| 101 | } |
| 102 | list alist { |
| 103 | key "name"; |
| 104 | leaf name { |
| 105 | type string; |
| 106 | } |
| 107 | leaf-list surname { |
| 108 | type string; |
| 109 | } |
Bharat saraswal | d14cbe8 | 2016-07-14 13:26:18 +0530 | [diff] [blame] | 110 | } |
| 111 | } |
| 112 | |
| 113 | } |
| 114 | |