mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 10:04:19 +02:00
mod/bridge-port-vlan: do not exit with error
This commit is contained in:
parent
39dd1f2a63
commit
525e4325da
|
@ -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={
|
||||
|
|
Loading…
Reference in a new issue