Skip to content

Commit

Permalink
cmd/hypervisor: report MTU when reporting bridge details.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgooch committed Oct 12, 2024
1 parent 078b39e commit 4320dd8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/hypervisor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"os"
"path/filepath"
"strings"
"syscall"
"time"

Expand Down Expand Up @@ -157,10 +156,9 @@ func run() {
if *dhcpServerOnBridgesOnly {
dhcpInterfaces = append(dhcpInterfaces, bridge.Name)
}
if !strings.HasPrefix(bridge.Name, "br@") {
vlanIdToBridge[uint(vlanId)] = bridge.Name
logger.Printf("Bridge: %s, VLAN Id: %d\n", bridge.Name, vlanId)
}
vlanIdToBridge[uint(vlanId)] = bridge.Name
logger.Printf("Bridge: %s, VLAN Id: %d, MTU: %d\n",
bridge.Name, vlanId, bridge.MTU)
}
dhcpServer, err := dhcpd.New(dhcpInterfaces,
filepath.Join(*stateDir, "dynamic-leases.json"), logger)
Expand Down

0 comments on commit 4320dd8

Please sign in to comment.