Skip to content

Commit

Permalink
add route for underlay subnet which enables u2o and disables loadbala…
Browse files Browse the repository at this point in the history
…ncer

Signed-off-by: zcq98 <[email protected]>
  • Loading branch information
zhaocongqi committed May 17, 2024
1 parent 87c0074 commit e7fc85c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/daemon/controller_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ func (c *Controller) reconcileRouters(event *subnetEvent) error {
joinCIDR := make([]string, 0, 2)
cidrs := make([]string, 0, len(subnets)*2)
for _, subnet := range subnets {
if (subnet.Spec.Vlan != "" && !subnet.Spec.LogicalGateway) || subnet.Spec.Vpc != c.config.ClusterRouter || !subnet.Status.IsReady() {
if !subnet.Status.IsReady() ||
subnet.Spec.Vpc != c.config.ClusterRouter ||
(subnet.Spec.Vlan != "" && !subnet.Spec.LogicalGateway && !subnet.Spec.U2OInterconnection) ||
(subnet.Spec.Vlan != "" && !subnet.Spec.LogicalGateway && subnet.Spec.U2OInterconnection && (subnet.Spec.EnableLb != nil && *subnet.Spec.EnableLb)) {
continue
}

Expand Down

0 comments on commit e7fc85c

Please sign in to comment.