If I use the url documented in the EVE-NG API to stop a node, it fails with "Request not valid".
http://127.0.0.1/api/labs/User1/Lab%201 ... des/1/stop
If I remove the "/User1", like I did to get the 'start' call to work, then it just returns some HTML (and not JSON).
I used the developer tools to spy on a stop call and I got...
https://192.168.4.100/api/labs/Apstra%2 ... 1616520539
Does anyone know what 'stopmode' is? And what values are acceptable?
Thanks!
API call to stop a node
Moderator: mike
-
- Posts: 360
- Joined: Thu Mar 29, 2018 4:19 pm
Re: API call to stop a node
unl_wrapper -a stop -T PODID -F <FULLPATHOFLAB> -D DEVICE ID
unl_wrapper -a stop -T 0 -m 0 -F /opt/unetlab/labs/abc.unl -D 5
unl_wrapper -a stop -T 0 -m 0 -F /opt/unetlab/labs/abc.unl -D 5