Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode-netconf to become YANG aware #9

Open
wisotzky opened this issue Feb 10, 2025 · 3 comments
Open

vscode-netconf to become YANG aware #9

wisotzky opened this issue Feb 10, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@wisotzky
Copy link
Member

Use the same concept as pysros to build a local YANG library, based on the model-set that is supported by the NETCONF server. Advanced functionality to include:

  • Display model-path / xpath from cursor position
  • Model-aware conversion between XML and JSON
  • Model-aware compare between two model-instances
  • Build a edit-config request from a get-config response
  • Table-editor for YANG lists
  • Run xpath queries
  • Advanced edition using IntelliSense: Error detection, Auto-completion, Suggests, Help on Hover
  • E
@wisotzky wisotzky added the enhancement New feature or request label Feb 10, 2025
@tbsuht
Copy link

tbsuht commented Feb 21, 2025

@wisotzky This sounds awesome!

I would be especially interested in Build a edit-config request from a get-config response :)

@wisotzky
Copy link
Member Author

@wisotzky This sounds awesome!

I would be especially interested in Build a edit-config request from a get-config response :)

We sort of did this with atom-netconf... For this, it might not even be required to make the extension yang aware. The biggest debate in this is how to the actual flow (UX) should look like.

@tbsuht
Copy link

tbsuht commented Feb 21, 2025

Maybe some ideas for the workflow:

After using a get-config which opens a new document with the content:

  1. When using CTRL+s(if its possible to hook into this in vscode): ask the user to a) store it in a file or b) store it via a open connection by constructing the request
  2. Adding a new action to the open connection which allows to do the same with the currently open document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants