ConfD User Community

Suppressing a leaf from operational mode


#1

Hi,

My yang is like below:

Container xyz {

list A {
key ‘a’;
leaf a {
type uint32;
}
leaf b{
type string;
}
leaf c{
tailf:hidden full;
config false;
}
}
}

Because of this A is coming in operational mode also. When i do show A, i get only keys as there is only one leaf in operational mode which is hidden. Is there any way i can hide it from operational mode.

Regards,
Himani


#2

So what you want is not to display leaf a?
What should be displayed then? Empty row(s) for each element in A?

If empty row(s) is OK, then you can use tailf:cli-show-template I guess.


#3

How can we use show-template for giving empty rows?


#4

I think empty string as tailf:cli-show-template should be OK.


#5

Does not work. I tried.