blob: cace8c50d368a8fbf2d91372073385b56b6930fd [file] [log] [blame]
janani be18b5342016-07-13 21:06:41 +05301module PathListener {
2 namespace "test";
3 prefix test;
4 list interface {
5 key "name";
6 leaf name {
7 type string;
8 }
9 leaf admin-status {
10 type string;
11 }
12 list address {
13 key "ip";
14 leaf ip {
15 type string;
16 }
17 }
18 }
19 container default-address {
20 leaf ifname {
21 type leafref {
22 path "../../test:interface/test:name";
23 require-instance true;
24 }
25 }
26 leaf status {
27 type leafref {
28 path "/test:interface[name = current()/../ifname]/test:admin-status";
29 }
30 }
31 }
32}