Unable to set RON default controller using RESTCONF when its value is empty: Hi,During fresh install and when RON default-controller is empty,When I try to send RESTCONF PATCH request to default-controller then NSO responds with below error message,"ietf-restconf:errors": {                                          "error": [                                                  {                                                      "error-type": "application",                                        "error-tag": "invalid-value",                                       "error-path": "/cisco-ron-cfp:ron/default-optical-controller",                       "error-message": "patch to a nonexistent resource"                            }                                                    ]                                                    }                                                    }     Whereas , after setting default-controller from NSO , I am able to change/set using PATCH RESTCONF request.From CNC we need to set this value when the default-controller value is empty as well.Kindly help us in fixing this issue.Thanks,Naveen
Hi Mohit,As per our web-ex discussion , the details are as follows,The path which I tried is below,http://<tt>nso.host</tt>:<tt>nso.port</tt>/restconf/data/cisco-ron-cfp:ron/default-optical-controllerMethod : PATCHBody: {  "cisco-ron-cfp:default-optical-controller": "onc-real-new"}Response:"ietf-restconf:errors": {                                          "error": [                                                  {                                                      "error-type": "application",                                        "error-tag": "invalid-value",                                       "error-path": "/cisco-ron-cfp:ron/default-optical-controller",                       "error-message": "patch to a nonexistent resource"                            }                                                    ]                                                    }                                                    }     Method : POST Response:{  "ietf-restconf:errors": {    "error": [      {        "error-type": "application",        "error-tag": "malformed-message",        "error-path": "/cisco-ron-cfp:ron/default-optical-controller",        "error-message": "unknown element: default-optical-controller in /cisco-ron-cfp:ron/cisco-ron-cfp:default-optical-controller/cisco-ron-cfp:default-optical-controller"      }    ]  }}Hi Naveen,From your details above it seems like you are using wrong api url and request body. Could you please try the below requests and let me know if it works for you. I tested these on my setup with fresh install when there is no default optical controller present.Thanks,Mohit BUrl : Request Body:{"cisco-ron-cfp:ron":{"default-optical-controller":["onc-real-new"]}}Response status code returned: 204 No ContentUrl : Request Body:{"default-optical-controller":["onc-real-new"]}Response status code returned: 201 CreatedAfter discussion on webex, we were able to resolve the issue. kindly refer ticket notes for more details.