Documentation ¶
Overview ¶
Package netplan implements support for reading Netplan.io compatible yaml formatted config files. Missing parts are:
- This package does not care about or respect the hierarchical configuration files that netplan.io supports. netwrangler is designed to run as part of initial system configuration (either initial OS install or image deployment) with the network layout for the system being fed to it from an external source (dr-provision or some other provisioning engine).
- There is no support for nic renaming or MAC address reassignment. Support for these features may be added in a future release.
- There is no support for wifi or for separate backend renderers on a per-interface basis. The former may be added in a future release, the latter is never likely to be added.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Netplan ¶
type Netplan struct { Network struct { Version int `json:"version"` Renderer string `json:"renderer,omitempty"` Ethernets map[string]interface{} `json:"ethernets,omitempty"` Bridges map[string]interface{} `json:"bridges,omitempty"` Bonds map[string]interface{} `json:"bonds,omitempty"` Vlans map[string]interface{} `json:"vlans,omitempty"` Wifis map[string]interface{} `json:"wifis,omitempty"` } `json:"network"` // contains filtered or unexported fields }
Netplan is the basic struct for netplan.io style network configs.
Click to show internal directories.
Click to hide internal directories.