diff options
author | Christian Hesse <mail@eworm.de> | 2018-10-04 13:58:29 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-10-04 14:03:09 +0200 |
commit | 311475e67ca23f994d8d31d15a7f63afe1e09648 (patch) | |
tree | 5e89cbe431e6dacfaab0957f82bd7a1a6fa462e5 /bridge-port-toggle | |
parent | 17f64b48af7515ec9ed219e25fc900969169fee6 (diff) |
add script 'bridge-port-toggle'
... to toggle between configuration 'default' and 'alt'.
Diffstat (limited to 'bridge-port-toggle')
-rw-r--r-- | bridge-port-toggle | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bridge-port-toggle b/bridge-port-toggle new file mode 100644 index 0000000..978ed2c --- /dev/null +++ b/bridge-port-toggle @@ -0,0 +1,15 @@ +#!rsc +# RouterOS script: bridge-port-toggle +# Copyright (c) 2013-2018 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; |