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

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
@callback 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
@spec rename(VintageNet.ifname(), VintageNet.ifname()) :: :ok | {:error, String.t()}

Renames an interface