Add an 'address' field to devices. Can be hostname, ipv4 or ipv6

This commit is contained in:
Pim van Pelt
2025-07-06 18:17:32 +02:00
parent 4a95221732
commit d212abcc87
5 changed files with 180 additions and 18 deletions

View File

@ -24,6 +24,7 @@ type Device struct {
User string `yaml:"user"`
Type string `yaml:"type,omitempty"`
Commands []string `yaml:"commands,omitempty"`
Address string `yaml:"address,omitempty"`
}
func readYAMLFile(path string) (map[string]interface{}, error) {