blob: a8ad8add7c93d0ba673264aa1a9089d71546d0f4 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!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;
|