I have a setup where I want to enable a secondary eoip tunnel if the main eoip tunnel is not present. I have created a simple script, where I presumably check the running status of the main tunnel, and if the tunnel is not running, I enable the secondary tunnel. So far, I have not gotten this to work, anyone have some inputs?
{
:if ([/interface get [find name="eoip-tunnel-to-N1"] running]=!true\
do={[/interface disable eoip-tunnel-to-N4]}\
else={[/interface enable eoip-tunnel-to-N4]}
}