Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // The input formats we accept. internal is the intermediate format netwrangler uses. SrcFormats = []string{"netplan", "internal"} // The output formats we can handle. internal is the intermediate format netwrangler uses. DestFormats = []string{"systemd", "rhel", "internal"} )
Functions ¶
func Compile ¶
Compile transforms network configuration settings from srcLoc in srcFmt into destFmt at destLoc, using phys as the base physical interfaces to build on. if bindMacs is true, the generated format will bind to interface MAC addresses (or other unique physical addresses), otherwise the interface names at srcLoc must match what is present on the system at the time netwrangler is run.
func GatherPhys ¶
GatherPhys gathers the physical nics that the system knows about. It is currently only supported on Linux systems.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package netplan implements support for reading Netplan.io compatible yaml formatted config files.
|
Package netplan implements support for reading Netplan.io compatible yaml formatted config files. |
Package rhel implements support for writing out Redhat network config files in /etc/sysconfig/network-scripts/ifcfg-*
|
Package rhel implements support for writing out Redhat network config files in /etc/sysconfig/network-scripts/ifcfg-* |
Package systemd implements support for writing out a systemd-networkd compatible set of network config files.
|
Package systemd implements support for writing out a systemd-networkd compatible set of network config files. |
Package util defines common models and utility functions.
|
Package util defines common models and utility functions. |
Click to show internal directories.
Click to hide internal directories.