From da476fb6319bc5f6300610eca95c7f38dc722a2b Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Tue, 11 Aug 2026 10:20:49 -0300 Subject: [PATCH 01/13] Add raw output for show_service_id_interface with spaces --- .../show_service_id_interface_with_spaces.raw | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw diff --git a/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw new file mode 100644 index 0000000000..04baaed15e --- /dev/null +++ b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw @@ -0,0 +1,20 @@ +============================================================================== +Interface Table +============================================================================== +Interface-Name Adm Opr(v4/v6) Type Port/SapId + IP-Address PfxState +------------------------------------------------------------------------------ +Gigaesat-1/1/4:1502.18 Up Up/Up VPRN esat-1/1/4:15* + 10.28.76.185/30 n/a + fe80:a8:2:280::2245/126 PREFERRED + fe80::fa:77ad:f065:b928/64 PREFERRED +loopback10 Up Up/Down VPRN loopback + 10.218.0.41/32 n/a +Loopback 10 loop 2 Up Down/Down VPRN loopback + - - +loopback why are you like this? Up Up/Down VPRN loopback + 10.218.128.43/32 n/a +------------------------------------------------------------------------------ +Interfaces : 4 +============================================================================== +* indicates that the corresponding row element may have been truncated. From fa496d3e915cb9ec351b49ff4700f3329188caf3 Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Tue, 11 Aug 2026 10:21:35 -0300 Subject: [PATCH 02/13] Add YAML file for show_service_id_interface tests --- .../show_service_id_interface_with_spaces.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml diff --git a/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml new file mode 100644 index 0000000000..4b9c3f1c8c --- /dev/null +++ b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml @@ -0,0 +1,46 @@ +--- +parsed_sample: + - admin_state: "Up" + interface_name: "Gigaesat-1/1/4:1502.18" + ip_address: + - "10.28.76.185/30" + - "fe80:a8:2:280::2245/126" + - "fe80::fa:77ad:f065:b928/64" + oper_state_v4: "Up" + oper_state_v6: "Up" + pfx_state: + - "n/a" + - "PREFERRED" + - "PREFERRED" + port_sap_id: "esat-1/1/4:15*" + type: "VPRN" + - admin_state: "Up" + interface_name: "loopback10" + ip_address: + - "10.218.0.41/32" + oper_state_v4: "Up" + oper_state_v6: "Down" + pfx_state: + - "n/a" + port_sap_id: "loopback" + type: "VPRN" + - admin_state: "Up" + interface_name: "Loopback 10 loop 2" + ip_address: + - "-" + oper_state_v4: "Down" + oper_state_v6: "Down" + pfx_state: + - "-" + port_sap_id: "loopback" + type: "VPRN" + - admin_state: "Up" + interface_name: "loopback why are you like this?" + ip_address: + - "10.218.128.43/32" + oper_state_v4: "Up" + oper_state_v6: "Down" + pfx_state: + - "n/a" + port_sap_id: "loopback" + type: "VPRN" From 6c97a314c954a7c4f8b47f96135e71358565d0d2 Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Tue, 11 Aug 2026 10:22:50 -0300 Subject: [PATCH 03/13] Update INTERFACE_NAME regex pattern in template Allow interface names containing spaces --- .../templates/alcatel_sros_show_service_id_interface.textfsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm b/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm index 5a5449938b..f43aac0351 100644 --- a/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm +++ b/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm @@ -1,4 +1,4 @@ -Value Required INTERFACE_NAME (\S+) +Value Required INTERFACE_NAME (\S+(?:(\s+\S+)?)+) Value Required ADMIN_STATE (Up|Down) Value Required OPER_STATE_V4 (Up|Down) Value Required OPER_STATE_V6 (Up|Down) From 89001cce00d25b0544f690f9aa3a5e008114a6ad Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Tue, 11 Aug 2026 10:39:09 -0300 Subject: [PATCH 04/13] Update alcatel_sros_show_service_id_interface.textfsm From 6e60c4322af178ac44bc58d12815ff50c0fb0bd7 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Sun, 16 Aug 2026 15:28:33 -0400 Subject: [PATCH 05/13] Simplify interface name regex --- .../templates/alcatel_sros_show_service_id_interface.textfsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm b/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm index f43aac0351..2b2fdd030f 100644 --- a/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm +++ b/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm @@ -1,4 +1,4 @@ -Value Required INTERFACE_NAME (\S+(?:(\s+\S+)?)+) +Value Required INTERFACE_NAME (\S.+\S) Value Required ADMIN_STATE (Up|Down) Value Required OPER_STATE_V4 (Up|Down) Value Required OPER_STATE_V6 (Up|Down) From 8ee1de2569490c78beb15797d66dfc2dbbbb59c8 Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Thu, 20 Aug 2026 14:53:28 -0300 Subject: [PATCH 06/13] Update regex for INTERFACE_NAME in textfsm template Needed rollback to capture small named interfaces (eg. e1) --- .../templates/alcatel_sros_show_service_id_interface.textfsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm b/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm index 2b2fdd030f..3aef0b5e91 100644 --- a/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm +++ b/ntc_templates/templates/alcatel_sros_show_service_id_interface.textfsm @@ -1,4 +1,4 @@ -Value Required INTERFACE_NAME (\S.+\S) +Value Required INTERFACE_NAME (\S+(?:\s+\S+)*) Value Required ADMIN_STATE (Up|Down) Value Required OPER_STATE_V4 (Up|Down) Value Required OPER_STATE_V6 (Up|Down) From 86ac96576f2153dda3047728dfe4e45676d8d807 Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Thu, 20 Aug 2026 14:58:23 -0300 Subject: [PATCH 07/13] Update interface count in show_service_id_interface added short named interface e1 --- .../show_service_id_interface_with_spaces.raw | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw index 04baaed15e..66012f6a04 100644 --- a/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw +++ b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.raw @@ -14,7 +14,9 @@ Loopback 10 loop 2 Up Down/Down VPRN loopback - - loopback why are you like this? Up Up/Down VPRN loopback 10.218.128.43/32 n/a +e1 Up Up/Down IES e1 + 10.11.12.13/32 n/a ------------------------------------------------------------------------------ -Interfaces : 4 +Interfaces : 5 ============================================================================== * indicates that the corresponding row element may have been truncated. From b55984113cc9f98d918f9c84838488001386928d Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Thu, 20 Aug 2026 15:01:54 -0300 Subject: [PATCH 08/13] Add interface details for e1 in YAML configuration --- .../show_service_id_interface_with_spaces.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml index 4b9c3f1c8c..d500515be3 100644 --- a/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml +++ b/tests/alcatel_sros/show_service_id_interface/show_service_id_interface_with_spaces.yml @@ -44,3 +44,13 @@ parsed_sample: - "n/a" port_sap_id: "loopback" type: "VPRN" + - admin_state: "Up" + interface_name: "e1" + ip_address: + - "10.11.12.13/32" + oper_state_v4: "Up" + oper_state_v6: "Down" + pfx_state: + - "n/a" + port_sap_id: "e1" + type: "IES" From 9621d5cc568f0926b610db9a8313da8df6fb59a7 Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Thu, 20 Aug 2026 15:09:41 -0300 Subject: [PATCH 09/13] Add branch with spaces to CI workflow --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e292a94af..02bae96097 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ concurrency: # Cancel any existing runs of this workflow for this same PR on: # yamllint disable-line rule:truthy rule:comments push: branches: + - "interface-name-with-spaces" - "master" tags: - "v*" From 045f7504b784a5d6411981a1d8ad6db19a0c302d Mon Sep 17 00:00:00 2001 From: Jose Orlando Date: Sat, 17 Oct 2026 16:59:32 -0300 Subject: [PATCH 10/13] Add new router BGP summary template --- ntc_templates/templates/index | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index ff51e1e9ce..5f5fdc5274 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -39,7 +39,8 @@ alcatel_sros_show_service_service-using.textfsm, .*, alcatel_sros, sh[[ow]] se[[ alcatel_sros_show_router_ldp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router ldp int[[erface]] alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]] alcatel_sros_show_service_id_interface.textfsm, .*, alcatel_sros, sh[[ow]] se[[rvice]] id (\d+ in[[terface]]|in[[terface]]) -alcatel_sros_show_service_sap-using.textfsm, .*, alcatel_sros, sh[[ow]] service sap-u[[sing]] +alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]] +alcatel_sros_show_router_bgp_summary.textfsm, .*, alcatel_sros, sh[[ow]] router bgp sum[[mary]] alcatel_sros_show_service_sdp-using.textfsm, .*, alcatel_sros, sh[[ow]] service sdp-using alcatel_sros_show_port_description.textfsm, .*, alcatel_sros, sh[[ow]] port (\S+ )?des[[cription]] alcatel_sros_show_router_interface.textfsm, .*, alcatel_sros, sh[[ow]] router (\d+ int[[erface]]|int[[erface]]) From 8fe1b285afe0d73bac54d022e28364df7f61edda Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Mon, 19 Oct 2026 20:18:08 -0400 Subject: [PATCH 11/13] Revert ci.yml branch name change --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02bae96097..23a3f76a4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ concurrency: # Cancel any existing runs of this workflow for this same PR on: # yamllint disable-line rule:truthy rule:comments push: branches: - - "interface-name-with-spaces" + - "master" - "master" tags: - "v*" From 49b0546b5cdd257c5635861b8224add1c8896321 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Mon, 19 Oct 2026 20:19:37 -0400 Subject: [PATCH 12/13] Remove second branch name from ci.yml Needed to remove the additional branch name, not rename it. --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23a3f76a4f..7e292a94af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,6 @@ on: # yamllint disable-line rule:truthy rule:comments push: branches: - "master" - - "master" tags: - "v*" pull_request: ~ From 97e3d032b8f67ded6fa28c8dc3ea775b0eb4780b Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Mon, 19 Oct 2026 20:26:42 -0400 Subject: [PATCH 13/13] Readd alcatel_sros sh service sap-using to index --- ntc_templates/templates/index | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 5f5fdc5274..ff51e1e9ce 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -39,8 +39,7 @@ alcatel_sros_show_service_service-using.textfsm, .*, alcatel_sros, sh[[ow]] se[[ alcatel_sros_show_router_ldp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router ldp int[[erface]] alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]] alcatel_sros_show_service_id_interface.textfsm, .*, alcatel_sros, sh[[ow]] se[[rvice]] id (\d+ in[[terface]]|in[[terface]]) -alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]] -alcatel_sros_show_router_bgp_summary.textfsm, .*, alcatel_sros, sh[[ow]] router bgp sum[[mary]] +alcatel_sros_show_service_sap-using.textfsm, .*, alcatel_sros, sh[[ow]] service sap-u[[sing]] alcatel_sros_show_service_sdp-using.textfsm, .*, alcatel_sros, sh[[ow]] service sdp-using alcatel_sros_show_port_description.textfsm, .*, alcatel_sros, sh[[ow]] port (\S+ )?des[[cription]] alcatel_sros_show_router_interface.textfsm, .*, alcatel_sros, sh[[ow]] router (\d+ int[[erface]]|int[[erface]])