We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3f3f42 commit 3f9b993Copy full SHA for 3f9b993
scenarios/aws/microVMs/microvms/network.go
@@ -259,6 +259,9 @@ func parseArpDhcpLeases() ([]dhcpLease, error) {
259
fmt.Printf("warning: error parsing arp line: %v\n", err)
260
continue
261
}
262
+ if lease.mac == "" {
263
+ continue
264
+ }
265
266
leases = append(leases, lease)
267
@@ -275,6 +278,10 @@ func parseArpLine(line string) (dhcpLease, error) {
275
278
276
279
277
280
ip := strings.Trim(parts[1], "()")
281
+ if parts[3] == "(incomplete)" {
282
+ return dhcpLease{}, nil
283
284
+
285
mac, err := normalizeMAC(parts[3])
286
if err != nil {
287
return dhcpLease{}, fmt.Errorf("error normalizing MAC address: %w", err)
0 commit comments