Introduction of netname functionality for network devices

This commit is contained in:
Gregory Kurtzer
2021-10-23 07:12:57 -07:00
parent 23ddc27b93
commit 1370932cd3
19 changed files with 301 additions and 240 deletions

View File

@@ -42,8 +42,10 @@ type NodeConf struct {
}
type NetDevs struct {
Name string
Type string `yaml:"type,omitempty"`
Default bool `yaml:"default"`
OnBoot bool `yaml:"onboot"`
Device string `yaml:"device"`
Hwaddr string
Ipaddr string
IpCIDR string
@@ -93,8 +95,10 @@ type NodeInfo struct {
}
type NetDevEntry struct {
Name Entry
Type Entry `yaml:"type,omitempty"`
Default Entry `yaml:"default"`
OnBoot Entry `yaml:"onboot"`
Device Entry `yaml:"device"`
Hwaddr Entry
Ipaddr Entry
IpCIDR Entry