mirror of
https://github.com/rancher/os.git
synced 2025-09-06 01:01:43 +00:00
Add wifi support
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
package netconf
|
||||
|
||||
type NetworkConfig struct {
|
||||
PreCmds []string `yaml:"pre_cmds,omitempty"`
|
||||
DHCPTimeout int `yaml:"dhcp_timeout,omitempty"`
|
||||
DNS DNSConfig `yaml:"dns,omitempty"`
|
||||
Interfaces map[string]InterfaceConfig `yaml:"interfaces,omitempty"`
|
||||
PostCmds []string `yaml:"post_cmds,omitempty"`
|
||||
HTTPProxy string `yaml:"http_proxy,omitempty"`
|
||||
HTTPSProxy string `yaml:"https_proxy,omitempty"`
|
||||
NoProxy string `yaml:"no_proxy,omitempty"`
|
||||
PreCmds []string `yaml:"pre_cmds,omitempty"`
|
||||
DHCPTimeout int `yaml:"dhcp_timeout,omitempty"`
|
||||
DNS DNSConfig `yaml:"dns,omitempty"`
|
||||
Interfaces map[string]InterfaceConfig `yaml:"interfaces,omitempty"`
|
||||
PostCmds []string `yaml:"post_cmds,omitempty"`
|
||||
HTTPProxy string `yaml:"http_proxy,omitempty"`
|
||||
HTTPSProxy string `yaml:"https_proxy,omitempty"`
|
||||
NoProxy string `yaml:"no_proxy,omitempty"`
|
||||
WifiNetworks map[string]WifiNetworkConfig `yaml:"wifi_networks,omitempty"`
|
||||
}
|
||||
|
||||
type InterfaceConfig struct {
|
||||
@@ -27,9 +28,32 @@ type InterfaceConfig struct {
|
||||
PostUp []string `yaml:"post_up,omitempty"`
|
||||
PreUp []string `yaml:"pre_up,omitempty"`
|
||||
Vlans string `yaml:"vlans,omitempty"`
|
||||
WifiNetwork string `yaml:"wifi_network,omitempty"`
|
||||
}
|
||||
|
||||
type DNSConfig struct {
|
||||
Nameservers []string `yaml:"nameservers,flow,omitempty"`
|
||||
Search []string `yaml:"search,flow,omitempty"`
|
||||
}
|
||||
|
||||
type WifiNetworkConfig struct {
|
||||
Address string `yaml:"address,omitempty"`
|
||||
Gateway string `yaml:"gateway,omitempty"`
|
||||
ScanSSID int `yaml:"scan_ssid,omitempty"`
|
||||
SSID string `yaml:"ssid,omitempty"`
|
||||
PSK string `yaml:"psk,omitempty"`
|
||||
Priority int `yaml:"priority,omitempty"`
|
||||
Pairwise string `yaml:"pairwise,omitempty"`
|
||||
Group string `yaml:"group,omitempty"`
|
||||
Eap string `yaml:"eap,omitempty"`
|
||||
Identity string `yaml:"identity,omitempty"`
|
||||
AnonymousIdentity string `yaml:"anonymous_identity,omitempty"`
|
||||
CaCerts []string `yaml:"ca_certs,omitempty"`
|
||||
ClientCerts []string `yaml:"client_certs,omitempty"`
|
||||
PrivateKeys []string `yaml:"private_keys,omitempty"`
|
||||
PrivateKeyPasswds []string `yaml:"private_key_passwds,omitempty"`
|
||||
Phases []string `yaml:"phases,omitempty"`
|
||||
EapolFlags int `yaml:"eapol_flags,omitempty"`
|
||||
KeyMgmt string `yaml:"key_mgmt,omitempty"`
|
||||
Password string `yaml:"password,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user