mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
15 lines
333 B
Text
15 lines
333 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
|
|
|
|
:global BridgePortTo;
|
|
|
|
:if ($BridgePortTo != "default") do={
|
|
:set BridgePortTo "default";
|
|
} else={
|
|
:set BridgePortTo "alt";
|
|
}
|
|
|
|
/ system script run bridge-port-to-default;
|