blob: fd75d323d41025402f31465397bfb254cabf5a40 [file] [log] [blame]
janani be18b5342016-07-13 21:06:41 +05301module Test {
2 yang-version 1;
3 namespace http://huawei.com;
4 prefix Ant;
5 list valid {
6 key "define";
7 leaf define {
8 type string;
9 }
10 container standard {
11 container present {
12 leaf-list name {
13 type leafref {
14 path "/transmitter/send";
15 }
16 }
17 }
18 }
19 }
20 container reference {
21 list found {
22 key "define";
23 leaf define {
24 type string;
25 }
26 container reciever {
27 leaf remove {
28 type leafref {
29 path "/valid/standard/present/name";
30 }
31 }
32 }
33 }
34 }
35 list transmitter {
36 key "send";
37 leaf send {
38 type leafref {
39 path "/invalid-interval";
40 }
41 }
42 }
43 leaf-list invalid-interval {
44 type enumeration {
45 enum 10m;
46 enum 100m;
47 enum auto;
48 }
49 }
50}