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

Union node doesn't contain children types in parsed XML

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    • 2993

    Description

      I've just built a controller (2015-04-14) with odl-netconf-monitoring feature activated and when I call a request /restconf/modules/module/ietf-netconf-monitoring/2010-10-04/schema I get this data :

      <leaf-list name="location">
      <type name="union"></type>
      <config value="false"></config>
      <ordered-by value="system"></ordered-by>
      <status value="current"></status>
      <description>
      <text>One or more locations from which the schema can be
      retrieved. This list SHOULD contain at least one
      entry per schema.

      A schema entry may be located on a remote file system
      (e.g., reference to file system for ftp retrieval) or
      retrieved directly from a server supporting the
      <get-schema> operation (denoted by the value 'NETCONF').</text>
      </description>
      </leaf-list>

      In file in controller opendaylight/netconf/ietf-netconf-monitoring/src/main/yang/ietf-netconf-monitoring.yang are data :

      leaf-list location {
      type union {
      type enumeration {
      enum "NETCONF"

      { value 0; }

      }
      type inet:uri;
      }
      description
      "One or more locations from which the schema can be
      retrieved. This list SHOULD contain at least one
      entry per schema.

      A schema entry may be located on a remote file system
      (e.g., reference to file system for ftp retrieval) or
      retrieved directly from a server supporting the
      <get-schema> operation (denoted by the value 'NETCONF').";
      }
      } // list schema

      Attachments

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

        Activity

          People

            pkajsa Peter Kajsa
            zkrnac@cisco.com Zdenko Krnac
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: