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

Wrapper around the ip command for renaming interfaces

Link to this section Summary

Link to this section Callbacks

Link to this callback

rename_interface(ifname, ifname)

View Source


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

Renames an interface