From 3aaf2f5b77eeec1bbb8d22a7e3967118f03af384 Mon Sep 17 00:00:00 2001 From: pskliarenko <“pskliarenko@bsh.ru”> Date: Mon, 6 Nov 2023 19:11:07 +0400 Subject: [PATCH] Fix value names --- ...o_s300_show_interfaces_description.textfsm | 4 +- ...cisco_s300_show_interfaces_description.yml | 72 +++++++++---------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/ntc_templates/templates/cisco_s300_show_interfaces_description.textfsm b/ntc_templates/templates/cisco_s300_show_interfaces_description.textfsm index ff61442125..b407a0e09e 100644 --- a/ntc_templates/templates/cisco_s300_show_interfaces_description.textfsm +++ b/ntc_templates/templates/cisco_s300_show_interfaces_description.textfsm @@ -10,12 +10,12 @@ Start Column1 ^(\s*-*)*\s*$$ ^\s*Ch\s+Description\s*$$ -> Column2 - ^\s*${PORT}(\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*${INTERFACE}(\s+${DESCRIPTION})?\s*$$ -> Record ^\s*$$ ^. -> Error Column2 ^(\s*-*)*\s*$$ - ^\s*${PORT}(\s+${DESCRIPTION})?\s*$$ -> Record + ^\s*${INTERFACE}(\s+${DESCRIPTION})?\s*$$ -> Record ^\s*$$ ^. -> Error diff --git a/tests/cisco_s300/show_interfaces_description/cisco_s300_show_interfaces_description.yml b/tests/cisco_s300/show_interfaces_description/cisco_s300_show_interfaces_description.yml index 294807380c..55075729ef 100644 --- a/tests/cisco_s300/show_interfaces_description/cisco_s300_show_interfaces_description.yml +++ b/tests/cisco_s300/show_interfaces_description/cisco_s300_show_interfaces_description.yml @@ -1,74 +1,74 @@ --- parsed_sample: - description: "Test" - port: "fa1" + interface: "fa1" - description: "Printer" - port: "fa2" + interface: "fa2" - description: "Socket_7/7" - port: "fa3" + interface: "fa3" - description: "Socket_7/3" - port: "fa4" + interface: "fa4" - description: "" - port: "fa5" + interface: "fa5" - description: "" - port: "fa6" + interface: "fa6" - description: "" - port: "fa7" + interface: "fa7" - description: "Camera" - port: "fa8" + interface: "fa8" - description: "Camera" - port: "fa9" + interface: "fa9" - description: "Camera" - port: "fa10" + interface: "fa10" - description: "" - port: "fa11" + interface: "fa11" - description: "Socket_7/2" - port: "fa12" + interface: "fa12" - description: "Socket_7/4" - port: "fa13" + interface: "fa13" - description: "Socket_7/8" - port: "fa14" + interface: "fa14" - description: "" - port: "fa15" + interface: "fa15" - description: "" - port: "fa16" + interface: "fa16" - description: "" - port: "fa17" + interface: "fa17" - description: "" - port: "fa18" + interface: "fa18" - description: "" - port: "fa19" + interface: "fa19" - description: "" - port: "fa20" + interface: "fa20" - description: "" - port: "fa21" + interface: "fa21" - description: "" - port: "fa22" + interface: "fa22" - description: "AP" - port: "fa23" + interface: "fa23" - description: "AP" - port: "fa24" + interface: "fa24" - description: "" - port: "gi1" + interface: "gi1" - description: "" - port: "gi2" + interface: "gi2" - description: "" - port: "gi3" + interface: "gi3" - description: "Eltex2124-8 - gi1/0/5" - port: "gi4" + interface: "gi4" - description: "" - port: "Po1" + interface: "Po1" - description: "" - port: "Po2" + interface: "Po2" - description: "" - port: "Po3" + interface: "Po3" - description: "" - port: "Po4" + interface: "Po4" - description: "" - port: "Po5" + interface: "Po5" - description: "" - port: "Po6" + interface: "Po6" - description: "" - port: "Po7" + interface: "Po7" - description: "" - port: "Po8" + interface: "Po8"