aboutsummaryrefslogtreecommitdiffstats
path: root/mod/bridge-port-vlan.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-09 09:09:48 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-09 11:49:50 +0100
commit495232b299bafadc4d21551f094c3c42fa090f57 (patch)
tree02bee4adc35b7011b78653a891598e4c29e1bd7d /mod/bridge-port-vlan.rsc
parent5db686a15ccd21ed3a190cd4c9eea0bcc6e56abd (diff)
mod/bridge-port-vlan: $BridgePortVlan: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod/bridge-port-vlan.rsc')
-rw-r--r--mod/bridge-port-vlan.rsc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/bridge-port-vlan.rsc b/mod/bridge-port-vlan.rsc
index c9f55ae..18fa2db 100644
--- a/mod/bridge-port-vlan.rsc
+++ b/mod/bridge-port-vlan.rsc
@@ -10,7 +10,7 @@
:global BridgePortVlan;
-:global BridgePortVlan do={
+:global BridgePortVlan do={ :do {
:local ConfigTo [ :tostr $1 ];
:global IfThenElse;
@@ -74,4 +74,6 @@
$LogPrint info $0 ("Re-enabling interfaces...");
/interface/ethernet/enable $InterfaceReEnable;
}
-}
+} on-error={
+ :global ExitError; $ExitError false $0;
+} }