vintage_net v0.3.0 VintageNet.Interface.RawConfig View Source
Raw configuration for an interface
This struct contains the low-level instructions for how to configure and unconfigure an interface.
Fields:
ifname- the name of the interface (e.g.,"eth0")type- the type of network interface (aka the module that created the config)source_config- the configuration that generated this onerequire_interface- require the interface to exist in the system before configuringretry_millis- if bringing the interface up fails, wait this amount of time before retryingfiles- a list of file path, content tuplesup_cmd_millis- the maximum amount of time to allow the up command list to takeup_cmds- a list of commands to run to configure the interfacedown_cmd_millis- the maximum amount of time to allow the down command list to takedown_cmds- a list of commands to run to unconfigure the interfacecleanup_files- additional files to delete (the files listed infilesare deleted too)
Link to this section Summary
Link to this section Types
Link to this type
command() View Source
Link to this type
file_contents() View Source
Link to this type
t()
View Source
t()
View Source
t() :: %VintageNet.Interface.RawConfig{
child_specs: [Supervisor.child_spec()],
cleanup_files: [Path.t()],
down_cmd_millis: non_neg_integer(),
down_cmds: [command()],
files: [file_contents()],
ifname: VintageNet.ifname(),
require_interface: boolean(),
retry_millis: non_neg_integer(),
source_config: map(),
type: atom(),
up_cmd_millis: non_neg_integer(),
up_cmds: [command()]
}
t() :: %VintageNet.Interface.RawConfig{
child_specs: [Supervisor.child_spec()],
cleanup_files: [Path.t()],
down_cmd_millis: non_neg_integer(),
down_cmds: [command()],
files: [file_contents()],
ifname: VintageNet.ifname(),
require_interface: boolean(),
retry_millis: non_neg_integer(),
source_config: map(),
type: atom(),
up_cmd_millis: non_neg_integer(),
up_cmds: [command()]
}
Link to this section Functions
Link to this function