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
}
container l2 {
choice interconnection {
case xconnect-based {
leaf xconnect-outgoing-interface
}
case bridge-based {
leaf bridge-domain
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
- blocks
-
YANGTOOLS-481 Failed to find codec for yang leafs
- Resolved
- is duplicated by
-
YANGTOOLS-481 Failed to find codec for yang leafs
- Resolved