-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
630 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
package service | ||
package dto | ||
|
||
// { | ||
// "name": "eth0", | ||
// "interface": "eth0", | ||
// "address": "192.168.1.100", | ||
// "netmask": "255.255.255.0", | ||
// "gateway": "192.168.1.1", | ||
// "dns": ["8.8.8.8", "8.8.4.4"], | ||
// "dhcp_enabled": false | ||
// } | ||
|
||
type EtcNetworkConfig struct { | ||
Name string `json:"name,omitempty"` | ||
Interface string `json:"interface,omitempty"` | ||
Address string `json:"address,omitempty"` | ||
Netmask string `json:"netmask,omitempty"` | ||
Gateway string `json:"gateway,omitempty"` | ||
DNS []string `json:"dns,omitempty"` | ||
DHCPEnabled bool `json:"dhcp_enabled,omitempty"` | ||
Name string `json:"name"` // eth1 eth0 | ||
Interface string `json:"interface"` // eth1 eth0 | ||
Address string `json:"address"` | ||
Netmask string `json:"netmask"` | ||
Gateway string `json:"gateway"` | ||
DNS []string `json:"dns"` | ||
DHCPEnabled bool `json:"dhcp_enabled"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package service | ||
package dto | ||
|
||
type hwInterface struct { | ||
Dhcp4 bool `yaml:"dhcp4" json:"dhcp4,omitempty"` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.