02-16-2022 01:06 AM
Hello dears,
I have a service with Yang that containe a leaf that is marqued as operational information:
list my_device { key name; leaf name{ type string; } leaf migrated { type boolean; config false; tailf:cdb-oper { tailf:persistent true; } } }
I'll to set manualy the value of migrated for an instance from the CLI.
regards.
Solved! Go to Solution.
02-16-2022 01:40 AM
Hello ,
You cannot modify operational value in CLI directly but you can write an action in Python that take some input and change the value in Python by calling this action from CLI
02-16-2022 01:40 AM
Hello ,
You cannot modify operational value in CLI directly but you can write an action in Python that take some input and change the value in Python by calling this action from CLI
02-16-2022 01:51 AM
Like Nabsch said, you can't.
That is what "config false;" yang line does.
Apart from action, another option is writing a cli augmentation script in which you access said value with maapi
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