mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Network command module for Brocade IronWare routers (#31429)
This commit is contained in:
parent
b9e15d0df1
commit
5a6ee054c0
13 changed files with 1328 additions and 1 deletions
0
test/units/modules/network/ironware/__init__.py
Normal file
0
test/units/modules/network/ironware/__init__.py
Normal file
450
test/units/modules/network/ironware/fixtures/show_version
Normal file
450
test/units/modules/network/ironware/fixtures/show_version
Normal file
|
@ -0,0 +1,450 @@
|
|||
System Mode: MLX
|
||||
Chassis: NetIron 16-slot (Serial #: H70529F00X, Part #: 35568-001)
|
||||
NI-X-HSF Switch Fabric Module 1 (Serial #: BEU3243L04H, Part #: 60-1003266-01)
|
||||
FE 1: Type fe600, Version 1
|
||||
FE 2: Type fe600, Version 1
|
||||
FE 3: Type fe600, Version 1
|
||||
Switch Fabric Module 1 Up Time is 154 days 15 hours 27 minutes 52 seconds
|
||||
NI-X-HSF Switch Fabric Module 2 (Serial #: BEU3243L03N, Part #: 60-1003266-01)
|
||||
FE 1: Type fe600, Version 1
|
||||
FE 2: Type fe600, Version 1
|
||||
FE 3: Type fe600, Version 1
|
||||
Switch Fabric Module 2 Up Time is 154 days 15 hours 27 minutes 52 seconds
|
||||
NI-X-HSF Switch Fabric Module 3 (Serial #: BEU3243L03X, Part #: 60-1003266-01)
|
||||
FE 1: Type fe600, Version 1
|
||||
FE 2: Type fe600, Version 1
|
||||
FE 3: Type fe600, Version 1
|
||||
Switch Fabric Module 3 Up Time is 154 days 15 hours 27 minutes 52 seconds
|
||||
NI-X-HSF Switch Fabric Module 4 (Serial #: BEU3243L041, Part #: 60-1003266-01)
|
||||
FE 1: Type fe600, Version 1
|
||||
FE 2: Type fe600, Version 1
|
||||
FE 3: Type fe600, Version 1
|
||||
Switch Fabric Module 4 Up Time is 154 days 15 hours 27 minutes 52 seconds
|
||||
==========================================================================
|
||||
SL M1: BR-MLX-MR2-M Management Module Active (Serial #: BVP3248L00T, Part #: 60-1003268-01):
|
||||
Boot : Version 5.8.0T165 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:10 labeled as xmprm05800
|
||||
(521590 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T165 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:01:40 labeled as xmb05800
|
||||
(539721 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT163 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 02:54:38 labeled as xmr05800fb
|
||||
(9983317 bytes) from Primary
|
||||
Board ID : 00 MBRIDGE Revision : 37
|
||||
1666 MHz Power PC processor 7448 (version 8004/0202) 166 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 128 MB Code Flash (MT28F256J3)
|
||||
4096 MB DRAM INSTALLED
|
||||
4096 MB DRAM ADDRESSABLE
|
||||
Active Management uptime is 154 days 15 hours 27 minutes 52 seconds
|
||||
==========================================================================
|
||||
SL M2: BR-MLX-MR2-M Management Module Standby (Serial #: BVP3248L00N, Part #: 60-1003268-01):
|
||||
Boot : Version 5.8.0T165 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:10 labeled as xmprm05800
|
||||
(521590 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T165 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:01:40 labeled as xmb05800
|
||||
(539721 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT163 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 02:54:38 labeled as xmr05800fb
|
||||
(9983317 bytes) from Primary
|
||||
Board ID : 00 MBRIDGE Revision : 37
|
||||
1666 MHz Power PC processor 7448 (version 8004/0202) 166 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 128 MB Code Flash (MT28F256J3)
|
||||
4096 MB DRAM INSTALLED
|
||||
4096 MB DRAM ADDRESSABLE
|
||||
Standby Management uptime is 154 days 15 hours 26 minutes 13 seconds
|
||||
==========================================================================
|
||||
SL 1: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0401H034, Part #: 60-1001892-10)
|
||||
License: (LID: dpfFJFGjFIJ)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 1 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 2: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0401H030, Part #: 60-1001892-10)
|
||||
License: (LID: dpfFJFGjFIF)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 2 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 3: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0415H00E, Part #: 60-1001892-11)
|
||||
License: (LID: dpfFJGKjFFg)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 3 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 4: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0415H02C, Part #: 60-1001892-11)
|
||||
License: (LID: dpfFJGKjFHe)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 4 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 5: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0422H01T, Part #: 60-1001892-11)
|
||||
License: (LID: dpfFJHHjFGv)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 5 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 6: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0430H01S, Part #: 60-1001892-11)
|
||||
License: (LID: dpfFJIFjFGu)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 6 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 7: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0428H024, Part #: 60-1001892-11)
|
||||
License: MLX-1Gx24-X-Upgrade (LID: dpfFJHNjFHJ)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 7 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 8: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0427H00A, Part #: 60-1001892-11)
|
||||
License: MLX-1Gx24-X-Upgrade (LID: dpfFJHMjFFc)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 8 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 9: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0428J029, Part #: 60-1001892-12)
|
||||
License: MLX-1Gx24-X-Upgrade (LID: dpfFJHNlFHO)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 9 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 10: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0418J00E, Part #: 60-1001892-12)
|
||||
License: (LID: dpfFJGNlFFg)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 10 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 11: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0437J012, Part #: 60-1001892-12)
|
||||
License: MLX-1Gx24-X-Upgrade (LID: dpfFJIMlFGH)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 11 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 12: BR-MLX-1GFx24-X 24-port 1GbE SFP Module (Serial #: BND0401H05A, Part #: 60-1001892-10)
|
||||
License: (LID: dpfFJFGjFKc)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 4.04, Build Time = 11/10/2014 22:10:00
|
||||
|
||||
Valid XPP Version = 1.03, Build Time = 6/30/2016 10:37:00
|
||||
|
||||
Valid STATS Version = 0.09, Build Time = 11/21/2010 14:52:00
|
||||
|
||||
BCM56512GMAC 0
|
||||
BCM56512GMAC 1
|
||||
666 MHz MPC MPC8541E (version 8020/0020) 333 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 16 MB Code Flash (MT28F128J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 12 uptime is 154 days 15 hours 26 minutes 17 seconds
|
||||
==========================================================================
|
||||
SL 13: NI-MLX-10Gx8-M 8-port 10GbE (M) Module (Serial #: BEQ3219M01V, Part #: 60-1003263-01)
|
||||
(LID: dgsIHGOoFGx)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 2.24, Build Time = 4/7/2016 14:16:00
|
||||
|
||||
Valid XPP Version = 0.08, Build Time = 6/27/2016 10:36:00
|
||||
|
||||
MACXPP40G 0
|
||||
MACXPP40G 1
|
||||
1333 MHz MPC MPC8548 (version 8021/0022) 533 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 64 MB Code Flash (MT28F256J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 13 uptime is 154 days 15 hours 26 minutes 20 seconds
|
||||
==========================================================================
|
||||
SL 14: NI-MLX-10Gx8-M 8-port 10GbE (M) Module (Serial #: BEQ3219M01Z, Part #: 60-1003263-01)
|
||||
(LID: dgsIHGOoFGb)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 2.24, Build Time = 4/7/2016 14:16:00
|
||||
|
||||
Valid XPP Version = 0.08, Build Time = 6/27/2016 10:36:00
|
||||
|
||||
MACXPP40G 0
|
||||
MACXPP40G 1
|
||||
1333 MHz MPC MPC8548 (version 8021/0022) 533 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 64 MB Code Flash (MT28F256J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 14 uptime is 154 days 15 hours 26 minutes 21 seconds
|
||||
==========================================================================
|
||||
SL 15: NI-MLX-10Gx8-M 8-port 10GbE (M) Module (Serial #: BEQ0428J001, Part #: 60-1001587-16)
|
||||
(LID: dgsFJHNlFFG)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 2.24, Build Time = 4/7/2016 14:16:00
|
||||
|
||||
Valid XPP Version = 0.08, Build Time = 6/27/2016 10:36:00
|
||||
|
||||
MACXPP40G 0
|
||||
MACXPP40G 1
|
||||
1333 MHz MPC MPC8548 (version 8021/0022) 533 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 64 MB Code Flash (MT28F256J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 15 uptime is 154 days 15 hours 26 minutes 21 seconds
|
||||
==========================================================================
|
||||
SL 16: NI-MLX-10Gx8-M 8-port 10GbE (M) Module (Serial #: BEQ0443G098, Part #: 60-1001587-14)
|
||||
(LID: dgsFJJIiFON)
|
||||
Boot : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:24 labeled as xmlprm05800
|
||||
(449481 bytes) from boot flash
|
||||
Monitor : Version 5.8.0T175 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on May 18 2015 at 13:02:40 labeled as xmlb05800
|
||||
(568745 bytes) from code flash
|
||||
IronWare : Version 5.8.0fT177 Copyright (c) 1996-2014 Brocade Communications Systems, Inc.
|
||||
Compiled on Feb 24 2017 at 03:02:10 labeled as xmlp05800fb
|
||||
(9304807 bytes) from Primary
|
||||
FPGA versions:
|
||||
Valid PBIF Version = 2.24, Build Time = 4/7/2016 14:16:00
|
||||
|
||||
Valid XPP Version = 0.08, Build Time = 6/27/2016 10:36:00
|
||||
|
||||
MACXPP40G 0
|
||||
MACXPP40G 1
|
||||
1333 MHz MPC MPC8548 (version 8021/0022) 533 MHz bus
|
||||
512 KB Boot Flash (MX29LV040C), 64 MB Code Flash (MT28F256J3)
|
||||
1024 MB DRAM, 8 KB SRAM
|
||||
LP Slot 16 uptime is 154 days 15 hours 26 minutes 20 seconds
|
||||
==========================================================================
|
||||
All show version done
|
114
test/units/modules/network/ironware/ironware_module.py
Normal file
114
test/units/modules/network/ironware/ironware_module.py
Normal file
|
@ -0,0 +1,114 @@
|
|||
# (c) 2016 Red Hat Inc.
|
||||
#
|
||||
# This file is part of Ansible
|
||||
#
|
||||
# Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Make coding more python3-ish
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import os
|
||||
import json
|
||||
|
||||
from ansible.compat.tests import unittest
|
||||
from ansible.compat.tests.mock import patch
|
||||
from ansible.module_utils import basic
|
||||
from ansible.module_utils._text import to_bytes
|
||||
|
||||
|
||||
def set_module_args(args):
|
||||
args = json.dumps({'ANSIBLE_MODULE_ARGS': args})
|
||||
basic._ANSIBLE_ARGS = to_bytes(args)
|
||||
|
||||
fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures')
|
||||
fixture_data = {}
|
||||
|
||||
|
||||
def load_fixture(name):
|
||||
path = os.path.join(fixture_path, name)
|
||||
|
||||
if path in fixture_data:
|
||||
return fixture_data[path]
|
||||
|
||||
with open(path) as f:
|
||||
data = f.read()
|
||||
|
||||
try:
|
||||
data = json.loads(data)
|
||||
except:
|
||||
pass
|
||||
|
||||
fixture_data[path] = data
|
||||
return data
|
||||
|
||||
|
||||
class AnsibleExitJson(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class AnsibleFailJson(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class TestIronwareModule(unittest.TestCase):
|
||||
|
||||
def execute_module(self, failed=False, changed=False, commands=None, sort=True, defaults=False):
|
||||
|
||||
self.load_fixtures(commands)
|
||||
|
||||
if failed:
|
||||
result = self.failed()
|
||||
self.assertTrue(result['failed'], result)
|
||||
else:
|
||||
result = self.changed(changed)
|
||||
self.assertEqual(result['changed'], changed, result)
|
||||
|
||||
if commands is not None:
|
||||
if sort:
|
||||
self.assertEqual(sorted(commands), sorted(result['commands']), result['commands'])
|
||||
else:
|
||||
self.assertEqual(commands, result['commands'], result['commands'])
|
||||
|
||||
return result
|
||||
|
||||
def failed(self):
|
||||
def fail_json(*args, **kwargs):
|
||||
kwargs['failed'] = True
|
||||
raise AnsibleFailJson(kwargs)
|
||||
|
||||
with patch.object(basic.AnsibleModule, 'fail_json', fail_json):
|
||||
with self.assertRaises(AnsibleFailJson) as exc:
|
||||
self.module.main()
|
||||
|
||||
result = exc.exception.args[0]
|
||||
self.assertTrue(result['failed'], result)
|
||||
return result
|
||||
|
||||
def changed(self, changed=False):
|
||||
def exit_json(*args, **kwargs):
|
||||
if 'changed' not in kwargs:
|
||||
kwargs['changed'] = False
|
||||
raise AnsibleExitJson(kwargs)
|
||||
|
||||
with patch.object(basic.AnsibleModule, 'exit_json', exit_json):
|
||||
with self.assertRaises(AnsibleExitJson) as exc:
|
||||
self.module.main()
|
||||
|
||||
result = exc.exception.args[0]
|
||||
self.assertEqual(result['changed'], changed, result)
|
||||
return result
|
||||
|
||||
def load_fixtures(self, commands=None):
|
||||
pass
|
99
test/units/modules/network/ironware/test_ironware_command.py
Normal file
99
test/units/modules/network/ironware/test_ironware_command.py
Normal file
|
@ -0,0 +1,99 @@
|
|||
# (c) 2016 Red Hat Inc.
|
||||
#
|
||||
# This file is part of Ansible
|
||||
#
|
||||
# Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Make coding more python3-ish
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import json
|
||||
|
||||
from ansible.compat.tests.mock import patch
|
||||
from ansible.modules.network.ironware import ironware_command
|
||||
from .ironware_module import TestIronwareModule, load_fixture, set_module_args
|
||||
|
||||
|
||||
class TestIronwareCommandModule(TestIronwareModule):
|
||||
|
||||
module = ironware_command
|
||||
|
||||
def setUp(self):
|
||||
self.mock_run_commands = patch('ansible.modules.network.ironware.ironware_command.run_commands')
|
||||
self.run_commands = self.mock_run_commands.start()
|
||||
|
||||
def tearDown(self):
|
||||
self.mock_run_commands.stop()
|
||||
|
||||
def load_fixtures(self, commands=None):
|
||||
|
||||
def load_from_file(*args, **kwargs):
|
||||
module, commands = args
|
||||
output = list()
|
||||
|
||||
for command in commands:
|
||||
filename = str(command).replace(' ', '_')
|
||||
output.append(load_fixture(filename))
|
||||
return output
|
||||
|
||||
self.run_commands.side_effect = load_from_file
|
||||
|
||||
def test_ironware_command_simple(self):
|
||||
set_module_args(dict(commands=['show version']))
|
||||
result = self.execute_module()
|
||||
self.assertEqual(len(result['stdout']), 1)
|
||||
self.assertTrue(result['stdout'][0].startswith('System Mode: MLX'))
|
||||
|
||||
def test_ironware_command_multiple(self):
|
||||
set_module_args(dict(commands=['show version', 'show version']))
|
||||
result = self.execute_module()
|
||||
self.assertEqual(len(result['stdout']), 2)
|
||||
self.assertTrue(result['stdout'][0].startswith('System Mode: MLX'))
|
||||
|
||||
def test_ironware_command_wait_for(self):
|
||||
wait_for = 'result[0] contains "IronWare"'
|
||||
set_module_args(dict(commands=['show version'], wait_for=wait_for))
|
||||
self.execute_module()
|
||||
|
||||
def test_ironware_command_wait_for_fails(self):
|
||||
wait_for = 'result[0] contains "test string"'
|
||||
set_module_args(dict(commands=['show version'], wait_for=wait_for))
|
||||
self.execute_module(failed=True)
|
||||
self.assertEqual(self.run_commands.call_count, 10)
|
||||
|
||||
def test_ironware_command_retries(self):
|
||||
wait_for = 'result[0] contains "test string"'
|
||||
set_module_args(dict(commands=['show version'], wait_for=wait_for, retries=2))
|
||||
self.execute_module(failed=True)
|
||||
self.assertEqual(self.run_commands.call_count, 2)
|
||||
|
||||
def test_ironware_command_match_any(self):
|
||||
wait_for = ['result[0] contains "IronWare"',
|
||||
'result[0] contains "test string"']
|
||||
set_module_args(dict(commands=['show version'], wait_for=wait_for, match='any'))
|
||||
self.execute_module()
|
||||
|
||||
def test_ironware_command_match_all(self):
|
||||
wait_for = ['result[0] contains "IronWare"',
|
||||
'result[0] contains "uptime is"']
|
||||
set_module_args(dict(commands=['show version'], wait_for=wait_for, match='all'))
|
||||
self.execute_module()
|
||||
|
||||
def test_ironware_command_match_all_failure(self):
|
||||
wait_for = ['result[0] contains "IronWare"',
|
||||
'result[0] contains "test string"']
|
||||
commands = ['show version', 'show version']
|
||||
set_module_args(dict(commands=commands, wait_for=wait_for, match='all'))
|
||||
self.execute_module(failed=True)
|
Loading…
Add table
Add a link
Reference in a new issue