f-28: fix: dhcp do not emit local default route
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
32b78a84f9
commit
2504b435a3
4 changed files with 29 additions and 13 deletions
|
|
@ -136,10 +136,11 @@ func setupVxlanHost(d subnetData, vethE string) error {
|
|||
|
||||
func startDHCP(db *badger.DB, subnetName string, d subnetData) error {
|
||||
conf := dhcp.Config{
|
||||
Network: d.cidr,
|
||||
Gateway: d.interfaceIP,
|
||||
Name: d.vpc + "_" + d.bridge,
|
||||
ConfDir: "/etc/dnsmasq.d",
|
||||
Network: d.cidr,
|
||||
Gateway: d.interfaceIP,
|
||||
DefaultRoute: d.mode == "vxlan",
|
||||
Name: d.vpc + "_" + d.bridge,
|
||||
ConfDir: "/etc/dnsmasq.d",
|
||||
}
|
||||
_, entries, err := dhcp.GenerateConfig(conf)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue