From 8c31a06b39fbb8c103a9f9e63be56f1bf47d914c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 16 May 2022 22:48:26 +0200 Subject: mod/bridge-port-to: add interface down and up This helps the client to detect the change. --- mod/bridge-port-to | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod') diff --git a/mod/bridge-port-to b/mod/bridge-port-to index c2ab55b..36b827b 100644 --- a/mod/bridge-port-to +++ b/mod/bridge-port-to @@ -42,7 +42,10 @@ /ip/dhcp-client/disable $DHCPClient; :delay 200ms; } + /interface/ethernet/disable [ find where name=$BridgePortVal->"interface" ]; /interface/bridge/port/set disabled=no bridge=$BridgeDefault $BridgePort; + :delay 500ms; + /interface/ethernet/enable [ find where name=$BridgePortVal->"interface" ]; } else={ $LogPrintExit2 debug $0 ("Interface " . $BridgePortVal->"interface" . " already connected to " . $BridgePortTo . \ " bridge " . $BridgeDefault . ".") false; -- cgit v1.2.3-70-g09d2