cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
146
Views
5
Helpful
1
Replies

NSO Action with Python

Siliano
Beginner
Beginner

Hi all,

is it possible to terminate the execution of an Action and execute a task immediately afterwards?
I'm working on an Action, the task is to retrieve some information by executing a REQUEST on a remote server and perform an update to the CDB with the data obtained.

I'd like to terminate the Action once I retrieve the data, use them (like printing on terminal) and then perform the CDB update using maapi API (as if it were a separate action).
Actually the Action terminates after the CDB update (that requires too much time), any solutions?

 

1 Reply 1

cohult
Cisco Employee
Cisco Employee

Anything can be done in code, but you likely want to use a NED instead of an action to do what you describe.

Getting Started

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:

Recognize Your Peers