Skip to content

Build NETCONF request from JSON/YAML/dict #25

Description

@wisotzky

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.

Activity

  1. rjarry commented on Jun 14, 2021

    @rjarry
    Collaborator

    Hi,

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

  2. wisotzky commented on Jun 14, 2021

    @wisotzky
    Author

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

  3. jeanseb6wind commented on May 23, 2022

    @jeanseb6wind
    Contributor

    We support libyang2 now.

  4. samuel-gauthier commented on Jan 24, 2024

    @samuel-gauthier
    Collaborator

    Hi @wisotzky , do you still need that?

  5. TribuneX commented on Sep 10, 2024

    @TribuneX

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions