Skip to content

Commit

Permalink
fix underlay subnet in custom VPC
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Feb 24, 2022
1 parent 0f717df commit c53b28b
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 @@ -607,7 +607,7 @@ func (c *Controller) handleAddOrUpdateSubnet(key string) error {
return err
}

needRouter := (subnet.Spec.Vlan == "" || subnet.Spec.LogicalGateway) || subnet.Spec.Vpc != util.DefaultVpc
needRouter := subnet.Spec.Vlan == "" || subnet.Spec.LogicalGateway
if !exist {
subnet.Status.EnsureStandardConditions()
// If multiple namespace use same ls name, only first one will success
Expand Down

0 comments on commit c53b28b

Please sign in to comment.