f-41: vm: /32 de chaque interface annoncé dans la VRF #41

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-11 20:32:16 +02:00
commit 03029eabe8
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
5 changed files with 125 additions and 0 deletions

View file

@ -14,6 +14,7 @@ import (
"git.g3e.fr/syonad/two/internal/netns"
"git.g3e.fr/syonad/two/internal/qmp"
"git.g3e.fr/syonad/two/internal/state"
"git.g3e.fr/syonad/two/internal/vpc"
"github.com/dgraph-io/badger/v4"
)
@ -38,6 +39,10 @@ func StopVM(db *badger.DB, name string, cfg *configuration.Config) error {
return err
}
if err := applyHostRoutes(db, d, vpc.WithdrawRoute); err != nil {
return err
}
socketPath := filepath.Join(cfg.QEMU.QMPDir, name+".sock")
if _, err := os.Stat(socketPath); err == nil {