[YANGTOOLS-427] JSON Parser does not correctly parsed choice inside augmentation. Created: 19/Mar/15  Updated: 10/Apr/22  Resolved: 20/Mar/15

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

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

Operating System: Linux
Platform: PC


External issue ID: 2874

 Description   

I set the severity of this bug to blocker, because we cannot finish our Hackathon demo setup, until following issue will be solved:

Given this augmentation (sfc-model/src/main/yang/service-function-acl.yang):

augment "/ietf-acl:access-lists/ietf-acl:access-list/ietf-acl:access-list-entries/ietf-acl:actions" {
description "SFC simple filter actions";
choice sfc-action {
case acl-rendered-service-path {
description "Determine the Service Function Path the packet the packet will
traverse";
leaf rendered-service-path

{ type string; }

}
}
}

I can PUT and then GET data throught RESTconf including the augmentation leaf:

{
"access-lists": {
"access-list": [
{
"acl-name": "ACL1",
"access-list-entries": [
{
"rule-name": "ACE1",
"actions":

{ "service-function-acl:rendered-service-path": "SFC1-SFP1" }

}
]
}
]
}
}

The issue occurs, when I get Listener notification, with corresponding DataObject actions:

Actions1 actions1 = actions.getAugmentation(Actions1.class);

actions1 will be always null, even the augmentation data are present (as verified through RESTconf)



 Comments   
Comment by Tony Tkacik [ 20/Mar/15 ]

https://git.opendaylight.org/gerrit/16913

Comment by Andrej Kincel [ 20/Mar/15 ]

It works flawlessly!

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