I need to use subset of IETF defined yang file for my feature. I dont need to display/use some of the parameters in one of the containers.
How do I disable those parameters from the rendered CLI?
Have a look at the tailf:hidden statement without the hide group listed in confd.conf. For more information, see section 10.7. Hidden Data and the tail_yang_extensions(5) man page.
Based on the thread, I tried using agument and tailf:hidden to disable certain parameters defined in ietf yang file but it doesnt work for me. Any suggestions?
module cn-cnos-idu {
prefix idu;
import ietf-system {
prefix system;
}
augment “/system:ntp/system:server” {
leaf association-type {
tailf:hidden full;
}
leaf association-type {
tailf:hidden full;
}
leaf iburst {
tailf:hidden full;
}
leaf prefer {
tailf:hidden full;
}
}
}
My idea was to disable association-type, iburst and prefer leaves from ietf-system.yang file…
I am getting the following compilation errors:
| cn-cnos-idum.yang:43: error: expected keyword ‘type’ as substatement to ‘leaf’
| cn-cnos-idum.yang:46: error: expected keyword ‘type’ as substatement to ‘leaf’
| cn-cnos-idum.yang:49: error: expected keyword ‘type’ as substatement to ‘leaf’
Any suggestions on what I am missing?
Hi,
try standalone augments per each leaf, e.g.:
augment "/system:ntp/system:server/system:association-type" {
tailf:hidden full;
}