From dbee8b2963732e7f1fceefcc0a9d9e5c832a85f6 Mon Sep 17 00:00:00 2001 From: nidebr Date: Tue, 1 Dec 2020 17:32:00 +0100 Subject: [PATCH] New template: Dell PowerConnect show int description (#827) --- ...rconnect_show_bridge_address_table.textfsm | 13 + ...onnect_show_interfaces_description.textfsm | 12 + ...owerconnect_show_interfaces_status.textfsm | 21 + templates/index | 6 +- ...powerconnect_show_bridge_address_table.raw | 30 ++ ...powerconnect_show_bridge_address_table.yml | 106 +++++ ...werconnect_show_interfaces_description.raw | 61 +++ ...werconnect_show_interfaces_description.yml | 98 ++++ ...ll_powerconnect_show_interfaces_status.raw | 63 +++ ...ll_powerconnect_show_interfaces_status.yml | 434 ++++++++++++++++++ tests/test_index_order.py | 1 + 11 files changed, 844 insertions(+), 1 deletion(-) create mode 100644 templates/dell_powerconnect_show_bridge_address_table.textfsm create mode 100644 templates/dell_powerconnect_show_interfaces_description.textfsm create mode 100644 templates/dell_powerconnect_show_interfaces_status.textfsm create mode 100644 tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.raw create mode 100644 tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.yml create mode 100644 tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.raw create mode 100644 tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.yml create mode 100644 tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.raw create mode 100644 tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.yml diff --git a/templates/dell_powerconnect_show_bridge_address_table.textfsm b/templates/dell_powerconnect_show_bridge_address_table.textfsm new file mode 100644 index 0000000000..814c99abb6 --- /dev/null +++ b/templates/dell_powerconnect_show_bridge_address_table.textfsm @@ -0,0 +1,13 @@ +Value DESTINATION_ADDRESS ((\w\w:){5}\w\w) +Value TYPE (dynamic|self) +Value VLAN (\w+) +Value DESTINATION_PORT (\S+) + +Start + ^\s+Vlan\s+Mac\s+Address\s+Port\s+Type -> Begin + +Begin + ^-+ + ^Aging + ^\s+${VLAN}\s+${DESTINATION_ADDRESS}\s+${DESTINATION_PORT}\s+${TYPE} -> Record + ^. -> Error diff --git a/templates/dell_powerconnect_show_interfaces_description.textfsm b/templates/dell_powerconnect_show_interfaces_description.textfsm new file mode 100644 index 0000000000..da9039950e --- /dev/null +++ b/templates/dell_powerconnect_show_interfaces_description.textfsm @@ -0,0 +1,12 @@ +Value INTERFACE (\S+) +Value DESCRIPTION (\S*) + +Start + ^Port\s+Description -> Begin + +Begin + ^-+ + ^Ch\s+Description -> End + ^${INTERFACE}\s*${DESCRIPTION}\s*$$ -> Record + ^\s* + ^. -> Error diff --git a/templates/dell_powerconnect_show_interfaces_status.textfsm b/templates/dell_powerconnect_show_interfaces_status.textfsm new file mode 100644 index 0000000000..5dfecdc756 --- /dev/null +++ b/templates/dell_powerconnect_show_interfaces_status.textfsm @@ -0,0 +1,21 @@ +Value PORT (\S+) +Value TYPE (\S+) +Value DUPLEX (Full|Half|--) +Value SPEED (\d+|--) +Value NEG (Enabled|Disabled|--) +Value FLOWCTRL (Off|On|--) +Value LINKSTATE (Up|Down) +Value BACKPRESSURE (Disabled|Enabled|--) +Value MDIXMODE (Off|On|--) + +Start + ^Port\s+Type\s+Duplex\s+Speed\s+Neg\s+ctrl\s+State\s+Pressure\s+Mode -> Begin + +Begin + ^\s+Flow\s+Link\s+Back\s+Mdix + ^-+ + ^${PORT}\s+${TYPE}\s+${DUPLEX}\s+${SPEED}\s+${NEG}\s+${FLOWCTRL}\s+${LINKSTATE}\s+${BACKPRESSURE}\s+${MDIXMODE} -> Record + ^\s+Flow\s+Link + ^Ch\s+Type\s+Duplex\s+Speed\s+Neg\s+control\s+State -> End + ^\s* + ^. -> Error diff --git a/templates/index b/templates/index index 5d44cbbd09..f17ff3b334 100644 --- a/templates/index +++ b/templates/index @@ -77,7 +77,7 @@ avaya_ers_show_mlt.textfsm, .*, avaya_ers, sh[[ow]] ml[[t]] avaya_vsp_show_software.textfsm, .*, avaya_vsp, sho[[w]] so[[ftware]] -broadcom_icos_show_lldp_remote-device_all.textfsm, .*, broadcom_icos, sh[[ow]] lld[[p]] r[[emote-device]] a[[ll]] +broadcom_icos_show_lldp_remote-device_all.textfsm, .*, broadcom_icos, sh[[ow]] lld[[p]] r[[emote-device]] a[[ll]] broadcom_icos_show_isdp_neighbors.textfsm, .*, broadcom_icos, sh[[ow]] is[[dp]] n[[eighbors]] broadcom_icos_show_mac-addr-table.textfsm, .*, broadcom_icos, sh[[ow]] mac-addr-[[table]] broadcom_icos_show_vlan_brief.textfsm, .*, broadcom_icos, sh[[ow]] vl[[an]] b[[rief]] @@ -369,6 +369,10 @@ dell_force10_show_version.textfsm, .*, dell_force10, sh[[ow]] ver[[sion]] dell_force10_show_vlan.textfsm, .*, dell_force10, sh[[ow]] vl[[an]] dell_force10_show_arp.textfsm, .*, dell_force10, sh[[ow]] ar[[p]] +dell_powerconnect_show_interfaces_description.textfsm, .*, dell_powerconnect, sh[[ow]] int[[erfaces]] des[[cription]] +dell_powerconnect_show_bridge_address_table.textfsm, .*, dell_powerconnect, sh[[ow]] br[[idge]] a[[ddress-table]] +dell_powerconnect_show_interfaces_status.textfsm, .*, dell_powerconnect, sh[[ow]] int[[erfaces]] st[[atus]] + fortinet_get_router_info_bgp_summary.textfsm, .*, fortinet, g[[et]] r[[outer]] info bg[[p]] su[[mmary]] fortinet_get_system_interface.textfsm, .*, fortinet, [[g]]et [[s]]ystem [[i]]nterface fortinet_get_system_status.textfsm, .*, fortinet, [[g]]et [[s]]ystem [[s]]tatus diff --git a/tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.raw b/tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.raw new file mode 100644 index 0000000000..edb5d4b384 --- /dev/null +++ b/tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.raw @@ -0,0 +1,30 @@ +Aging time is 300 sec + + Vlan Mac Address Port Type +-------- --------------------- ------ ---------- + 5 00:08:e3:ff:fc:28 g48 dynamic + 5 00:13:c6:05:d3:1f g48 dynamic + 5 0c:f5:a4:cf:21:1f g48 dynamic + 5 8c:60:4f:59:90:81 g44 dynamic + 5 8c:60:4f:59:98:01 g43 dynamic + 12 00:08:e3:ff:fc:28 g48 dynamic + 12 00:11:32:7c:0e:ba g48 dynamic + 220 00:08:e3:ff:fc:28 g48 dynamic + 220 00:0a:f7:14:c0:92 g48 dynamic + 220 00:0a:f7:14:c3:80 g48 dynamic + 220 00:0a:f7:38:33:10 g48 dynamic + 220 00:0a:f7:6a:56:30 g48 dynamic + 220 4c:d9:8f:00:31:7a g19 dynamic + 220 4c:d9:8f:00:33:24 g17 dynamic + 220 4c:d9:8f:09:c9:10 g31 dynamic + 220 4c:d9:8f:09:c9:16 g30 dynamic + 220 4c:d9:8f:09:c9:40 g37 dynamic + 220 4c:d9:8f:9f:04:3c g48 dynamic + 220 5c:f9:dd:fd:8b:72 g12 dynamic + 220 5c:f9:dd:fd:8c:28 g38 dynamic + 220 5c:f9:dd:fd:90:bc g11 dynamic + 220 5c:f9:dd:fd:9a:da g10 dynamic + 220 70:81:05:1d:e6:e2 g48 dynamic + 220 70:b5:e8:d5:de:d6 g13 dynamic + 220 70:b5:e8:d5:e2:fc g2 dynamic + 220 70:b5:e8:d5:e6:d4 g1 dynamic diff --git a/tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.yml b/tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.yml new file mode 100644 index 0000000000..af969b75f8 --- /dev/null +++ b/tests/dell_powerconnect/show_bridge_address_table/dell_powerconnect_show_bridge_address_table.yml @@ -0,0 +1,106 @@ +--- +parsed_sample: + - destination_address: "00:08:e3:ff:fc:28" + type: "dynamic" + vlan: "5" + destination_port: "g48" + - destination_address: "00:13:c6:05:d3:1f" + type: "dynamic" + vlan: "5" + destination_port: "g48" + - destination_address: "0c:f5:a4:cf:21:1f" + type: "dynamic" + vlan: "5" + destination_port: "g48" + - destination_address: "8c:60:4f:59:90:81" + type: "dynamic" + vlan: "5" + destination_port: "g44" + - destination_address: "8c:60:4f:59:98:01" + type: "dynamic" + vlan: "5" + destination_port: "g43" + - destination_address: "00:08:e3:ff:fc:28" + type: "dynamic" + vlan: "12" + destination_port: "g48" + - destination_address: "00:11:32:7c:0e:ba" + type: "dynamic" + vlan: "12" + destination_port: "g48" + - destination_address: "00:08:e3:ff:fc:28" + type: "dynamic" + vlan: "220" + destination_port: "g48" + - destination_address: "00:0a:f7:14:c0:92" + type: "dynamic" + vlan: "220" + destination_port: "g48" + - destination_address: "00:0a:f7:14:c3:80" + type: "dynamic" + vlan: "220" + destination_port: "g48" + - destination_address: "00:0a:f7:38:33:10" + type: "dynamic" + vlan: "220" + destination_port: "g48" + - destination_address: "00:0a:f7:6a:56:30" + type: "dynamic" + vlan: "220" + destination_port: "g48" + - destination_address: "4c:d9:8f:00:31:7a" + type: "dynamic" + vlan: "220" + destination_port: "g19" + - destination_address: "4c:d9:8f:00:33:24" + type: "dynamic" + vlan: "220" + destination_port: "g17" + - destination_address: "4c:d9:8f:09:c9:10" + type: "dynamic" + vlan: "220" + destination_port: "g31" + - destination_address: "4c:d9:8f:09:c9:16" + type: "dynamic" + vlan: "220" + destination_port: "g30" + - destination_address: "4c:d9:8f:09:c9:40" + type: "dynamic" + vlan: "220" + destination_port: "g37" + - destination_address: "4c:d9:8f:9f:04:3c" + type: "dynamic" + vlan: "220" + destination_port: "g48" + - destination_address: "5c:f9:dd:fd:8b:72" + type: "dynamic" + vlan: "220" + destination_port: "g12" + - destination_address: "5c:f9:dd:fd:8c:28" + type: "dynamic" + vlan: "220" + destination_port: "g38" + - destination_address: "5c:f9:dd:fd:90:bc" + type: "dynamic" + vlan: "220" + destination_port: "g11" + - destination_address: "5c:f9:dd:fd:9a:da" + type: "dynamic" + vlan: "220" + destination_port: "g10" + - destination_address: "70:81:05:1d:e6:e2" + type: "dynamic" + vlan: "220" + destination_port: "g48" + - destination_address: "70:b5:e8:d5:de:d6" + type: "dynamic" + vlan: "220" + destination_port: "g13" + - destination_address: "70:b5:e8:d5:e2:fc" + type: "dynamic" + vlan: "220" + destination_port: "g2" + - destination_address: "70:b5:e8:d5:e6:d4" + type: "dynamic" + vlan: "220" + destination_port: "g1" diff --git a/tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.raw b/tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.raw new file mode 100644 index 0000000000..547268c5f8 --- /dev/null +++ b/tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.raw @@ -0,0 +1,61 @@ +Port Description +------- ----------- +g1 TO_SRV05-VSAN_[DRAC] +g2 TO_SRV11-V6_[DRAC] +g3 TO_SRV06-V6_[DRAC] +g4 TO_SRV07-V6_[DRAC] +g5 TO_SRV08-V6_[DRAC] +g6 TO-NAS-MASTER_[DRAC] +g7 TO-NAS-MASTER_[admin] +g8 SRV-IDRAC +g9 SRV-EXT2-IDRAC +g10 TO_SRV02-V3_[DRAC] +g11 TO_SRV03-V3_[DRAC] +g12 TO_SRV04-V3_[DRAC] +g13 TO_SRV12-V6_[DRAC] +g14 TO_SRV01-V4_[DRAC] +g15 TO_SRV02-V4_[DRAC] +g16 TO_SRV09-ESS_[DRAC] +g17 TO_SRV01-V2_[DRAC] +g18 TO_SRV02-V2_[DRAC] +g19 TO_SRV03-V2_[DRAC] +g20 TO_SRV04-V2_[DRAC] +g21 TO_SAN-SAS-2_[C0] +g22 TO_SAN-SAS-2_[C1] +g23 TO_SRV09-V6_[DRAC] +g24 TO_SRV10-V6_[DRAC] +g25 TO_SRV04-VSAN_[DRAC] +g26 TO_SRV07-LC_[DRAC] +g27 TO_SRV03-VSAN_[DRAC] +g28 TO_SAN-[CTRL-0] +g29 TO_SAN-[CTRL-1] +g30 TO_SRV10-VSAN_[DRAC] +g31 TO_SRV09-VSAN_[DRAC] +g32 TO_SRV02-VSAN_[DRAC] +g33 TO_SAN2-[CTRL-0] +g34 TO_SAN2-[CTRL-1] +g35 TO_SAN3[CTRL-0] +g36 TO_SAN3[CTRL-1] +g37 TO_SRV01-VSAN_[DRAC] +g38 TO_SRV01-V3_[DRAC] +g39 TO_SAN4[CTRL-0] +g40 TO_SAN4[CTRL-1] +g41 TO_SAN5[CTRL-0] +g42 TO_SAN5[CTRL-1] +g43 TO_UPLINK1_[1Gbit] +g44 TO_UPLINK2_[1Gbit] +g45 TO_SRV07-V2_[DRAC] +g46 +g47 +g48 ADMIN_[1Gbit] + +Ch Description +------- ----------- +ch1 +ch2 +ch3 +ch4 +ch5 +ch6 +ch7 +ch8 diff --git a/tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.yml b/tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.yml new file mode 100644 index 0000000000..e66ca3b4e6 --- /dev/null +++ b/tests/dell_powerconnect/show_interfaces_description/dell_powerconnect_show_interfaces_description.yml @@ -0,0 +1,98 @@ +--- +parsed_sample: + - interface: "g1" + description: "TO_SRV05-VSAN_[DRAC]" + - interface: "g2" + description: "TO_SRV11-V6_[DRAC]" + - interface: "g3" + description: "TO_SRV06-V6_[DRAC]" + - interface: "g4" + description: "TO_SRV07-V6_[DRAC]" + - interface: "g5" + description: "TO_SRV08-V6_[DRAC]" + - interface: "g6" + description: "TO-NAS-MASTER_[DRAC]" + - interface: "g7" + description: "TO-NAS-MASTER_[admin]" + - interface: "g8" + description: "SRV-IDRAC" + - interface: "g9" + description: "SRV-EXT2-IDRAC" + - interface: "g10" + description: "TO_SRV02-V3_[DRAC]" + - interface: "g11" + description: "TO_SRV03-V3_[DRAC]" + - interface: "g12" + description: "TO_SRV04-V3_[DRAC]" + - interface: "g13" + description: "TO_SRV12-V6_[DRAC]" + - interface: "g14" + description: "TO_SRV01-V4_[DRAC]" + - interface: "g15" + description: "TO_SRV02-V4_[DRAC]" + - interface: "g16" + description: "TO_SRV09-ESS_[DRAC]" + - interface: "g17" + description: "TO_SRV01-V2_[DRAC]" + - interface: "g18" + description: "TO_SRV02-V2_[DRAC]" + - interface: "g19" + description: "TO_SRV03-V2_[DRAC]" + - interface: "g20" + description: "TO_SRV04-V2_[DRAC]" + - interface: "g21" + description: "TO_SAN-SAS-2_[C0]" + - interface: "g22" + description: "TO_SAN-SAS-2_[C1]" + - interface: "g23" + description: "TO_SRV09-V6_[DRAC]" + - interface: "g24" + description: "TO_SRV10-V6_[DRAC]" + - interface: "g25" + description: "TO_SRV04-VSAN_[DRAC]" + - interface: "g26" + description: "TO_SRV07-LC_[DRAC]" + - interface: "g27" + description: "TO_SRV03-VSAN_[DRAC]" + - interface: "g28" + description: "TO_SAN-[CTRL-0]" + - interface: "g29" + description: "TO_SAN-[CTRL-1]" + - interface: "g30" + description: "TO_SRV10-VSAN_[DRAC]" + - interface: "g31" + description: "TO_SRV09-VSAN_[DRAC]" + - interface: "g32" + description: "TO_SRV02-VSAN_[DRAC]" + - interface: "g33" + description: "TO_SAN2-[CTRL-0]" + - interface: "g34" + description: "TO_SAN2-[CTRL-1]" + - interface: "g35" + description: "TO_SAN3[CTRL-0]" + - interface: "g36" + description: "TO_SAN3[CTRL-1]" + - interface: "g37" + description: "TO_SRV01-VSAN_[DRAC]" + - interface: "g38" + description: "TO_SRV01-V3_[DRAC]" + - interface: "g39" + description: "TO_SAN4[CTRL-0]" + - interface: "g40" + description: "TO_SAN4[CTRL-1]" + - interface: "g41" + description: "TO_SAN5[CTRL-0]" + - interface: "g42" + description: "TO_SAN5[CTRL-1]" + - interface: "g43" + description: "TO_UPLINK1_[1Gbit]" + - interface: "g44" + description: "TO_UPLINK2_[1Gbit]" + - interface: "g45" + description: "TO_SRV07-V2_[DRAC]" + - interface: "g46" + description: "" + - interface: "g47" + description: "" + - interface: "g48" + description: "ADMIN_[1Gbit]" diff --git a/tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.raw b/tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.raw new file mode 100644 index 0000000000..9445049bec --- /dev/null +++ b/tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.raw @@ -0,0 +1,63 @@ +Flow Link Back Mdix +Port Type Duplex Speed Neg ctrl State Pressure Mode +-------- ------------ ------ ----- -------- ---- ----------- -------- ------- +g1 1G-Copper Full 1000 Enabled Off Up Disabled On +g2 1G-Copper Full 1000 Enabled Off Up Disabled On +g3 1G-Copper Full 1000 Enabled Off Up Disabled On +g4 1G-Copper Full 1000 Enabled Off Up Disabled On +g5 1G-Copper Full 1000 Enabled Off Up Disabled On +g6 1G-Copper Full 100 Enabled Off Up Disabled On +g7 1G-Copper Full 100 Enabled Off Up Disabled On +g8 1G-Copper Full 1000 Enabled Off Up Disabled On +g9 1G-Copper Full 1000 Enabled Off Up Disabled On +g10 1G-Copper Full 1000 Enabled Off Up Disabled Off +g11 1G-Copper Full 1000 Enabled Off Up Disabled On +g12 1G-Copper Full 1000 Enabled Off Up Disabled On +g13 1G-Copper Full 1000 Enabled Off Up Disabled On +g14 1G-Copper Full 1000 Enabled Off Up Disabled On +g15 1G-Copper Full 1000 Enabled Off Up Disabled On +g16 1G-Copper Full 1000 Enabled Off Up Disabled On +g17 1G-Copper Full 1000 Enabled Off Up Disabled Off +g18 1G-Copper Full 1000 Enabled Off Up Disabled On +g19 1G-Copper Full 1000 Enabled Off Up Disabled On +g20 1G-Copper Full 1000 Enabled Off Up Disabled On +g21 1G-Copper Full 100 Enabled Off Up Disabled On +g22 1G-Copper Full 100 Enabled Off Up Disabled On +g23 1G-Copper Full 1000 Enabled Off Up Disabled On +g24 1G-Copper Full 1000 Enabled Off Up Disabled Off +g25 1G-Copper Full 1000 Enabled Off Up Disabled On +g26 1G-Copper Full 1000 Enabled Off Up Disabled On +g27 1G-Copper Full 1000 Enabled Off Up Disabled On +g28 1G-Copper Full 100 Enabled Off Up Disabled On +g29 1G-Copper Full 100 Enabled Off Up Disabled On +g30 1G-Copper Full 1000 Enabled Off Up Disabled On +g31 1G-Copper Full 1000 Enabled Off Up Disabled Off +g32 1G-Copper Full 1000 Enabled Off Up Disabled Off +g33 1G-Copper Full 100 Enabled Off Up Disabled On +g34 1G-Copper Full 100 Enabled Off Up Disabled On +g35 1G-Copper Full 100 Enabled Off Up Disabled On +g36 1G-Copper -- -- -- -- Down -- -- +g37 1G-Copper Full 1000 Enabled Off Up Disabled On +g38 1G-Copper Full 1000 Enabled Off Up Disabled On +g39 1G-Copper Full 100 Enabled Off Up Disabled On +g40 1G-Copper -- -- -- -- Down -- -- +g41 1G-Copper Full 100 Enabled Off Up Disabled On +g42 1G-Copper Full 100 Enabled Off Up Disabled On +g43 1G-Copper Full 1000 Enabled Off Up Disabled On +g44 1G-Copper Full 1000 Enabled Off Up Disabled Off +g45 1G-Combo-C -- -- -- -- Down -- -- +g46 1G-Combo-C -- -- -- -- Down -- -- +g47 1G-Combo-C -- -- -- -- Down -- -- +g48 1G-Combo-F Full 1000 Enabled Off Up Disabled Off + +Flow Link +Ch Type Duplex Speed Neg control State +-------- ------- ------ ----- -------- ------- ----------- +ch1 -- -- -- -- -- Not Present +ch2 -- -- -- -- -- Not Present +ch3 -- -- -- -- -- Not Present +ch4 -- -- -- -- -- Not Present +ch5 -- -- -- -- -- Not Present +ch6 -- -- -- -- -- Not Present +ch7 -- -- -- -- -- Not Present +ch8 -- -- -- -- -- Not Present diff --git a/tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.yml b/tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.yml new file mode 100644 index 0000000000..637d3e6e3d --- /dev/null +++ b/tests/dell_powerconnect/show_interfaces_status/dell_powerconnect_show_interfaces_status.yml @@ -0,0 +1,434 @@ +--- +parsed_sample: + - port: "g1" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g2" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g3" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g4" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g5" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g6" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g7" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g8" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g9" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g10" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "Off" + - port: "g11" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g12" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g13" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g14" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g15" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g16" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g17" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "Off" + - port: "g18" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g19" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g20" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g21" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g22" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g23" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g24" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "Off" + - port: "g25" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g26" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g27" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g28" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g29" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g30" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g31" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "Off" + - port: "g32" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "Off" + - port: "g33" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g34" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g35" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g36" + type: "1G-Copper" + duplex: "--" + speed: "--" + neg: "--" + flowctrl: "--" + linkstate: "Down" + backpressure: "--" + mdixmode: "--" + - port: "g37" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g38" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g39" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g40" + type: "1G-Copper" + duplex: "--" + speed: "--" + neg: "--" + flowctrl: "--" + linkstate: "Down" + backpressure: "--" + mdixmode: "--" + - port: "g41" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g42" + type: "1G-Copper" + duplex: "Full" + speed: "100" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g43" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "On" + - port: "g44" + type: "1G-Copper" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "Off" + - port: "g45" + type: "1G-Combo-C" + duplex: "--" + speed: "--" + neg: "--" + flowctrl: "--" + linkstate: "Down" + backpressure: "--" + mdixmode: "--" + - port: "g46" + type: "1G-Combo-C" + duplex: "--" + speed: "--" + neg: "--" + flowctrl: "--" + linkstate: "Down" + backpressure: "--" + mdixmode: "--" + - port: "g47" + type: "1G-Combo-C" + duplex: "--" + speed: "--" + neg: "--" + flowctrl: "--" + linkstate: "Down" + backpressure: "--" + mdixmode: "--" + - port: "g48" + type: "1G-Combo-F" + duplex: "Full" + speed: "1000" + neg: "Enabled" + flowctrl: "Off" + linkstate: "Up" + backpressure: "Disabled" + mdixmode: "Off" diff --git a/tests/test_index_order.py b/tests/test_index_order.py index 382d0c24e2..5c38116c8d 100755 --- a/tests/test_index_order.py +++ b/tests/test_index_order.py @@ -34,6 +34,7 @@ "cisco_xe", "cisco_xr", "dell_force10", + "dell_powerconnect", "enterasys", "extreme", "f5_ltm",