-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix - cisco_xr - support both show_platform and admin_show_platform (
#1783) * move xr show_platform data into the correct directory * update index and cisco_xr admin_show_platform template to support admin nad non-admin output
- Loading branch information
Showing
8 changed files
with
63 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 5 additions & 8 deletions
13
tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
Tue Mar 7 14:29:29.338 EST | ||
Node Type State Config State | ||
----------------------------------------------------------------------------- | ||
0/RSP0/CPU0 A9K-RSP440-TR(Active) IOS XR RUN PWR,NSHUT,MON | ||
0/RSP1/CPU0 A9K-RSP440-TR(Standby) IOS XR RUN PWR,NSHUT,MON | ||
0/FT0/SP ASR-9010-FAN-V2 READY | ||
0/FT1/SP ASR-9010-FAN-V2 READY | ||
0/0/0 A9K-MPA-2X40GE OK PWR,NSHUT,MON | ||
Tue Nov 16 15:43:18.391 UTC | ||
Location Card Type HW State SW State Config State | ||
---------------------------------------------------------------------------- | ||
0/0 R-IOSXRV9000-LC-C OPERATIONAL N/A NSHUT | ||
0/RP0 R-IOSXRV9000-RP-C OPERATIONAL OPERATIONAL NSHUT |
28 changes: 8 additions & 20 deletions
28
tests/cisco_xr/admin_show_platform/cisco_xr_admin_show_platform.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
--- | ||
parsed_sample: | ||
- node: "0/RSP0/CPU0" | ||
type: "A9K-RSP440-TR(Active)" | ||
state: "IOS XR RUN" | ||
config_state: "PWR,NSHUT,MON" | ||
- node: "0/RSP1/CPU0" | ||
type: "A9K-RSP440-TR(Standby)" | ||
state: "IOS XR RUN" | ||
config_state: "PWR,NSHUT,MON" | ||
- node: "0/FT0/SP" | ||
type: "ASR-9010-FAN-V2" | ||
state: "READY" | ||
config_state: "" | ||
- node: "0/FT1/SP" | ||
type: "ASR-9010-FAN-V2" | ||
state: "READY" | ||
config_state: "" | ||
- node: "0/0/0" | ||
type: "A9K-MPA-2X40GE" | ||
state: "OK" | ||
config_state: "PWR,NSHUT,MON" | ||
- config_state: "N/A" | ||
node: "0/0" | ||
state: "OPERATIONAL" | ||
type: "R-IOSXRV9000-LC-C" | ||
- config_state: "OPERATIONAL" | ||
node: "0/RP0" | ||
state: "OPERATIONAL" | ||
type: "R-IOSXRV9000-RP-C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Tue Mar 7 14:29:29.338 EST | ||
Node Type State Config State | ||
----------------------------------------------------------------------------- | ||
0/RSP0/CPU0 A9K-RSP440-TR(Active) IOS XR RUN PWR,NSHUT,MON | ||
0/RSP1/CPU0 A9K-RSP440-TR(Standby) IOS XR RUN PWR,NSHUT,MON | ||
0/FT0/SP ASR-9010-FAN-V2 READY | ||
0/FT1/SP ASR-9010-FAN-V2 READY | ||
0/0/0 A9K-MPA-2X40GE OK PWR,NSHUT,MON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
parsed_sample: | ||
- config_state: "PWR,NSHUT,MON" | ||
node: "0/RSP0/CPU0" | ||
state: "IOS XR RUN" | ||
type: "A9K-RSP440-TR(Active)" | ||
- config_state: "PWR,NSHUT,MON" | ||
node: "0/RSP1/CPU0" | ||
state: "IOS XR RUN" | ||
type: "A9K-RSP440-TR(Standby)" | ||
- config_state: "" | ||
node: "0/FT0/SP" | ||
state: "READY" | ||
type: "ASR-9010-FAN-V2" | ||
- config_state: "" | ||
node: "0/FT1/SP" | ||
state: "READY" | ||
type: "ASR-9010-FAN-V2" | ||
- config_state: "PWR,NSHUT,MON" | ||
node: "0/0/0" | ||
state: "OK" | ||
type: "A9K-MPA-2X40GE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Tue Nov 16 15:42:24.738 UTC | ||
Node Type State Config state | ||
-------------------------------------------------------------------------------- | ||
0/0/CPU0 R-IOSXRV9000-LC-C IOS XR RUN NSHUT | ||
0/RP0/CPU0 R-IOSXRV9000-RP-C(Active) IOS XR RUN NSHUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
parsed_sample: | ||
- config_state: "NSHUT" | ||
node: "0/0/CPU0" | ||
state: "IOS XR RUN" | ||
type: "R-IOSXRV9000-LC-C" | ||
- config_state: "NSHUT" | ||
node: "0/RP0/CPU0" | ||
state: "IOS XR RUN" | ||
type: "R-IOSXRV9000-RP-C(Active)" |