Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-890

XML parsing issue for XML configuration via netconf/restconf in MPLS model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 2.0.8, 2.0.6.1
    • None
    • None
    • None

      When I tried to configure MPLS using netconf(netconf-message.txt) or restconf(restconf-xml.txt) in XML format I am getting error responses( netconf-response.txt or restconf-xml-response.txt)

      If I configure the same using restconf with json (restconf-json.txt) it works. Seems there is a problem only when XML format is parsed. When configured using restcon+json I am able to read back the configuration with both restconf or netconf(netconf-get-config-after-restconf-json-configuration.txt).

      I compared the netconf output of get-config after writing the json data using restconf with data that I was trying to write using netconf and they look the same. the issue seems to be happening only when the data are written using edit-config in netconf.

      I suspect that the issue is with outgoing-labels which is also a container and a list in ietf-mpls-static model (https://gerrit.fd.io/r/gitweb?p=hc2vpp.git;a=blob;f=mpls/api/src/main/yang/hc2vpp-ietf-mpls-static@2017-07-02.yang;h=9da4bb942f040d57ffffacd2ced930105e6a2e29;hb=refs/heads/master#l185)

      When I try to configure it without outgoing-labels everything works. Probably there are naming conflicts when the same name is used for list and container that encapsulates the list.

      I am attaching honeycomb log file (hc.log) with stack trace.

        1. restconf-xml-response.txt
          0.2 kB
        2. restconf-xml.txt
          1 kB
        3. restconf-json.txt
          0.8 kB
        4. netconf-response.txt
          0.4 kB
        5. netconf-message.txt
          4 kB
        6. netconf-get-config-after-restconf-json-configuration.txt
          1 kB
        7. hc.log
          14 kB

            mcmarada Michal Cmarada
            mcmarada Michal Cmarada
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: