From 05526e8f0024911702ec86e0514ca447a6b53ef9 Mon Sep 17 00:00:00 2001 From: mouse91 Date: Fri, 6 Oct 2023 15:34:07 +0100 Subject: [PATCH] Support unknown protocol in arista_eos_show_interfaces_description (#1540) Co-authored-by: Mouse <358657+mouse91@users.noreply.github.com> --- .../templates/arista_eos_show_interfaces_description.textfsm | 2 +- .../arista_eos_show_interfaces_description.raw | 1 + .../arista_eos_show_interfaces_description.yml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm b/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm index 4bb0b2f4b0..5bc12d0377 100644 --- a/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm +++ b/ntc_templates/templates/arista_eos_show_interfaces_description.textfsm @@ -1,6 +1,6 @@ Value PORT (\S+) Value STATUS (up|down|admin\s+down) -Value PROTOCOL (up|down|lowerlayerdown|notpresent) +Value PROTOCOL (up|down|lowerlayerdown|notpresent|unknown) Value DESCRIP (\S.*?) Start diff --git a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw index bc0cb918a4..5f17040e0a 100644 --- a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw +++ b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.raw @@ -17,4 +17,5 @@ Et14 down notpresent Ma1 down down Management Po1 up up MLAG peer link Po101 up up ServerRAD +Tu8 down unknown Vl4094 up up MLAG local int diff --git a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml index 48570252f8..b6d4e25ded 100644 --- a/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml +++ b/tests/arista_eos/show_interfaces_description/arista_eos_show_interfaces_description.yml @@ -72,6 +72,10 @@ parsed_sample: status: "up" protocol: "up" descrip: "ServerRAD" + - port: "Tu8" + status: "down" + protocol: "unknown" + descrip: "" - port: "Vl4094" status: "up" protocol: "up"