1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

Fix interface parsing for incomplete ARP entry on AIX

This commit is contained in:
Dave Marquardt
2023-01-06 10:16:13 -06:00
parent 19a67daabf
commit 3582497ed4

View File

@ -247,8 +247,9 @@ def parse(
'address': splitline[1].lstrip('(').rstrip(')'),
'hwtype': None,
'hwaddress': None,
'iface': splitline[5],
}
if len(splitline) >= 5:
output_line['iface'] = splitline[5]
raw_output.append(output_line)