Skip to content

Commit

Permalink
Added template for Extreme EXOS show fdb (#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-sheedy authored Dec 11, 2024
1 parent a13dc8a commit 412e704
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ntc_templates/templates/extreme_exos_show_fdb.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Value MAC_ADDRESS (\S+)
Value VLAN_NAME (\S+)
Value VLAN_ID (\d+)
Value AGE (\d+)
Value INTERFACE (\S+(\s+\S+)*)

Start
^MAC\s+VLAN\s+Name\s*\(\s*Tag\s*\)\s+Age\s+Flags\s+Port\s+\/\s+Virtual\s+Port\s+List -> Start_record
^. -> Error

Start_record
^\s*-+\s*$$
^${MAC_ADDRESS}\s+${VLAN_NAME}\(0*${VLAN_ID}\)\s+0*${AGE}\D+${INTERFACE}\s*$$ -> Record
^\s*Flags\s+:
^\s*x\s+-\s+IPX
^\s*b\s+-\s+Ingress\s+Blackhole
^\s*D\s+-\s+drop\s+packet
^\s*S\s+-\s+Software\s+Controlled\s+Deletion
^\s*X\s+-\s+VXLAN
^\s*Total:
^\s*FDB\s+Aging\s+time:
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ extreme_exos_show_vlan_description.textfsm, .*, extreme_exos, show vlan descript
extreme_exos_show_ipconfig.textfsm, .*, extreme_exos, show ipconfig
extreme_exos_show_sharing.textfsm, .*, extreme_exos, show sharing
extreme_exos_show_iparp.textfsm, .*, extreme_exos, show iparp
extreme_exos_show_fdb.textfsm, .*, extreme_exos, sh[[ow]] fdb

extreme_slxos_show_ip_interface_brief.textfsm, .*, extreme_slxos, sh[[ow]] ip int[[erface]] br[[ief]]
extreme_slxos_show_clock.textfsm, .*, extreme_slxos, show clock
Expand Down
19 changes: 19 additions & 0 deletions tests/extreme_exos/show_fdb/extreme_exos_show_fdb.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
MAC VLAN Name( Tag) Age Flags Port / Virtual Port List
------------------------------------------------------------------------------------------------------
00:0c:29:4b:34:cf v101(0101) 0041 d m D 1:2
00:0c:29:4b:34:cf v100(0100) 0041 d m P 1:2
00:0c:29:d2:2d:48 v102(0102) 0045 d miM 1:3, 1:45
00:0c:29:d2:2d:48 v100(0100) 0045 d m P 1:3
00:0c:29:f1:f2:f5 v100(0100) 0045 d miM 1:51:1, 1:45
00:0c:29:f1:f2:f5 v102(0102) 0045 d m P 1:1
00:0c:29:f1:f2:f5 v101(0101) 0000 d m P 1:1

Flags : d - Dynamic, s - Static, p - Permanent, n - NetLogin, m - MAC, i - IP,
x - IPX, l - lockdown MAC, L - lockdown-timeout MAC, M- Mirror, B - Egress Blackhole,
b - Ingress Blackhole, v - MAC-Based VLAN, P - Private VLAN, T - VLAN translation,
D - drop packet, h - Hardware Aging (Age=0), o - IEEE 802.1ah Backbone MAC,
S - Software Controlled Deletion, r - MSRP,
X - VXLAN, E - EVPN

Total: 3 Static: 0 Perm: 0 Dyn: 3 Dropped: 1 Locked: 0 Locked with Timeout: 0
FDB Aging time: 300
37 changes: 37 additions & 0 deletions tests/extreme_exos/show_fdb/extreme_exos_show_fdb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
parsed_sample:
- age: "41"
interface: "1:2"
mac_address: "00:0c:29:4b:34:cf"
vlan_id: "101"
vlan_name: "v101"
- age: "41"
interface: "1:2"
mac_address: "00:0c:29:4b:34:cf"
vlan_id: "100"
vlan_name: "v100"
- age: "45"
interface: "1:3, 1:45"
mac_address: "00:0c:29:d2:2d:48"
vlan_id: "102"
vlan_name: "v102"
- age: "45"
interface: "1:3"
mac_address: "00:0c:29:d2:2d:48"
vlan_id: "100"
vlan_name: "v100"
- age: "45"
interface: "1:51:1, 1:45"
mac_address: "00:0c:29:f1:f2:f5"
vlan_id: "100"
vlan_name: "v100"
- age: "45"
interface: "1:1"
mac_address: "00:0c:29:f1:f2:f5"
vlan_id: "102"
vlan_name: "v102"
- age: "0"
interface: "1:1"
mac_address: "00:0c:29:f1:f2:f5"
vlan_id: "101"
vlan_name: "v101"

0 comments on commit 412e704

Please sign in to comment.