infix icon indicating copy to clipboard operation
infix copied to clipboard

cli: improve tab-completion for types with must expression

Open troglobit opened this issue 1 year ago • 1 comments

For veth peers and bridge-port bridge references we refer to an if:interface-ref which is guarded with a must expression. Klish, or rather its sysrepo plugin, should validate the alternatives it gets from sysrepo by calling the libyang function to validate. Then prune each alternative from the list that doesn't pass the validation.

troglobit avatar Jan 17 '24 14:01 troglobit

Looked in to this, seems that this is checked only when you do validate, in klish-sysrepo-plugin:pline.c. It seems very possible with not that much work.

mattiaswal avatar Jan 19 '24 08:01 mattiaswal