diff options
author | Christian Hesse <mail@eworm.de> | 2022-05-16 22:27:01 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-05-16 22:27:01 +0200 |
commit | 4e7c1df7ee2d4af96be78f76fc6d9a00e7f367ed (patch) | |
tree | 01eb214279e0a5f5be3bb22b8651ee1fac804910 /mod | |
parent | 194f14cc1394448575005f3d841ed54685ea879c (diff) |
mod/bridge-port-vlan: add interface down and up
This helps the client to detect the change.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/bridge-port-vlan | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/bridge-port-vlan b/mod/bridge-port-vlan index 68bd2f2..b880c82 100644 --- a/mod/bridge-port-vlan +++ b/mod/bridge-port-vlan @@ -49,7 +49,10 @@ /ip/dhcp-client/disable $DHCPClient; :delay 200ms; } + /interface/ethernet/disable [ find where name=$BridgePortVal->"interface" ]; /interface/bridge/port/set disabled=no pvid=$Vlan $BridgePort; + :delay 500ms; + /interface/ethernet/enable [ find where name=$BridgePortVal->"interface" ]; } else={ $LogPrintExit2 debug $0 ("Interface " . $BridgePortVal->"interface" . " already connected to " . $ConfigTo . \ " vlan " . $Vlan . ".") false; |