Sure, this cannot work. apply-group must be within the interface and would apply settings from the group matching the (configured) vlan and (configured) interface within protocols vstp then. Understood.
schoberw@sw1s# set protocols vstp vlan 1000 interface ae8 apply-groups XXX
would apply e.g. mode "ptp" or "edge" from the group then.
But a thing I didn't think about (because I tried to translate the EX4200 config) is that EX4300 can use port based vstp now ;-) Which make things easier.
set interfaces interface-range EDGE-PORTS member "ge-[1-2]/0/[0-11]" set interfaces interface-range EDGE-PORTS member "ge-[1-2]/0/[14-47]" set protocols vstp interface EDGE-PORTS edge set protocols vstp interface EDGE-PORTS no-root-port set protocols vstp interface ae0 set protocols vstp interface ae2 edge set protocols vstp interface ae2 no-root-port set protocols vstp interface ae3 set protocols vstp interface ae4 set protocols vstp interface ae7 edge set protocols vstp interface ae7 no-root-port set protocols vstp interface ae8 edge set protocols vstp interface ae8 no-root-port
(An aeX cannot be put into a interface-range - so I have to add those manually)
set interfaces interface-range EDGE-PORTS member ae7 ^ invalid interface name in ae7 at 'ae7'
Anyway. This is more like cisco, where "spanning-tree portfast (trunk)" must be added per interface as well!
It's just: Let it unconfigured could lead to loops which is dangerous. Am I wrong?
br
Walter