[MDSAL-115] Binding Codec does not provide leaf default value for identityref Created: 18/Nov/15  Updated: 09/Mar/18  Resolved: 16/Jan/16

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Tony Tkacik Assignee: Igor Foltin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
is blocked by YANGTOOLS-547 yang-model-util: Cleanup TypeDefiniti... Resolved
External issue ID: 4647

 Description   

With following model

leaf transport-type

{ type sfc-sl:sl-transport-type-def; default "sfc-sl:vxlan-gpe"; description "Transport type from service-locator.yang."; }

default statement value is parsed to string instead of IdentitySchemaNode,
which is unsuitable for codecs to determine real value and codecs returns NULL.



 Comments   
Comment by Igor Foltin [ 22/Dec/15 ]

Fix pushed:

https://git.opendaylight.org/gerrit/#/c/31758/

Comment by Robert Varga [ 04/Jan/16 ]

Reopening, as the fix was reverted in https://git.opendaylight.org/gerrit/#/c/32089/. It is failing with SFC's rendered-service-path.yang, which includes:

import service-locator

{ prefix sfc-sl; revision-date 2014-07-01; }

leaf transport-type

{ type sfc-sl:sl-transport-type-def; default "sfc-sl:vxlan-gpe"; }

Hence the string has to be interpreted with the imports.

Comment by Igor Foltin [ 12/Jan/16 ]

New fix pushed:

https://git.opendaylight.org/gerrit/#/c/32411/

Generated at Wed Feb 07 20:08:40 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.