Hi Experts!
We have a following yang file format
container root {
list systemmonitor {
config false;
tailf:cli-incomplete-show-path;
key name;
tailf:callpoint respcp;
leaf name {
type string
}
leaf cpu-usage {
type string..
}
leaf memory-usage {
type string..
}
leaf harddisk-usage {
type string..
}
}
}
I would want to return value based on the leaf node selected. So its basically their are many entries in the list… like
name => CPUMonitorHigh this has only cpu-usage field set with HIGH String
name => CPUMonitorLow this has only cpu-usage filed set with LOW String
one way I do is “show … | include HIGH” but is their anyway to know in the code that show is executed with this leaf-node ? i.e “cpu-usage / mem-usage…” so on…
rgds
Balaji