Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,10 @@ func (d *Driver) getIPByMacFromSettings(mac string) (string, error) {
}
statusFile := fmt.Sprintf(dnsmasqStatus, bridge_name)
data, err := ioutil.ReadFile(statusFile)
if err != nil {
log.Warnf("Failed to read dnsmasq lease status: %s", err)
return "", err
}
type Lease struct {
Ip_address string `json:"ip-address"`
Mac_address string `json:"mac-address"`
Expand Down