clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
215 stars 72 forks source link

autocli/exclude logic not implemented #316

Closed zaker139 closed 2 years ago

zaker139 commented 2 years ago

https://github.com/clicon/clixon/blob/cee735e586b8899bbce0203ee782fa08a8600e63/yang/clixon/clixon-config%402022-02-11.yang#L76

Exclude is not defined in clixon-autocli.yang.

olofhagsand commented 2 years ago

This API is changed to a more flexible exclude logic as described here: https://clixon-docs.readthedocs.io/en/latest/cli.html#upgrade-from-pre-clixon-5-5 and specifically for exclude here: https://clixon-docs.readthedocs.io/en/latest/cli.html#module-enable-rules

zaker139 commented 2 years ago

It's a little awesome, when most of modules should be included, but one should be excluded. I must list all modules in 'enable rules'.

olofhagsand commented 2 years ago

Can you use a wildchar? Eg openconfig*. Otherwise we could have a look at introducing an exclude rule as well

olofhagsand commented 2 years ago

Is this the same issue as https://github.com/clicon/clixon/issues/318 ? That is, if clixon-restconf.yang is not loaded, it will be excluded from the autocli as well.