Skip to content

Commit

Permalink
fix eni only mode failed to setup network
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jun 4, 2021
1 parent cf0826d commit 66b1f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/terway/cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ func cmdAdd(args *skel.CmdArgs) error {

setupCfg := &driver.SetupConfig{
HostVETHName: hostVETHName,
ContainerIfName: args.IfName,
ContainerIfName: defaultVethForENI,
ContainerIPNet: containerIPNet,
GatewayIP: gatewayIPSet,
MTU: conf.MTU,
Expand All @@ -472,7 +472,7 @@ func cmdAdd(args *skel.CmdArgs) error {
}
}
}()

setupCfg.ContainerIfName = args.IfName
err = rawNIC.Setup(setupCfg, cniNetns)
if err != nil {
return fmt.Errorf("setup network for vpc eni failed: %v", err)
Expand Down

0 comments on commit 66b1f01

Please sign in to comment.