From af5045d9d9b77648a006cd2a7cab4ec6324221b2 Mon Sep 17 00:00:00 2001 From: Kirk Byers Date: Thu, 21 May 2020 10:21:57 -0700 Subject: [PATCH] BugFix: EOS show ip arp - Allow for N/A in age field (#717) --- templates/arista_eos_show_ip_arp.textfsm | 2 +- tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.raw | 9 +++++---- tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.yml | 4 ++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/templates/arista_eos_show_ip_arp.textfsm b/templates/arista_eos_show_ip_arp.textfsm index 749e15177c..5f3038f8ef 100644 --- a/templates/arista_eos_show_ip_arp.textfsm +++ b/templates/arista_eos_show_ip_arp.textfsm @@ -1,5 +1,5 @@ Value ADDRESS (\d+\.\d+\.\d+\.\d+) -Value AGE (\d+) +Value AGE ((\d+|N\/A)) Value MAC (\S+) Value INTERFACE (.*) diff --git a/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.raw b/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.raw index 339b789263..405404d552 100644 --- a/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.raw +++ b/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.raw @@ -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 diff --git a/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.yml b/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.yml index 71ac508167..10afb89cf0 100644 --- a/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.yml +++ b/tests/arista_eos/show_ip_arp/arista_eos_show_ip_arp.yml @@ -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"