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

RESTCONF not recognizing top-level input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • Helium
    • restconf
    • None
    • Operating System: All
      Platform: All

    • 2998
    • High

      URL: http://ODL:8181/restconf/config/bgp-rib:application-rib/example-app-rib/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family

      POST input:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <ipv4-routes xmlns="urn:opendaylight:params:xml:ns:yang:bgp-inet">
      <ipv4-route>
      <prefix>200.20.160.41/32</prefix>
      <attributes>
      <ipv4-next-hop>
      <global>199.20.160.41</global>
      </ipv4-next-hop><as-path/>
      <multi-exit-disc>
      <med>0</med>
      </multi-exit-disc>
      <local-pref>
      <pref>100</pref>
      </local-pref>
      <originator-id>
      <originator>41.41.41.41</originator>
      </originator-id>
      <origin>
      <value>igp</value>
      </origin>
      <cluster-id>
      <cluster>40.40.40.40</cluster>
      </cluster-id>
      </attributes>
      </ipv4-route>
      </ipv4-routes>

      error:

      <errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"><error><error-type>protocol</error-type><error-tag>malformed-message</error-tag><error-message>Error parsing input: Unknown child(ren) node(s) detected, identified by: (urn:opendaylight:params:xml:ns:yang:bgp-inet)ipv4-route, in: list tables</error-message></error></errors>

      The very same input works with PUT and URL:
      http://ODL:8181/restconf/config/bgp-rib:application-rib/example-app-rib/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes

            jhajnar@cisco.com Jan Hajnar
            dkutenicsova Dana Kutenicsova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: