f-41: netif: HostMAC et MaxVNI partagés (RMAC, MAC de gateway, borne des VNI) #41

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-12 12:23:48 +02:00
commit 387a082c02
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
10 changed files with 99 additions and 91 deletions

View file

@ -220,11 +220,11 @@ func TestDeleteL3RequiresTheBGPSection(t *testing.T) {
}
func TestRouterMAC(t *testing.T) {
mac, err := routerMAC(net.ParseIP("192.168.14.11"))
mac, err := RouterMAC(net.ParseIP("192.168.14.11"))
if err != nil || mac.String() != "02:02:c0:a8:0e:0b" {
t.Errorf("routerMAC = %v, %v", mac, err)
t.Errorf("RouterMAC = %v, %v", mac, err)
}
if _, err := routerMAC(net.ParseIP("fd00::1")); err == nil {
if _, err := RouterMAC(net.ParseIP("fd00::1")); err == nil {
t.Error("VTEP IPv6 accepté")
}
}