PATCH request not working for slice catalog: Hi,While updating a template, when we try to update qos catalogs, nothing happens. We receive "204 No Content" as response.Template which is to be editied:{"ietf-network-slice-service:slo-sle-template":[{"id":"2222","template-description":"222- descp","cisco-network-slice-service:qos-policy":{"L2":{"input-policy":"input-policy","output-policy":"output-policy"},"L3":{"input-policy":"input-policy","output-policy":"output-policy"}}}]}Below we're removing the L2: input-policy from the payload.URL:https://<host>:<port>/crosswork/proxy/nso/restconf/data/ietf-network-slice-service:network-slice-services/slo-sle-templates/slo-sle-template=2222Payload: {"ietf-network-slice-service:slo-sle-template":[{"id":"2222","template-description":"222- descp","cisco-network-slice-service:qos-policy":{"L2":{"output-policy":"output-policy"},"L3":{"input-policy":"input-policy","output-policy":"output-policy"}}}]}Its not affecting the NSO and no update happens
Hi Magesh, When slo-sle-template is updated after the slice-service is already push to the device. CFP will not automatically update slice-service. You need to re-deploy manually the slice-service to see the effect. That is by design by CFPThanks,LinhHi Linh,I do believe template is not pushed to device , only slice is pushed to device.If template is not used by any slice then it should be possible to edit the QoS params in template. Please let us know whether it is designed in such a way.Kindly let us know attributes which are not possible edit once template is created because I could see we are able to edit the description.Thanks,NaveenHi Naveen,If you want to delete input-policy, you should not use PATCH. Please review this document on PATCHThis is the restconf command to delete input-policycurl --location --request DELETE 'http://<nso_ip>:8080/restconf/data/ietf-network-slice-service:network-slice-services/slo-sle-templates/slo-sle-template=P2P/cisco-network-slice-service:qos-policy/L2/input-policy' --header 'Content-Type: application/yang-data+xml' --header 'Authorization: Basic YWRtaW46Q2lzY28xMjMj' --data-raw ''Thanks,LInhHi Linh,I am able to change the Qos Policy in template whereas only removal of QoS policy is not working.I think it is NSO bug which has to be handled .If NSO is able to change the value of QoS internally then it should handle the removal also internally.Thanks,NaveenThat is how PATCH request does. It is not NSO bug. It is PATCH request behavior. PATCH request works like a merge operation and it would not remove the entry. I am able to delete qos-policy if I use DELETE request-LinhHi Linh,Got it , I could see PUT request is able to handle all the cases.Kindly let know whether there will be any impact to Slice if we make PUT request on template.Thanks,NaveenThe behavior is expected for PATCH request