09-06-2021 04:25 AM
Could you pls take a look at this and suggest what im doing wrong.
leaf out_policy {
type leafref {
path "/qos_interface_manager[name=current()/../name]/policies/name";
}
}
list policies {
description "List of policies on target device";
key name;
leaf name {
tailf:info "Policy Name";
type string;
}
Theses are the only policies that exits in this services instance
How ever the leafref shows policies from all the service instances
Trying to make it so that the leafref only shows policies that exist in the current service instance.
I suspect that this bit is wrong “name=current()/../name”
Solved! Go to Solution.
09-06-2021 05:22 AM
09-06-2021 05:22 AM
path "../../policies/name";
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide