bridge-port-toggle 333 Bytes
Newer Older
1 2
#!rsc
# RouterOS script: bridge-port-toggle
3
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de>
4 5 6
#
# toggle bridge ports between default and alt bridge

7
:global BridgePortTo;
8

9 10
:if ($BridgePortTo != "default") do={
  :set BridgePortTo "default";
11
} else={
12
  :set BridgePortTo "alt";
13 14 15
}

/ system script run bridge-port-to-default;