14.04.2026 Update

This commit is contained in:
2026-04-15 11:38:26 +03:00
parent 6aa0349f5d
commit f50d79fab3
45 changed files with 5645 additions and 751 deletions

View File

@@ -13,14 +13,15 @@ const ConfigFile = "/etc/network/interfaces"
// InterfaceConfig represents one stanza in /etc/network/interfaces.
type InterfaceConfig struct {
Name string `json:"name"`
Label string `json:"label,omitempty"` // display name, stored in config.yaml only
Auto bool `json:"auto"`
Label string `json:"label,omitempty"`
Type string `json:"type,omitempty"` // wan or lan
Auto bool `json:"auto"`
Mode string `json:"mode"` // dhcp, static, loopback, manual
Address string `json:"address,omitempty"` // static only
Netmask string `json:"netmask,omitempty"`
Gateway string `json:"gateway,omitempty"`
DNS []string `json:"dns,omitempty"`
Extra map[string]string `json:"extra,omitempty"` // other raw options
Extra map[string]string `json:"extra,omitempty"`
}
// --- Pending config store (in-memory, not yet written to disk) ---