Skip to content

Commit

Permalink
Merge pull request #368 from zexi/ocnet-cni
Browse files Browse the repository at this point in the history
fix(ocnet-cni): set container netif to eth%d
  • Loading branch information
zexi authored Mar 14, 2024
2 parents ebf0913 + 25ea27c commit 1a511a4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/cni-plugin/plugin/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@ type PodNic struct {

func (n PodNic) GetInterface(idx int) string {
defaultName := fmt.Sprintf("eth%d", idx)
if n.Interface != "" {
return n.Interface
}
return defaultName
}

0 comments on commit 1a511a4

Please sign in to comment.