Skip to content

Commit

Permalink
Add module sku
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks authored and GGabriele committed Dec 12, 2016
1 parent 5afe705 commit 75cd5dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/cisco_ios_show_platform_diag.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Value Filldown CHASSIS_TYPE (.*?)
Value Required SLOT_NUMBER ((?:.*)[A-Z]\d+(?:.*))
Value MODULE_SKU (.+?)
Value STATE (.+)
Value RUNNING_STATE (.+)
Value INTERNAL_STATE (.+)
Expand All @@ -10,8 +11,8 @@ Value HARDWARE_SIGNAL (.*)
Value PACKET_SIGNAL (.*)

Start
^Chassis type: ${CHASSIS_TYPE}(\s|$$)
^.*(?:Sub-slot|Slot):\s${SLOT_NUMBER}\,
^Chassis type: ${CHASSIS_TYPE}(?:\s|$$)
^.*(?:Sub-slot|Slot):\s${SLOT_NUMBER}\,(?:\s${MODULE_SKU}|\s+$$)(?:\s+|$$)
^\s+State\s*\:\s${STATE}
^.*Running state\s*\:\s${RUNNING_STATE}
^.*Internal state\s*\:\s${INTERNAL_STATE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parsed_sample:

- chassis_type: 'ASR1004'
slot_number: 'R0'
module_sku: 'ASR1000-RP1'
state: ''
running_state: 'ok'
internal_state: 'online'
Expand All @@ -14,6 +15,7 @@ parsed_sample:

- chassis_type: 'ASR1004'
slot_number: 'R0/0'
module_sku: ''
state: ''
running_state: 'ok, active'
internal_state: ''
Expand All @@ -25,6 +27,7 @@ parsed_sample:

- chassis_type: 'ASR1004'
slot_number: 'R0/1'
module_sku: ''
state: ''
running_state: 'ok, standby'
internal_state: ''
Expand All @@ -36,6 +39,7 @@ parsed_sample:

- chassis_type: 'ASR1004'
slot_number: 'F0'
module_sku: 'ASR1000-ESP10'
state: ''
running_state: 'ok, active'
internal_state: 'online'
Expand All @@ -47,6 +51,7 @@ parsed_sample:

- chassis_type: 'ASR1004'
slot_number: 'P0'
module_sku: 'ASR1004-PWR-AC'
state: 'ok'
running_state: ''
internal_state: ''
Expand All @@ -58,6 +63,7 @@ parsed_sample:

- chassis_type: 'ASR1004'
slot_number: 'P1'
module_sku: 'ASR1004-PWR-AC'
state: 'ok'
running_state: ''
internal_state: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ parsed_sample:

- chassis_type: 'CSR1000V'
slot_number: 'R0'
module_sku: 'CSR1000V'
state: ''
running_state: 'ok, active'
internal_state: 'online'
Expand All @@ -13,6 +14,7 @@ parsed_sample:

- chassis_type: 'CSR1000V'
slot_number: 'F0'
module_sku: 'CSR1000V'
state: ''
running_state: 'ok, active'
internal_state: 'online'
Expand Down

0 comments on commit 75cd5dd

Please sign in to comment.