routeros-scripts/bridge-port-toggle
Christian Hesse 311475e67c add script 'bridge-port-toggle'
... to toggle between configuration 'default' and 'alt'.
2018-10-04 14:03:09 +02:00

15 lines
349 B
Text

#!rsc
# RouterOS script: bridge-port-toggle
# Copyright (c) 2013-2018 Christian Hesse <mail@eworm.de>
#
# toggle bridge ports between default and alt bridge
:global "bridge-port-to";
:if ($"bridge-port-to" != "default") do={
:set "bridge-port-to" "default";
} else={
:set "bridge-port-to" "alt";
}
/ system script run bridge-port-to-default;