diff options
author | Christian Hesse <mail@eworm.de> | 2024-03-08 17:51:22 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-03-12 20:37:57 +0100 |
commit | 525e4325daadb94757c8632c1c07391d986c9e0e (patch) | |
tree | 85631d49d3d0c8924f4930e0edac3ef95109cf5f /mod/bridge-port-vlan.rsc | |
parent | 39dd1f2a63bc8477bf444111189a7ecead77a667 (diff) |
mod/bridge-port-vlan: do not exit with error
Diffstat (limited to 'mod/bridge-port-vlan.rsc')
-rw-r--r-- | mod/bridge-port-vlan.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/bridge-port-vlan.rsc b/mod/bridge-port-vlan.rsc index 522e9a6..aee5ef9 100644 --- a/mod/bridge-port-vlan.rsc +++ b/mod/bridge-port-vlan.rsc @@ -26,7 +26,7 @@ :if ([ :len $DHCPClient ] != 1) do={ $LogPrint warning $0 ([ $IfThenElse ([ :len $DHCPClient ] = 0) "Missing" "Duplicate" ] . \ " dhcp client configuration for interface " . $BridgePortVal->"interface" . "!"); - :error false; + :return false; } :local DHCPClientDisabled [ /ip/dhcp-client/get $DHCPClient disabled ]; @@ -43,7 +43,7 @@ :set $Vlan ([ /interface/bridge/vlan/get [ find where comment=$Vlan ] vlan-ids ]->0); } on-error={ $LogPrint warning $0 ("Could not find VLAN '" . $Vlan . "' for interface " . $BridgePortVal->"interface" . "!"); - :error false; + :return false; } } :if ($BridgePortVal->"disabled" = true || $Vlan != $BridgePortVal->"pvid") do={ |