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:
@ -247,8 +247,9 @@ def parse(
|
|||||||
'address': splitline[1].lstrip('(').rstrip(')'),
|
'address': splitline[1].lstrip('(').rstrip(')'),
|
||||||
'hwtype': None,
|
'hwtype': None,
|
||||||
'hwaddress': None,
|
'hwaddress': None,
|
||||||
'iface': splitline[5],
|
|
||||||
}
|
}
|
||||||
|
if len(splitline) >= 5:
|
||||||
|
output_line['iface'] = splitline[5]
|
||||||
|
|
||||||
raw_output.append(output_line)
|
raw_output.append(output_line)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user