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

Yangtools fails to decode leafref in choice statement

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 4051

    Description

      When processing a read from an instance of the following model:

      typedef bridge-domain-ref {
      type leafref

      { path "/vpp/bridge-domains/bridge-domain/name"; }

      }

      container l2 {

      choice interconnection {
      case xconnect-based {
      leaf xconnect-outgoing-interface

      { type if:interface-ref; }

      }
      case bridge-based {
      leaf bridge-domain

      { type bridge-domain-ref; }

      leaf split-horizon-group

      { type uint8; }

      leaf bridged-virtual-interface

      { type boolean; }

      }
      }
      Yangtools fails to decode properly the bridge-domain name leaf node giving the following error:

      2015-07-23 20:39:51,383 | ERROR | pool-51-thread-1 | XmlStreamUtils | 71 - org.opendaylight.yangtools.yang-data-impl - 0.6.3.Helium-SR1 | Failed to find codec for type (urn:ietf:params:xml:ns:yang:1)leafref [xpath=/vpp/bridge-domains/bridge-domain/name], falling back to using stream

      Data processing still succeeds because the data is actually a string, however it may fail in other cases.

      Attachments

        Issue Links

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

          Activity

            People

              pkajsa Peter Kajsa
              wojdec Wojciech Dec
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: