Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-810

getting XML from RESTCONF results in unreadable namespaces (zdef#)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Helium
    • None
    • restconf
    • None
    • Operating System: Mac OS
      Platform: PC

    • 1818

    Description

      For example fetching the TTP XML from RESTCONF starts like this:

      GET http://localhost:8181/restconf/config/onf-ttp:opendaylight-ttps/onf-ttp:table-type-patterns/
      Header: "Accept: application/xml"

      <zdef-178745529:table-type-patterns xmlns:zdef-178745529="urn:onf:ttp">
      <zdef-178745529:table-type-pattern>
      <zdef-178745529:identifiers>
      <zdef-178745529:var><subnet_VID></zdef-178745529:var>
      <zdef-178745529:doc>The VLAN ID of a locally attached L2 subnet on a Router. </zdef-178745529:doc>
      </zdef-178745529:identifiers>
      <zdef-178745529:identifiers>
      <zdef-178745529:var><group_entry_types/name></zdef-178745529:var>
      <zdef-178745529:doc>of the type indicated by the variable name</zdef-178745529:doc>
      <zdef-178745529:doc>An OpenFlow group identifier (integer) identifying a group table entry</zdef-178745529:doc>
      </zdef-178745529:identifiers>
      </zdef-178745529:table-type-pattern>
      </zdef-178745529:table-type-patterns>

      After posting this:

      PUT: http://localhost:8181/restconf/config/onf-ttp:opendaylight-ttps/onf-ttp:table-type-patterns/
      Headers: "Content-Type: application/json"

      {
      "table-type-patterns": {
      "table-type-pattern": [
      {
      "identifiers": [

      { "var": "<subnet_VID>", "doc": [ "The VLAN ID of a locally attached L2 subnet on a Router." ] }

      ,

      { "var": "<group_entry_types/name>", "doc": [ "An OpenFlow group identifier (integer) identifying a group table entry", "of the type indicated by the variable name" ] }

      ]
      }
      ]
      }
      }

      The number after zdef appears to be random and changes on every request making simple comparisons impossible in addition to very user unfriendly.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tony.tkacik@gmail.com Tony Tkacik
              colindixon Colin Dixon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: