-
Notifications
You must be signed in to change notification settings - Fork 16
Description
curl -v -X PUT "http://10.175.125.43:4443/restconf/data/openconfig-network-instance:network-instances/network-instance=INST2/protocols/protocol=IGMP_SNOOPING,IGMP-SNOOPING/openconfig-network-instance-deviation:igmp-snooping/interfaces/interface=Vlan10/config/version" -H "accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -d "{ "openconfig-network-instance-deviation:version": 1}"
In the above REST API, the target node of the URI is leaf "version", but when we execute this command, transformer replaces the whole redis table with leaf version with value 1, that is it removes all the entries in the redis db table and set only the leaf version value.
Actually transformer should update only the field version and should not remove other fields in the redis db table as the target node of the URI is leaf version.
Before issuing this request:
HGETALL CFG_L2MC_TABLE|Vlan10
- "version"
- "3"
- "query-interval"
- "50"
After we execute the above REST API:
HGETALL CFG_L2MC_TABLE|Vlan10
- "version"
- "1"