Skip to content

Commit

Permalink
other CNI can be used as the default network
Browse files Browse the repository at this point in the history
  • Loading branch information
fanriming committed Nov 6, 2021
1 parent 62df341 commit 3b6b503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cni/cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func cmdAdd(args *skel.CmdArgs) error {
if err != nil {
return err
}
if args.IfName == "eth0" {
if netConf.Type == util.CniTypeName && args.IfName == "eth0" {
netConf.Provider = util.OvnProvider
}

Expand Down Expand Up @@ -126,7 +126,7 @@ func cmdDel(args *skel.CmdArgs) error {
if err != nil {
return err
}
if args.IfName == "eth0" {
if netConf.Type == util.CniTypeName && args.IfName == "eth0" {
netConf.Provider = util.OvnProvider
}

Expand Down

0 comments on commit 3b6b503

Please sign in to comment.