I do an API call to create a path (working well) and would like to run a runbook/qapp on the dynamic created map.
In the stub manager there is the possibility to add a runbook. The runbook itself is been put to the map and can be run manually.
But how could it be made with a variable input and a outomatical run?
I already tried $destination to set as the input in the field Filter, as the varibale already exist in the “Map Creation” section but it is not taken as a variable.
The goal is make a path with source-destination , run the paket capture on the created map with the filter set on the destination address.
I see you are trying to give a variable input inside a stub. This is totally possible for a qapp.
Here I took a sample stub to first create a path (from src_ip to dst_ip) and then ping the dst_ip from each device in the path.
Like you mentioned, the path will work fine and then we will need to follow below steps to give the variable input for a qapp.
For this to work, we will first need to make sure the qapp is able to take variable input, like below.
Once the qapp is built to run variable input, the next step is to add the qapp to the runbook and save the Runbook Template. (you’ve already done this)
You will now need to add the runbook to the stub, to be run after the map creation. (you’ve already done this)
Once done - you will need to give the variable input for runbook in the below option.
The above step will ensure the actual “Destination IP used to create the path” will be used as the “Destination IP to be pinged by Qapp”
Here I am attaching the actual result from my lab I just built.
Let me know if you have any further questions. Will be happy to assist :)