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:
parent
42d763f15e
commit
853a1b8377
10 changed files with 99 additions and 91 deletions
|
|
@ -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é")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue