Lines 59 and 60 work as expected and assign the ports to the bridge.
Code: Select all
# Assign Ports to Bridge
:foreach i in=[/interface/find default-name~"ether"] do={ /interface/bridge/port/add bridge=$BridgeName interface=$i }
:foreach i in=[/interface/find default-name~"sfp"] do={ /interface/bridge/port/add bridge=$BridgeName interface=$i }
Lines 68 and 69 uses the same selector, but skips "ether1" and includes "sfp-sfpplus1"
Code: Select all
# Configure Access Ports
:if ($ConfigAccess = true) do={
:foreach i in=[/interface/find default-name~"ether"] do={ /interface/bridge/port/set $i pvid=$AccessVLAN frame-types=admit-only-untagged-and-priority-tagged }
}
Hardware I'm testing on is a CRS328-24P-4S+ running 7.11.2 with the firmware matching. I have attached the script if anyone is interested.