VintageNet.PredictableInterfaceName.precheck

You're seeing just the function precheck, go back to VintageNet.PredictableInterfaceName module for more information.

Specs

precheck(VintageNet.ifname()) :: :ok | {:error, :not_predictable_interface_name}

Called before interface configuration.

First checks if vintage_net is configured to use predictable interface names, if so checks the given ifname for "common" naming schemes.

Instead of a boolean this function returns :ok on success, and {:error, not_predictable_interface_name} on failure. This is done to allow usage in with chains.