02-01-2021 02:35 PM
The function signature for ncs.cdb.Subscriber.iterate is shown by pydoc as the following:
iterate(kp, op, oldv, newv, state) (mandatory)
Called for each change in the change set.
When this function is called the values of oldv and newv are None except in the case where op is equal to ncs.MOP_VALUE_SET; In this case oldv and newv are of type _ncs.Value with oldv.confd_type_str returning C_BINARY.
How can I get the actual old and versions of the config to which I have subscribed. This would be particularly useful when op is equal to ncs.MOP_DELETED; This would allow me to store external system ids with the config on create and then clean up the external system on delete.
02-02-2021 12:39 AM
02-02-2021 12:54 AM
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