Skip to content

lyd_print doesn't work #5

@randyrandhawa

Description

@randyrandhawa

Calling lyd_print() dumps the loaded schemas not the data:

<libyang>
  <modules>
    <module>
      <name>ietf-inet-types</name>
      <revision>2013-07-15</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-inet-types</namespace>
      <conformance>implement</conformance>
    </module>
    <module>
      <name>ietf-yang-types</name>
      <revision>2013-07-15</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-types</namespace>
      <conformance>implement</conformance>
    </module>
    <module>
      <name>ietf-yang-library</name>
      <revision>2015-07-03</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-library</namespace>
      <conformance>implement</conformance>
    </module>
    <module-set-id>4</module-set-id>
  </modules>
</libyang>

How do I dump/parse/access the data which was added via lyd_parse()

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:invalidIssue is not reproducible or the behavior is intended.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions