diff --git a/pkg/cni-plugin/plugin/types.go b/pkg/cni-plugin/plugin/types.go index ef0ce46e1..e91696340 100644 --- a/pkg/cni-plugin/plugin/types.go +++ b/pkg/cni-plugin/plugin/types.go @@ -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 }