SetRequest with update and delete throws error
If the target receives a SetRequest containing an update and additional deletes, an error is thrown: rpc error: code = Internal desc = error in creating config struct from IETF JSON data: key field ip (*string) has nil value <nil>
Error occured with the following JSON and the gosdn controller.
Path: interfaces/interface[name=eth0]
JSON:
{
"openconfig-interfaces:config":{
"enabled":true,
"loopback-mode":false,
"mtu":1500,
"name":"eth0"
},
"openconfig-interfaces:name":"eth0",
"openconfig-interfaces:subinterfaces":{
"subinterface":[
{
"config":{
"enabled":true,
"index":0
},
"index":0,
"openconfig-if-ip:ipv4":{
"addresses":{
"address":[
{
"config":{
"ip":"10.0.0.100",
"prefix-length":24
},
"ip":"10.0.0.100"
}
]
},
"config":{
"enabled":true
}
}
}
]
}
}