cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
501
Views
5
Helpful
1
Replies

How to copy/rename circuit-id ( service-id ) using RESTCONF ?

vivekp2
Cisco Employee
Cisco Employee

We have a requirement to update the service Id of any existing service residing in NSO.

I see NSO has that rename functionality inside config mode.

 

rename <service-type> originalname newname

commit no-networking

 

Not able to find the corresponding RESTCONF call , so that we can hit that from outside NSO.

 

Any Clue ?

1 Reply 1

vivekp2
Cisco Employee
Cisco Employee

On this query the response I got from Viktor is 

" There is no move, only delete and re-add. You can use yang patch. I do not recommend changing keys. You can always use an uuid as the key and change an attribute for display purposes."

 

So understanding is that you cant use RestConf for this functionality. Better design your yang model in such a way that there is no need to change the primary key of any service. So make use of delete and re-create to handle this case.