I am trying to use the below script it will do everything until it gets to the second /ip route command and will not process this one. Can someone let me know where I am going wrong.
:log info “PACNET MPLS down Enable NEXTG wait then ENABLE VPN”;
/interface ppp-client enable 0;
delay 15s;
/interface pptp-client enable 0;
/ip route set [find comment=“Default Gateway”] disabled=yes};
/ip route set [find comment=“VPN Gateway”] disabled=no};
Hi I tried this command in the terminal and if the route is disabled it becomes enabled. I watch it through winbox become active. When the route is enabled and I run the command it looks like nothing happens as it is already active.
By themselves they determine scope - everything within a pair is one scope. They also embrace the bodies of certain functions, like do loop or the then and else parts of an if decision. They must always appear in pairs.