Skip to content

Commit

Permalink
renamed DeleteNetworkInterface to DeleteLinkByName
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Jul 1, 2021
1 parent 11dcdf1 commit e4d1c7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/containerd/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (c *ContainerdRuntime) DeleteNet(context.Context) error {
log.Infof("Skipping deletion of bridge '%s'", bridgename)
return nil
}
return utils.DeleteNetworkInterface(bridgename)
return utils.DeleteLinkByName(bridgename)
}

func (c *ContainerdRuntime) PullImageIfRequired(ctx context.Context, imagename string) error {
Expand Down
2 changes: 1 addition & 1 deletion utils/netlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func CheckBrInUse(brname string) (bool, error) {
return InUse, nil
}

func DeleteNetworkInterface(name string) error {
func DeleteLinkByName(name string) error {
l, err := netlink.LinkByName(name)
if err != nil {
return err
Expand Down

0 comments on commit e4d1c7d

Please sign in to comment.