1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

More AIX permanent ARP entry fixes

This commit is contained in:
Dave Marquardt
2023-01-06 10:25:04 -06:00
parent 3fae50e305
commit 9190a08332

View File

@ -238,7 +238,9 @@ def parse(
}
# AIX tells what bucket the entry is in, and no interface
# information
if 'in' not in splitline[6]:
if 'permanent' in splitline:
output_line['permanent'] = True
elif 'in' not in splitline[6]:
output_line['iface'] = splitline[6]
else:
@ -248,9 +250,7 @@ def parse(
'hwtype': None,
'hwaddress': None,
}
if 'permanent' in splitline:
output_line['permanent'] = True
elif len(splitline) >= 5:
if len(splitline) >= 5:
output_line['iface'] = splitline[5]
raw_output.append(output_line)