I am having troubles to change the distance in the routes with scripting, i can't find the way to do it, maybe you guys could give me a hint
This is the code that I'm trying to use but can't change it automatically to 2
Code: Select all
:if ([/ping 8.8.8.8 count=5] = 5) do={
/ip route edit number =1 value-name=distance
}
Thanks for your help