01-04-2023 04:58 AM
I use I was required to set a portion of configuration on a Junos device (a static route) when a service instance is deleted (python-and-template package).
Fast-map does not do work, since the package (in creation) does not touch that portion of configuration (if it deleted it it would work).
I managed to save all the required info in proplist but I don't know how to apply the configuration, since I cannot create the required template with the command "template = ncs.template.Template(service)".
How can I do?
01-09-2023 05:51 AM
The create code isn't executed on delete but you can create a subscriber or kicker that would do something on delete.
https://developer.cisco.com/docs/nso/guides/#!kicker
01-09-2023 05:53 AM
the subscriber or kicker would on delete, execute an action that would then add the route to the juniper router.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: