1
0
mirror of https://github.com/rancher/os.git synced 2025-09-08 18:20:32 +00:00

Add 4glte build script

This commit is contained in:
Jason-ZW
2018-12-07 14:54:49 +08:00
parent 99118f5fad
commit ef792df107
5 changed files with 53 additions and 12 deletions

View File

@@ -1,16 +1,16 @@
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"`
WifiNetworks map[string]WifiNetworkConfig `yaml:"wifi_networks,omitempty"`
ModemNetworks []ModemNetworkConfig `yaml:"modem_networks,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"`
ModemNetworks map[string]ModemNetworkConfig `yaml:"modem_networks,omitempty"`
}
type InterfaceConfig struct {
@@ -61,6 +61,5 @@ type WifiNetworkConfig struct {
type ModemNetworkConfig struct {
Apn string `yaml:"apn"`
Interface string `yaml:"interface"`
ExtraArgs string `yaml:"extra_args,omitempty"`
}