update for v6/v7 support

This commit is contained in:
Wifinigel 2023-01-24 20:28:40 +00:00
parent 4871e9432b
commit b10b99bd87
120 changed files with 1479 additions and 22 deletions

View file

@ -1,14 +0,0 @@
# filename: ch7-09-if-binary-simplified.rsc
# define WAN interface name
:local WanInterfaceName "ether1-WAN";
# find the interface index
:local InterfaceIndex [/interface ethernet find name=$WanInterfaceName];
:local UpDown "down";
if ([:interface ethernet get $InterfaceIndex]->"running") do={
:set UpDown "up"
}
:put "Interface $WanInterface is currently $UpDown";