diff --git a/ntc_templates/templates/extreme_slxos_show_clock.textfsm b/ntc_templates/templates/extreme_slxos_show_clock.textfsm new file mode 100644 index 0000000000..da0d8be473 --- /dev/null +++ b/ntc_templates/templates/extreme_slxos_show_clock.textfsm @@ -0,0 +1,10 @@ +Value YEAR (\d+) +Value MONTH (\d+) +Value DAY (\d+) +Value TIME (\d+:\d+:\d+) +Value TIMEZONE (\w+\/\w+) + +Start + ^${YEAR}-${MONTH}-${DAY}\s${TIME}\s${TIMEZONE} -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 389ffe49b2..4ec44449bf 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -584,6 +584,8 @@ extreme_exos_show_ipconfig.textfsm, .*, extreme_exos, show ipconfig extreme_exos_show_sharing.textfsm, .*, extreme_exos, show sharing extreme_exos_show_iparp.textfsm, .*, extreme_exos, show iparp +extreme_slxos_show_clock.textfsm, .*, extreme_slxos, show clock + fortinet_diagnose_lldprx_port_neighbor_details_port-name.textfsm, .*, fortinet, d[[iagnose]] lldpr[[x]] p[[ort]] n[[eighbor]] d[[etails]] (\S+) fortinet_get_router_info_routing-table_all.textfsm, .*, fortinet, g[[et]] r[[outer]] info ro[[uting-table]] a[[ll]] fortinet_get_router_info_bgp_neighbors.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] nei[[ghbors]] diff --git a/tests/extreme_slxos/show_clock/extreme_slxos_show_clock_data.raw b/tests/extreme_slxos/show_clock/extreme_slxos_show_clock_data.raw new file mode 100644 index 0000000000..a96cdf29d9 --- /dev/null +++ b/tests/extreme_slxos/show_clock/extreme_slxos_show_clock_data.raw @@ -0,0 +1 @@ +2024-10-14 16:33:35 Europe/Zurich diff --git a/tests/extreme_slxos/show_clock/extreme_slxos_show_clock_data.yml b/tests/extreme_slxos/show_clock/extreme_slxos_show_clock_data.yml new file mode 100644 index 0000000000..f5f2b5f3c8 --- /dev/null +++ b/tests/extreme_slxos/show_clock/extreme_slxos_show_clock_data.yml @@ -0,0 +1,7 @@ +--- +parsed_sample: + - day: "14" + month: "10" + time: "16:33:35" + timezone: "Europe/Zurich" + year: "2024" diff --git a/tests/test_index_order.py b/tests/test_index_order.py index 18ebd41e59..108fe025c5 100755 --- a/tests/test_index_order.py +++ b/tests/test_index_order.py @@ -42,6 +42,7 @@ "enterasys", "ericsson_ipos", "extreme_exos", + "extreme_slxos", "f5_ltm", "fortinet", "hp_comware",