f-88: fip: entrée FDB de l'IP flottante posée par remplacement #88

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-30 00:26:00 +01:00
commit 2a4974ca37
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
4 changed files with 8 additions and 7 deletions

View file

@ -157,7 +157,7 @@ func create(h host, f floatingIP) error {
rules := nft.FloatingIP{Iface: f.iface, Public: f.public.IP.String(), Private: f.private.String()}
steps := []step{
{"create " + f.iface, func() error { return h.CreateMacvlan(ns, f.iface, publicBridge, f.mac) }},
{"local fdb entry " + f.mac.String(), func() error { return h.BridgeAddLocalMAC(ns, publicBridge, f.mac) }},
{"local fdb entry " + f.mac.String(), func() error { return h.BridgeSetLocalMAC(ns, publicBridge, f.mac) }},
}
for _, sc := range sysctls(f.iface) {
steps = append(steps, step{sc[0], func() error { return h.Sysctl(ns, sc[0], sc[1]) }})