routeros-scripts/bridge-port-toggle
2020-03-27 22:12:49 +01:00

16 lines
403 B
Text

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