cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1151
Views
2
Helpful
5
Replies

NSO doing rollback programmatically

sm000x
Level 1
Level 1

Hi,

I have a question about NSO rollback.
Can I do rollback programmatically?

if I have a service model touches device then later user wants to rollback. Can
user send a request to NSO and NSO rollback the configuration programmatically?

THX
sm000x

2 Accepted Solutions

Accepted Solutions

hniska
Cisco Employee
Cisco Employee

the right thing todo is to delete the service (or do an undeploy if you just want to remove the config from the devices but keep the service data). You do not want to fiddle around with the rollback files for things like this. 

View solution in original post

hniska
Cisco Employee
Cisco Employee

but yes you can rollback programmatically, you can read up on rollbacks a bit more here https://developer.cisco.com/docs/nso/guides/#!rollbacks/rollbacks 

View solution in original post

5 Replies 5

hniska
Cisco Employee
Cisco Employee

the right thing todo is to delete the service (or do an undeploy if you just want to remove the config from the devices but keep the service data). You do not want to fiddle around with the rollback files for things like this. 

Thank you very much.

hniska
Cisco Employee
Cisco Employee

but yes you can rollback programmatically, you can read up on rollbacks a bit more here https://developer.cisco.com/docs/nso/guides/#!rollbacks/rollbacks 

Thank you very much for the information.

sm000x
Level 1
Level 1

Hi, hniska:

I read https://developer.cisco.com/docs/nso/guides/#!rollbacks/rollbacks, however, there is no example code there.

Do you have a simple rollback java code anywhere?

THX