mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-18 16:48:48 +02:00
mod/bridge-port-vlan: $BridgePortVlan: use $ExitError to indicate unintentional error
This commit is contained in:
parent
5db686a15c
commit
495232b299
1 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
:global BridgePortVlan;
|
:global BridgePortVlan;
|
||||||
|
|
||||||
:global BridgePortVlan do={
|
:global BridgePortVlan do={ :do {
|
||||||
:local ConfigTo [ :tostr $1 ];
|
:local ConfigTo [ :tostr $1 ];
|
||||||
|
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
|
@ -74,4 +74,6 @@
|
||||||
$LogPrint info $0 ("Re-enabling interfaces...");
|
$LogPrint info $0 ("Re-enabling interfaces...");
|
||||||
/interface/ethernet/enable $InterfaceReEnable;
|
/interface/ethernet/enable $InterfaceReEnable;
|
||||||
}
|
}
|
||||||
}
|
} on-error={
|
||||||
|
:global ExitError; $ExitError false $0;
|
||||||
|
} }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue