Skip to content

Commit

Permalink
New template: Dell PowerConnect show int description (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidebr authored Dec 1, 2020
1 parent baf11f7 commit dbee8b2
Show file tree
Hide file tree
Showing 11 changed files with 844 additions and 1 deletion.
13 changes: 13 additions & 0 deletions templates/dell_powerconnect_show_bridge_address_table.textfsm
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions templates/dell_powerconnect_show_interfaces_description.textfsm
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions templates/dell_powerconnect_show_interfaces_status.textfsm
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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]"
Loading

0 comments on commit dbee8b2

Please sign in to comment.