Skip to content

Commit 2165a68

Browse files
authored
Merge pull request #883 from netenglabs/iosxe-arp-parser-fix
IOS ARP: handle age column not being a number, but -
2 parents 3f8b192 + a422110 commit 2165a68

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

suzieq/config/textfsm_templates/iosxe_show_arp.tfsm

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ Value macaddr ([a-f0-9.]+)
33
Value type (\S+)
44
Value oif (\S+)
55
Value protocol (\S+)
6+
Value _age (\d+|-)
67

78
Start
8-
^${protocol}\s+${ipAddress}\s+\d+\s+${macaddr}\s+${type}\s+${oif}.*$$ -> Record
9+
^${protocol}\s+${ipAddress}\s+${_age}\s+${macaddr}\s+${type}\s+${oif}.*$$ -> Record
910
^Protocol
1011

1112
#Protocol Address Age (min) Hardware Addr Type Interface
1213
#Internet 10.127.0.0 - 4438.3900.0001 ARPA GigabitEthernet0/1
1314
#Internet 10.127.0.1 4 4438.3900.0002 ARPA GigabitEthernet0/1
1415
#Internet 10.127.0.2 - 4438.3900.0003 ARPA GigabitEthernet0/2
1516
#Internet 10.127.0.3 4 4438.3900.0004 ARPA GigabitEthernet0/2
16-
#Internet 10.127.0.0 196 4438.3900.0001 ARPA GigabitEthernet2
17-
#Internet 10.127.0.1 - 4438.3900.0002 ARPA GigabitEthernet2
18-
#Internet 10.127.0.2 173 4438.3900.0003 ARPA GigabitEthernet3
19-
#Internet 10.127.0.3 - 4438.3900.0004 ARPA GigabitEthernet3
17+
#Internet 10.127.1.0 196 4438.3900.0001 ARPA GigabitEthernet2
18+
#Internet 10.127.1.1 - 4438.3900.0002 ARPA GigabitEthernet2
19+
#Internet 10.127.1.2 173 4438.3900.0003 ARPA GigabitEthernet3
20+
#Internet 10.127.1.3 - 4438.3900.0004 ARPA GigabitEthernet3

0 commit comments

Comments
 (0)