Due to cabling reasons, I need to confgure all odd ports on an EX4300 in one vlan, and all even ports on another.
Our prefered "default" configuration method is by use of groups. However when trying to apply these groups I'm getting unexpected results.
groups {
group_a {
interfaces {
"<ge-*/0/[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46]>" {
unit 0 {
family ethernet-switching {
interface-mode access;
vlan {
members vlan_a;
}
}
}
}
}
}
group_b {
interfaces {
"<ge-*/0/[1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47]>" {
unit 0 {
family ethernet-switching {
interface-mode access;
vlan {
members vlan_b;
}
}
}
}
}
}
}
apply-groups [ group_a group_b ];
interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching;
}
}
ge-0/0/1 {
unit 0 {
family ethernet-switching;
}
}
ge-0/0/2 {
unit 0 {
family ethernet-switching;
}
}
}
Sample results are:
ge-0/0/0, vlan_a & vlan_b are both applied
ge-0/0/1, vlan_b applied (correct)
ge-0/0/2, vlan_a applied (correct)
ge-0/0/3, no vlans applied
ge-0/0/4, vlan_a & vlan_b both applied
Has anyone run into this?
#groups#apply-groups#EX4300