cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
236
Views
0
Helpful
1
Replies

Differentiate new adjustments in a service vs existing

Rob85
Level 1
Level 1

I would like to check in python the new modifications that are added to the service.

Is there a way to do this?

Now it seems like python is not aware of what is new, and what was there before. It sees all input as the same.

I'm calculating weater or not a new ip prefix is unique or not. But with this check, python always says that a new added prefix is not unique. But this is because python does not know which prefix is new.

1 Reply 1

hazad
Cisco Employee
Cisco Employee

You can perhaps achieve this by utilizing the proplist of your service callback https://developer.cisco.com/docs/nso/api/#!ncs-application/ncs.application.Service.create. That list will remain intact between each re-deploy of your service, so you can add your ip prefixes there and compare them with the service parameters.