Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: change date format in hp_comware_display_clock.textfsm #977

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ntc_templates/templates/hp_comware_display_clock.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Value DAY (\d+)
Value YEAR (\d+)

Start
^${TIME}\s+${TIMEZONE}\s+${DAYWEEK}\s+${DAY}/${MONTH}/${YEAR} -> Record
^${TIME}\s+${TIMEZONE}\s+${DAYWEEK}\s+${MONTH}/${DAY}/${YEAR} -> Record


8 changes: 4 additions & 4 deletions tests/hp_comware/display_clock/hp_comware_display_clock.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
parsed_sample:
- day: "01"
dayweek: "Sat"
month: "08"
time: "19:35:31"
- time: "19:35:31"
timezone: "UTC"
dayweek: "Sat"
month: "01"
day: "08"
year: "2011"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10:09:00 UTC Fri 03/16/2015
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
parsed_sample:
- time: "10:09:00"
timezone: "UTC"
dayweek: "Fri"
month: "03"
day: "16"
year: "2015"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
15:10:00 Z5 Fri 03/16/2015
Time Zone : Z5 add 05:00:00
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
parsed_sample:
- time: "15:10:00"
timezone: "Z5"
dayweek: "Fri"
month: "03"
day: "16"
year: "2015"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
15:11:00 Z5 Fri 03/16/2015
Time Zone : Z5 add 05:00:00
Summer Time : PDT 06:00:00 08/01 06:00:00 09/01 01:00:00
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
parsed_sample:
- time: "15:11:00"
timezone: "Z5"
dayweek: "Fri"
month: "03"
day: "16"
year: "2015"