02-24-2017 05:52 AM - edited 03-01-2019 03:47 AM
I understand that NSO provides for Idempotent operations. Can someone explain that in lameman terms?
Solved! Go to Solution.
02-24-2017 08:25 AM
The somewhat dry definition from Wikipedia is "an operation that will produce the same results if executed once or multiple times."
The way that this manifests itself in NSO is that multiple operations of the exact same kind and content (i.e. a NETCONF edit config to create a service instance) on the northbound APIs will result in the creation of the service in the network the first time, and subsequent calls will have no effect at all, since the service is already created.
This behavior comes out of the way FASTMAP works. All operations on the service level leads to the creation of a resulting set of data for the device level. But before applying this resulting set, FASTMAP compares the resulting data with what is already in place on the device level. And if that comparison results in nothing (i.e. everything needed is already in place), then there's no need to send anything through the NEDs to the network.
The Wikipedia article has several examples, and I think contrasting the following two makes a great point:
02-24-2017 08:25 AM
The somewhat dry definition from Wikipedia is "an operation that will produce the same results if executed once or multiple times."
The way that this manifests itself in NSO is that multiple operations of the exact same kind and content (i.e. a NETCONF edit config to create a service instance) on the northbound APIs will result in the creation of the service in the network the first time, and subsequent calls will have no effect at all, since the service is already created.
This behavior comes out of the way FASTMAP works. All operations on the service level leads to the creation of a resulting set of data for the device level. But before applying this resulting set, FASTMAP compares the resulting data with what is already in place on the device level. And if that comparison results in nothing (i.e. everything needed is already in place), then there's no need to send anything through the NEDs to the network.
The Wikipedia article has several examples, and I think contrasting the following two makes a great point:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide