mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 10:04:28 +02:00
mod/bridge-port-vlan: move reenable to correct level
This commit is contained in:
parent
e9f00df290
commit
5b3b3e182b
1 changed files with 6 additions and 6 deletions
|
@ -15,9 +15,9 @@
|
|||
:global LogPrintExit2;
|
||||
:global ParseKeyValueStore;
|
||||
|
||||
:local InterfaceReEnable [ :toarray "" ];
|
||||
:foreach BridgePort in=[ /interface/bridge/port/find where !(comment=[]) ] do={
|
||||
:local BridgePortVal [ /interface/bridge/port/get $BridgePort ];
|
||||
:local InterfaceReEnable [ :toarray "" ];
|
||||
:foreach Config,Vlan in=[ $ParseKeyValueStore ($BridgePortVal->"comment") ] do={
|
||||
:if ($Config = $ConfigTo) do={
|
||||
:local DHCPClient [ /ip/dhcp-client/find where interface=$BridgePortVal->"interface" comment="toggle with bridge port" ];
|
||||
|
@ -61,6 +61,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
:if ([ :len $InterfaceReEnable ] > 0) do={
|
||||
:delay 2s;
|
||||
:foreach Interface in=$InterfaceReEnable do={
|
||||
|
@ -68,4 +69,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue