Skip to content

Commit

Permalink
Adding Restarted to show version template for cisco ios (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksrattani authored Jun 24, 2021
1 parent f7d7aba commit a97b2a2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ntc_templates/templates/cisco_ios_show_version.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Value List HARDWARE (\S+|\S+\d\S+)
Value List SERIAL (\S+)
Value CONFIG_REGISTER (\S+)
Value List MAC ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5})
Value RESTARTED (.+)

Start
^.*Software\s.+\),\sVersion\s${VERSION},*\s+RELEASE.*
Expand All @@ -19,6 +20,7 @@ Start
^[Cc]isco\s+${HARDWARE}\s+\(.+\).+
^[Cc]onfiguration\s+register\s+is\s+${CONFIG_REGISTER}
^Base\s+[Ee]thernet\s+MAC\s+[Aa]ddress\s+:\s+${MAC}
^System\s+restarted\s+at\s+${RESTARTED}$$
^Switch\s+Port -> Stack
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
Expand Down
1 change: 1 addition & 0 deletions tests/cisco_ios/show_version/cisco_ios_show_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ parsed_sample:
- "CAT1451S15C"
config_register: "0x2102"
mac: []
restarted: "09:09:22 UTC Tue Apr 9 2013"
1 change: 1 addition & 0 deletions tests/cisco_ios/show_version/cisco_ios_show_version1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ parsed_sample:
- "f8:7b:20:22:bb:80"
- "f8:b7:e2:33:cc:00"
- "f8:b7:e2:44:dd:00"
restarted: "05:00:08 AEDT Wed Nov 22 2017"
1 change: 1 addition & 0 deletions tests/cisco_ios/show_version/cisco_ios_show_version2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ parsed_sample:
- "SSI1289001MH"
config_register: "0x2102"
mac: []
restarted: "23:02:42 MET-DST Fri Jul 25 2014"
1 change: 1 addition & 0 deletions tests/cisco_ios/show_version/cisco_ios_show_version3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ parsed_sample:
- "991UCMIHG4UAJ1J010CQG"
config_register: "0x0"
mac: []
restarted: ""
1 change: 1 addition & 0 deletions tests/cisco_ios/show_version/cisco_ios_show_version4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ parsed_sample:
mac:
- "0c:d0:f8:cd:b5:80"
- "70:35:09:dd:20:00"
restarted: "22:16:13 NZST Wed May 1 2019"

0 comments on commit a97b2a2

Please sign in to comment.