Skip to content

Commit

Permalink
Add initial extreme slxos show clock template (#1878)
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Gubler <[email protected]>
  • Loading branch information
lucagubler and Luca Gubler authored Oct 15, 2024
1 parent 07db0d8 commit 333cdad
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ntc_templates/templates/extreme_slxos_show_clock.textfsm
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-10-14 16:33:35 Europe/Zurich
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
parsed_sample:
- day: "14"
month: "10"
time: "16:33:35"
timezone: "Europe/Zurich"
year: "2024"
1 change: 1 addition & 0 deletions tests/test_index_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"enterasys",
"ericsson_ipos",
"extreme_exos",
"extreme_slxos",
"f5_ltm",
"fortinet",
"hp_comware",
Expand Down

0 comments on commit 333cdad

Please sign in to comment.