feature-21, ajoute de la gestion des subnets #24

Manually merged
nicolas.boufideline merged 44 commits from feature-21 into main 2026-04-26 14:16:57 +00:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 066b90dff4 - Show all commits

f-21: code: add interface name in config

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
GnomeZworc 2026-04-21 21:27:19 +02:00
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -1,2 +1,7 @@
database:
path: "/var/lib/two/data/"
path: "/var/lib/two/data/"
interfaces:
vms: br-000000
internet: br-000000
admin: br-000000

View file

@ -20,6 +20,7 @@ type Config struct {
Count int `mapstructure:"count"`
BufferSize int `mapstructure:"buffer_size"`
} `mapstructure:"worker"`
Interfaces map[string]string `mapstructure:"interfaces"`
}
func LoadConfig(path string) (*Config, error) {