blob: c4dae284677d9a32bfc95c7b1cc3dde6b2bcf8dc [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";
}
}
leaf status {
type leafref {
path "/test:interface[name = current()/../ifname]/test:admin-status";
}
}
}
}