11-22-2021 08:07 AM
Hi all.
Let's say I have something like this:
leaf global-bw { type string; } list cpe { key 'device'; leaf device { type leafref { path "/ncs:devices/ncs:device/ncs:name"; } } leaf bw { type leafref { path "../../global-bw"; } mandatory true; }
Talking about native NSO web GUI; is there any way possible to force global-bw number to be displayed upfront in the bw box when I'm filling out cpe list entry? Currently manual selection from a drop-down has to be done.
If there is a way, subquestion to this would be if a custom typedef of either leafref or string can be defaulted into prepopulating global-bw.
To me it seems that it is not possible on either account, but I would prefer to be proven wrong.
Thanks.
Solved! Go to Solution.
11-22-2021 10:23 AM - edited 02-15-2022 10:06 AM
Found the answer to my case:
leaf bw { type string; tailf:default-ref '../../global-bw'; }
only slight annoyance is that global-bw value is automatically populated with () like so:
It is just cosmetics though.
11-22-2021 10:23 AM - edited 02-15-2022 10:06 AM
Found the answer to my case:
leaf bw { type string; tailf:default-ref '../../global-bw'; }
only slight annoyance is that global-bw value is automatically populated with () like so:
It is just cosmetics though.
11-23-2021 09:25 AM
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