mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-12-15 23:19:30 +00:00
publish copy updates
This commit is contained in:
parent
4548f7c5c1
commit
8a3419b536
22 changed files with 63 additions and 48 deletions
|
|
@ -22,10 +22,10 @@ if ( [:typeof $WanInterfaces] != "array") do={
|
|||
# Let's step through the interfaces in the array
|
||||
# and print out their operation status
|
||||
:foreach WanInterface in=$WanInterfaces do={
|
||||
:local InterfaceIndex [/interface ethernet find name=$WanInterface];
|
||||
:local InterfaceId [/interface ethernet find name=$WanInterface];
|
||||
|
||||
:local UpDown "down";
|
||||
if ([:interface ethernet get $InterfaceIndex]->"running") do={
|
||||
if ([:interface ethernet get $InterfaceId]->"running") do={
|
||||
:set UpDown "up"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue