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

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