From 2ef56788158e9f31a0f43d68cabed9fd0c42c93f Mon Sep 17 00:00:00 2001 From: Josh VanDeraa Date: Fri, 7 May 2021 14:47:17 -0500 Subject: [PATCH] Adds monitoring port for show interfaces status --- .../templates/cisco_ios_show_interfaces_status.textfsm | 2 +- .../cisco_ios_show_interfaces_status.raw | 1 + .../cisco_ios_show_interfaces_status.yml | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ntc_templates/templates/cisco_ios_show_interfaces_status.textfsm b/ntc_templates/templates/cisco_ios_show_interfaces_status.textfsm index 9fafcd9b62..88cd95a5cf 100644 --- a/ntc_templates/templates/cisco_ios_show_interfaces_status.textfsm +++ b/ntc_templates/templates/cisco_ios_show_interfaces_status.textfsm @@ -1,6 +1,6 @@ Value PORT (\S+) Value NAME (.+?) -Value STATUS (err-disabled|disabled|connected|notconnect|inactive|up|down) +Value STATUS (err-disabled|disabled|connected|notconnect|inactive|up|down|monitoring) Value VLAN (\S+) Value DUPLEX (\S+) Value SPEED (\S+) diff --git a/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.raw b/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.raw index a6f3180abe..8f460276cc 100644 --- a/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.raw +++ b/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.raw @@ -16,5 +16,6 @@ Gi1/0/14 Half Duplex 2950-S notconnect 16 a-half auto Not Present Gi1/0/15 Multi Space to the notconnect 16 a-half auto 10/100BaseTX Gi1/0/16 Multi Space to the err-disabled 16 a-half auto 10/100BaseTX Gi1/0/17 Multi Space disabled 16 a-half auto 10/100BaseTX +Gi1/0/18 Monitoring Port monitoring routed a-full auto 10/100/1000BaseT Fa1/6 test notconnect 1 auto auto 10/100BaseTX Po1 ethchl connected trunk a-full a-1000 diff --git a/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.yml b/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.yml index 23df2630fc..ab567b4694 100644 --- a/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.yml +++ b/tests/cisco_ios/show_interfaces_status/cisco_ios_show_interfaces_status.yml @@ -136,6 +136,14 @@ parsed_sample: speed: "auto" type: "10/100BaseTX" fc_mode: "" + - port: "Gi1/0/18" + name: "Monitoring Port" + status: "monitoring" + vlan: "routed" + duplex: "a-full" + speed: "auto" + type: "10/100/1000BaseT" + fc_mode: "" - port: "Fa1/6" name: "test" status: "notconnect"