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:
parent
8be70c0f50
commit
2a4974ca37
4 changed files with 8 additions and 7 deletions
|
|
@ -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]) }})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue