Hi,
Maybe you could use groups for this.
Example:
groups { vstp { protocols { vstp { vlan <*> { interface ge-0/0/0; interface ge-0/0/1; interface ge-0/0/2; interface ge-0/0/3; } } } } } protocols { vstp { apply-groups vstp; vlan 1; vlan 2; vlan 10; } }
Result:
#show protocols vstp | display inheritance no-comments vlan 1 { interface ge-0/0/0; interface ge-0/0/1; interface ge-0/0/2; interface ge-0/0/3; } vlan 2 { interface ge-0/0/0; interface ge-0/0/1; interface ge-0/0/2; interface ge-0/0/3; } vlan 10 { interface ge-0/0/0; interface ge-0/0/1; interface ge-0/0/2; interface ge-0/0/3; }
apply-groups can be applied at different levels and exceptions can also configured.
Cheers,
Ashvin