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.
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