[NETCONF-360] simple list dosen't work in PATCH operation Created: 06/Mar/17  Updated: 15/Mar/19  Resolved: 18/Mar/17

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: David Goldberg Assignee: David Goldberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 7906

 Description   

In a http PATCH request, we can't use simple lists.
for example this rest call will fail:
http://10.200.2.2:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/ciena01/yang-ext:mount/ciena-mef-fp:fps/ PATCH ContentType: application/yang.patch+json
{
"ietf-restconf:yang-patch" : {
"patch-id" : "0",
"edit" : [
{
"edit-id" : "edit1",
"operation" : "merge",
"target" : "/ciena-mef-fp:fpciena-mef-fp:name='vlan-VLAN#3223-LAGtest'",
"value" : {
"fp" :

{ "name":"vlan-VLAN#3223-LAGtest", "fd-name":"vlan-VLAN#3223", "logical-port":"LAGtest", "uni":"", "classifier-list": ["clsfr_v3223"] }

}
}
]
}
}

because "classifier-list": ["clsfr_v3223"] is a simple list, and the comtroller expects a json object inside the string and not a simple type like the string.
This happens only on PATCH requests.



 Comments   
Comment by David Goldberg [ 07/Mar/17 ]

I created afix for this here:
https://git.opendaylight.org/gerrit/#/c/52888/

Comment by Ivan Hrasko [ 15/Mar/17 ]

Are you able to cherry pick it to stable/boron?

Comment by David Goldberg [ 16/Mar/17 ]

no, i get an error that the branch is blocked

Comment by Ivan Hrasko [ 16/Mar/17 ]

I know, you have abandoned cherry pick to boron
Please click Restore and try again.

Comment by Ivan Hrasko [ 16/Mar/17 ]

Gerrit will block your push until you restore previous patch.

Comment by David Goldberg [ 16/Mar/17 ]

i reopened it

Comment by Ivan Hrasko [ 18/Mar/17 ]

cherry pick to boron https://git.opendaylight.org/gerrit/#/c/52836/7 merged

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