vintage_net v0.6.2 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 tuplesrestart_strategy- the restart strategy for the list ofchild_specs. I.e., `:one_for_one | :one_for_all | :rest_for_onechild_specs- a set of child_specs for GenServers to start up and superviseup_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
t()
View Sourcet() :: %VintageNet.Interface.RawConfig{
child_specs: [Supervisor.child_spec() | {module(), term()} | module()],
cleanup_files: [Path.t()],
down_cmd_millis: non_neg_integer(),
down_cmds: [command()],
files: [file_contents()],
ifname: VintageNet.ifname(),
require_interface: boolean(),
restart_strategy: Supervisor.strategy(),
retry_millis: non_neg_integer(),
source_config: map(),
type: atom(),
up_cmd_millis: non_neg_integer(),
up_cmds: [command()]
}