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
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue