From 16b4a9718273a794a31cf3a44d8eed036db0cc12 Mon Sep 17 00:00:00 2001 From: PavloSkliarenko <78343937+PavloSkliarenko@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:16:04 +0100 Subject: [PATCH] Fix template for Mikrotik's command 'interface print terse without-paging' (#1809) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pskliarenko <“pskliarenko@bsh.ru”> Co-authored-by: Maxim Shpak --- ...krotik_routeros_interface_print_terse_without-paging.textfsm | 2 +- .../mikrotik_routeros_interface_print_terse_without-paging.raw | 2 +- .../mikrotik_routeros_interface_print_terse_without-paging.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ntc_templates/templates/mikrotik_routeros_interface_print_terse_without-paging.textfsm b/ntc_templates/templates/mikrotik_routeros_interface_print_terse_without-paging.textfsm index a0480343d1..cf884ad417 100644 --- a/ntc_templates/templates/mikrotik_routeros_interface_print_terse_without-paging.textfsm +++ b/ntc_templates/templates/mikrotik_routeros_interface_print_terse_without-paging.textfsm @@ -3,7 +3,7 @@ Value DYNAMIC (D) Value STATUS (X|R) Value SLAVE (S) Value COMMENT (.*) -Value NAME (\S+) +Value NAME (.*?) Value DEFAULT_NAME (\S+) Value TYPE (\S+) Value MTU (\d+|auto) diff --git a/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.raw b/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.raw index 3c2da66d5a..66869d258b 100644 --- a/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.raw +++ b/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.raw @@ -1,6 +1,6 @@ 0 D name=ether1 default-name=ether1 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AA last-link-up-time=aug/16/1970 13:05:43 link-downs=0 1 DR name=ether2_UniFi2 default-name=ether2 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AB last-link-down-time=aug/17/1970 13:33:01 last-link-up-time=aug/17/1970 13:23:11 link-downs=3 - 2 name=ether3_UniFi1 default-name=ether3 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AC link-downs=0 + 2 name=ether3 UniFi1 default-name=ether3 type=ether mtu=1500 actual-mtu=1500 l2mtu=1598 max-l2mtu=2028 mac-address=12:34:56:78:90:AC link-downs=0 3 R name=bridge-VLAN1 type=bridge mtu=auto actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:AD last-link-up-time=aug/16/1970 13:05:35 link-downs=0 4 X name=bridge-VLAN2 type=bridge mac-address=12:34:56:78:90:AE link-downs=0 5 S name=eth3_vlan1 type=vlan mtu=1500 actual-mtu=1500 l2mtu=1594 mac-address=12:34:56:78:90:AF last-link-down-time=aug/17/1970 13:33:01 last-link-up-time=aug/17/1970 13:23:11 link-downs=3 diff --git a/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.yml b/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.yml index ddd9390634..a303ded834 100644 --- a/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.yml +++ b/tests/mikrotik_routeros/interface_print_terse_without-paging/mikrotik_routeros_interface_print_terse_without-paging.yml @@ -39,7 +39,7 @@ parsed_sample: status: "" slave: "" comment: "" - name: "ether3_UniFi1" + name: "ether3 UniFi1" default_name: "ether3" type: "ether" mtu: "1500"