View Source VintageNet.InterfaceRenamer behaviour (vintage_net v0.13.5)

Wrapper around the ip command for renaming interfaces

Summary

Functions

Renames an interface

Callbacks

Link to this callback

rename_interface(ifname, ifname)

View Source
@callback rename_interface(VintageNet.ifname(), VintageNet.ifname()) ::
  :ok | {:error, String.t()}

Functions

Link to this function

rename(ifname, rename_to)

View Source
@spec rename(VintageNet.ifname(), VintageNet.ifname()) :: :ok | {:error, String.t()}

Renames an interface