Skip to content

Commit

Permalink
BugFix: EOS show ip arp - Allow for N/A in age field (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers authored May 21, 2020
1 parent 034b7fc commit 805b498
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/arista_eos_show_ip_arp.textfsm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Value ADDRESS (\d+\.\d+\.\d+\.\d+)
Value AGE (\d+)
Value AGE ((\d+|N\/A))
Value MAC (\S+)
Value INTERFACE (.*)

Expand Down
9 changes: 5 additions & 4 deletions tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.raw
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Address Age (min) Hardware Addr Interface
172.25.0.2 0 004c.6211.021e Vlan101, Port-Channel2
172.22.0.1 0 004c.6214.3699 Vlan1000, Port-Channel1
172.22.0.2 0 004c.6219.a0f3 Ethernet1
Address Age (min) Hardware Addr Interface
172.25.0.2 0 004c.6211.021e Vlan101, Port-Channel2
172.22.0.1 0 004c.6214.3699 Vlan1000, Port-Channel1
172.22.0.2 0 004c.6219.a0f3 Ethernet1
10.10.1.1 N/A 0002.00ff.0001 Vlan1, not learned
4 changes: 4 additions & 0 deletions tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ parsed_sample:
age: "0"
mac: "004c.6219.a0f3"
interface: "Ethernet1"
- address: "10.10.1.1"
age: "N/A"
mac: "0002.00ff.0001"
interface: "Vlan1, not learned"

0 comments on commit 805b498

Please sign in to comment.