Skip to content

Commit

Permalink
fix MTU when subnet is using logical gateway (#2834)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed May 19, 2023
1 parent a5a97ce commit 7e32e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/handler.go
Expand Up @@ -216,7 +216,7 @@ func (csh cniServerHandler) handleAdd(req *restful.Request, resp *restful.Respon
}

var mtu int
if providerNetwork != "" {
if providerNetwork != "" && !podSubnet.Spec.LogicalGateway && !podSubnet.Spec.U2OInterconnection {
node, err := csh.Controller.nodesLister.Get(csh.Config.NodeName)
if err != nil {
errMsg := fmt.Errorf("failed to get node %s: %v", csh.Config.NodeName, err)
Expand Down

0 comments on commit 7e32e57

Please sign in to comment.