I have the following Yang model definition for the antenna info display (there is a container where it has a list and another container in it.)
When querying for the parameter info (show antenna?), it shows two descriptions as below.
Can you please help me to avoid two Descriptions showing up here?
CellularGateway# show antenna ?
Description: Cellular Antenna Index <= ONLY this is expected
Description: Show Radio antenna info <= Why is this showing up?
Possible completions:
0
1
...
CellularGateway# show antenna mmWave ?
Description: Show mmWave antenna info <= Why is this showing up?
Description: mmWave Antenna Index <= ONLY this is expected
Possible completions:
0
1
[ Yang Definition ]
container antenna {
tailf:info "Show Radio antenna info";
tailf:callpoint cellular_radio_antenna;
list info {
tailf:info "Cellular Antenna Index";
tailf:cli-drop-node-name;
key ant_idx;
leaf ant_idx {
description "Antenna Index";
type uint8;
}
….
} /* end of list info */
container mmWave {
tailf:info "Show mmWave antenna info";
tailf:callpoint cellular_mmWave_available;
leaf mmWave_available {
description "mmWave antenna available";
type uint8;
tailf:cli-show-template "mmWave antenna available = $(.)\n";
}
list mmWave {
when "../mmWave_available = 1";
tailf:info "mmWave Antenna Index";
tailf:cli-drop-node-name;
tailf:callpoint cellular_mmWave_antenna;
key mmWave_ant_idx;
leaf mmWave_ant_idx {
description "mmWave Antenna Index";
type uint8;
}
…
} /* end of list mmWave */
} /* end of mmWave container */
} /* end of antenna container */