YangCatalog / backend

YANG Catalog's REST API and internal module processing pipeline
https://yangcatalog.org
Apache License 2.0
2 stars 11 forks source link

Code generation: Python #537

Open evyncke opened 2 years ago

evyncke commented 2 years ago

In a similar way as Cisco YANG suite (no more in YC.O) or Cisco YANG explorer (the latter being public domain), from a module tree view it MUST be possible to select several leaves / nodes and to generate Python code for the user.

This code would enable getting/modifying the values of those leaves.

PYANG may be used as a back-end. Of course, the generated code would be more like a template and would rely/import on existing Python to actually issue NETCONF requests and parse XML (if required).

@bclaise would you mind asking Jean Q. if he remembers the Python modules he used ?

evyncke commented 2 years ago

Is there any progress on this issue ?

SlavomirMazurPantheon commented 2 years ago

Hello @evyncke,

I'm very sorry, but I didn't notice this Github issue. FYI: this search repository has been discontinued, as the functionality has been moved to the backend repository - I should probably archive this one. However, for the future, create an issue in the backend repo please.

I'm a little worried that this enhancement might be too big for us to cover it in our YANG Catalog maintenance. However, I will have to find out more details and what needs to be done. Maybe some POC and then I will get back to you.

Regards, Slavomír Mazúr