blob: cace8c50d368a8fbf2d91372073385b56b6930fd [file] [log] [blame]
module PathListener {
namespace "test";
prefix test;
list interface {
key "name";
leaf name {
type string;
}
leaf admin-status {
type string;
}
list address {
key "ip";
leaf ip {
type string;
}
}
}
container default-address {
leaf ifname {
type leafref {
path "../../test:interface/test:name";
require-instance true;
}
}
leaf status {
type leafref {
path "/test:interface[name = current()/../ifname]/test:admin-status";
}
}
}
}