aboutsummaryrefslogblamecommitdiffstats
path: root/bridge-port-toggle
blob: fc122f6df50a6d3f3f32ccb7c6c382cd36bacbd0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                     
                                                         


                                                    
                     
 

                                     
        
                          


                                           
#!rsc
# RouterOS script: bridge-port-toggle
# Copyright (c) 2013-2019 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;