Skip to content

Commit

Permalink
fix: VLAN CIDR conflict check
Browse files Browse the repository at this point in the history
  • Loading branch information
fanriming committed Sep 7, 2021
1 parent 68e2165 commit e09d99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (c *Controller) handleAddOrUpdateSubnet(key string) error {
}

for _, sub := range subnetList {
if sub.Spec.Vpc != subnet.Spec.Vpc || sub.Name == subnet.Name {
if sub.Spec.Vpc != subnet.Spec.Vpc || sub.Spec.Vlan != subnet.Spec.Vlan || sub.Name == subnet.Name {
continue
}

Expand Down

0 comments on commit e09d99b

Please sign in to comment.