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

Build NETCONF request from JSON/YAML/dict #25

Open
wisotzky opened this issue Jun 14, 2021 · 5 comments
Open

Build NETCONF request from JSON/YAML/dict #25

wisotzky opened this issue Jun 14, 2021 · 5 comments

Comments

@wisotzky
Copy link

I've got following use-case...

Data-structure provided:

changes:
  - path: '/vendor:configure/services'
    operation: remove
  - path: '/vendor:configure/system'
    operation: replace
    data:
      name: pe1
      location: Zurich

I am searching for a way to translate this structure into a valid NETCONF (rfc6241) compliant change request. The challenge is, that with libyang-python today, I can not add XML attributes (nc:operation value in this case).

Not sure, if this could be done with libyang... I've found however in libyang2 specific methods that provide this sort of access.

@rjarry
Copy link
Collaborator

rjarry commented Jun 14, 2021

Hi,

indeed node attributes are not supported. First of all, we would need to actually support libyang2 :)

@wisotzky
Copy link
Author

@rjarry, what are the planned timelines for libyang2 support?
Is this something I can help with?

@jeanseb6wind
Copy link
Contributor

We support libyang2 now.

@samuel-gauthier
Copy link
Collaborator

Hi @wisotzky , do you still need that?

@TribuneX
Copy link

TribuneX commented Sep 10, 2024

I would indeed appreciate this feature! I am currently trying to create valid NETCONF operations from the output of a diff. Similar to what @wisotzky wants to achieve.

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

No branches or pull requests

5 participants