Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :global bMACIsSet 0;
- :foreach k in=[/interface find where !(slave=yes || name="ether1" || name="ether2" || name~"bridge")] do={
- :local tmpPortName [/interface get $k name];
- :if ($bMACIsSet = 0) do={
- :if ([/interface get $k type] = "ether") do={
- /interface bridge set "bridge" auto-mac=no admin-mac=[/interface get $tmpPortName mac-address];
- :set bMACIsSet 1;
- }
- }
- :if (([/interface get $k type] != "ppp-out") && ([/interface get $k type] != "lte")) do={
- /interface bridge port add bridge=bridge interface=$tmpPortName;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement