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

Wrapper around the ip command for renaming interfaces

Link to this section Summary

Functions

Renames an interface

Link to this section Callbacks

Link to this callback

rename_interface(ifname, ifname)

View Source

Specs

rename_interface(VintageNet.ifname(), VintageNet.ifname()) ::
  :ok | {:error, String.t()}

Link to this section Functions

Link to this function

rename(ifname, rename_to)

View Source

Specs

rename(VintageNet.ifname(), VintageNet.ifname()) :: :ok | {:error, String.t()}

Renames an interface