-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
-
None
I am doing a restconf delete for negative mapping and I am getting the following error:
{ "errors": { "error": [ { "error-type": "application", "error-tag": "data-missing", "error-message": "Data specified for delete doesn't exist." } ] } }
The way I produce the bug:
curl -X PUT \ http://192.168.255.101:8283/restconf/config/gpe:gpe \ -H 'authorization: Basic YWRtaW46YWRtaW4=' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'postman-token: 153e49f6-6474-4299-5295-e2288afe927e' \ -d '{ "gpe":{ "gpe-feature-data":{ "enable":true } } }'
Then,
curl -X PUT \ http://192.168.255.101:8283/restconf/config/gpe:gpe/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-11000001-540b-4139-81a6-4dbbb3dae1e5_2 \ -H 'authorization: Basic YWRtaW46YWRtaW4=' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'postman-token: 15d30947-836d-cd8e-82f7-a65891947328' \ -d '{ "gpe-entry": { "id": "gpe-entry-11000001-540b-4139-81a6-4dbbb3dae1e5_2", "vni": 1, "remote-eid": { "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", "ipv4-prefix": "10.11.12.128/25", "virtual-network-id": 1 }, "dp-table": 1, "action": "send-map-request" } }'
Then if I trigger the delete:
curl -X DELETE \ http://192.168.255.101:8283/restconf/config/gpe:gpe/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-11000001-540b-4139-81a6-4dbbb3dae1e5_2 \ -H 'authorization: Basic YWRtaW46YWRtaW4=' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'postman-token: f4981121-c397-fac7-df45-7e47a70499c7'
In the config datastore I still see the mapping but I don't see that in my operational datastore.
- duplicates
-
HC2VPP-192 LispGPE: mapping delete returns code 404
-
- Done
-