blob: 3fa36b9748c2ffe48860c9b7f4381115c943e9ce [file] [log] [blame]
Bharat saraswalb1170bd2016-07-14 13:26:18 +05301module 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 saraswal2d90b0c2016-08-04 02:00:03 +053034 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 saraswalb1170bd2016-07-14 13:26:18 +053047
48 augment /cont3 {
49 leaf leaf1 {
50 type int32;
51 }
52 }
53
54 augment /cont1/cont2 {
Bharat saraswal2d90b0c2016-08-04 02:00:03 +053055 leaf-list leaf2 {
Bharat saraswalb1170bd2016-07-14 13:26:18 +053056 type int32;
57 }
58 }
Bharat saraswal2d90b0c2016-08-04 02:00:03 +053059 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 saraswalb1170bd2016-07-14 13:26:18 +053077
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 saraswal2d90b0c2016-08-04 02:00:03 +053091 leaf name {
92 type string;
93 }
94 leaf surname {
95 type string;
96 }
97 leaf-list aleaflist {
Bharat saraswalb1170bd2016-07-14 13:26:18 +053098 type int32;
99 }
Bharat saraswal2d90b0c2016-08-04 02:00:03 +0530100 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 saraswalb1170bd2016-07-14 13:26:18 +0530110 }
111 }
112
113}
114