Skip to content

Commit

Permalink
fix MTU when subnet is using logical gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed May 19, 2023
1 parent 486c61a commit 4831502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,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 4831502

Please sign in to comment.