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

@ -80,7 +80,7 @@ func createSubnet(db *badger.DB, subnetName string, d subnetData, backend dhcpba
if err != nil {
return fmt.Errorf("vtep of %s: %w", d.localIface, err)
}
if gatewayMAC, err = hostGatewayMAC(vtep); err != nil {
if gatewayMAC, err = netif.HostMAC(netif.RoleHostGateway, vtep); err != nil {
return err
}
}