Amxb_Ubus  3.3.1
Ambiorix Ubus API
test_nemo.odl
Go to the documentation of this file.
1 %define {
2  %persistent object NeMo {
3  %persistent object Intf[] {
4  string Name;
5  bool Enable;
6  bool Status;
7  string Flags {
8  on action validate call check_enum [ "cross", "colors" ];
9  default "colors";
10  }
11 
12  object ULIntf[] {
13  %read-only string Name;
14  }
15  object LLIntf[] {
16  %read-only string Name;
17  }
18 
19  object Query[] {
20  string Description;
21  string Subscribers;
22  string ResultString;
23 
24  variant getResult();
25  void setPeriodicInform(in uint32 interval, out string data);
26 
27  object TestObject[] {
28  string Text;
29  }
30  }
31  }
32  }
33 }
34 
35 %populate {
36  object NeMo.Intf {
37  instance add(0, "lan") {
38  parameter Name = "lan";
39  parameter Enable = true;
40 
41  object Query {
42  instance add(100, "SomeKey") {
43  parameter ResultString = "ok";
44  }
45  }
46  }
47  instance add(0, "wan") {
48  parameter Name = "wan";
49  parameter Enable = false;
50  object Query {
51  instance add(200, "") {
52  parameter ResultString = "nok";
53  }
54  instance add(210, "test") {
55  parameter ResultString = "true";
56  }
57  instance add(220, "") {
58  parameter ResultString = "true";
59  }
60  }
61  }
62  instance add(0, "wifi") {
63  parameter Name = "wifi";
64  parameter Enable = false;
65  object Query {
66  instance add(300, "") {
67  parameter ResultString = "nok";
68  }
69  instance add(310, "") {
70  parameter ResultString = "test";
71  }
72  }
73  }
74  }
75 }
object TestObject