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