aboutsummaryrefslogtreecommitdiffstats
path: root/bridge-port-toggle
blob: c80f5e24d68adccf47a4f988592fec587c05af9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!rsc
# RouterOS script: bridge-port-toggle
# Copyright (c) 2013-2019 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;