From 9190a0833265cc336c420261b940dae92cae2a1a Mon Sep 17 00:00:00 2001 From: Dave Marquardt Date: Fri, 6 Jan 2023 10:25:04 -0600 Subject: [PATCH] More AIX permanent ARP entry fixes --- jc/parsers/arp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jc/parsers/arp.py b/jc/parsers/arp.py index f816283f..86f9ba77 100644 --- a/jc/parsers/arp.py +++ b/jc/parsers/arp.py @@ -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)