Skip to content

Commit

Permalink
New Template: ruckus_fastiron, show mac-address (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuasarKid authored and jmcgill298 committed Dec 2, 2022
1 parent b890275 commit d93a272
Show file tree
Hide file tree
Showing 6 changed files with 18,471 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ paloalto_panos_show_mac_all.textfsm, .*, paloalto_panos, sh[[ow]] mac all

ruckus_fastiron_show_interfaces_brief.textfsm, .*, ruckus_fastiron, sh[[ow]] int[[erfaces]] b[[rief]]
ruckus_fastiron_show_mac-address.textfsm, .*, ruckus_fastiron, sh[[ow]] mac[[-address]]
ruckus_fastiron_show_version.textfsm, .*, ruckus_fastiron, sh[[ow]] v[[ersion]]
ruckus_fastiron_show_version.textfsm, .*, ruckus_fastiron, sh[[ow]] ve[[rsion]]
ruckus_fastiron_show_vlan.textfsm, .*, ruckus_fastiron, sh[[ow]] vlan
ruckus_fastiron_show_arp.textfsm, .*, ruckus_fastiron, sh[[ow]] ar[[p]]

ubiquiti_edgerouter_show_interfaces_ethernet_physical.textfsm, .*, ubiquiti_edgerouter, sh[[ow]] interfaces ethernet (\S+\s)?physical
Expand Down
46 changes: 46 additions & 0 deletions ntc_templates/templates/ruckus_fastiron_show_vlan.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Value Filldown VLAN_ID (\d+)
Value Filldown NAME (\S+)
Value Required STATUS ((Untagged|Tagged))
Value STACK_ID (\d+)
Value SLOT (\d+)
Value Required PORT (\d+)
Value LAG (\S+)

Start
^Total\sPORT-VLAN\sentries:\s\d+
^Maximum\sPORT-VLAN\sentries:\s\d+
^Legend:\s\[Stk=Stack-Id,\sS=Slot\]
^PORT-VLAN\s${VLAN_ID},\sName\s${NAME},\sPriority\s+level\d+,\s(Off|On)\s*
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){1}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){2}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){3}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){4}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){5}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){6}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){7}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){8}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){9}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){10}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(U${STACK_ID}\/M${SLOT}\)\s+(?:\d+\s+){11}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){1}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){2}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){3}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){4}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){5}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){6}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){7}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){8}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){9}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){10}${PORT} -> Continue.Record
^\s+${STATUS}\s+Ports:\s+\(${LAG}\)\s+(?:\d+\s+){11}${PORT} -> Continue.Record
^\s+(Untagged|Tagged)\s+Ports:\s+\(\S+\)\s+(?:\d+\s+)*\d+\s*$$
^\s+(Untagged|Tagged)\s+Ports:\s+None
^\s+Mac-Vlan\s+Ports:\s+
^\s+Monitoring:\s+
^\s*$$
^.+ -> Error

Done
^.*
61 changes: 61 additions & 0 deletions tests/ruckus_fastiron/show_vlan/show_vlan.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Total PORT-VLAN entries: 10
Maximum PORT-VLAN entries: 1024

Legend: [Stk=Stack-Id, S=Slot]

PORT-VLAN 1, Name OPS, Priority level0, Off
Untagged Ports: (U1/M1) 4 5 6 7 8 9
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 2, Name REG, Priority level0, Off
Untagged Ports: (U1/M1) 10 11 12
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 3, Name DVR, Priority level0, Off
Untagged Ports: (U1/M1) 13 14 15 16 17 18 19 20 21 22 23 24
Untagged Ports: (U1/M1) 25 26 27 28 29 30 31 32 33 34 35 36
Untagged Ports: (U1/M1) 37 38 39 40 41 42 43 44 45 46
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 4, Name SIPS, Priority level0, Off
Untagged Ports: (U1/M1) 47 48
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 5, Name APS, Priority level0, Off
Untagged Ports: (U1/M1) 1 2 3
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 7, Name P2PE, Priority level0, Off
Untagged Ports: None
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 10, Name 901SIPS, Priority level0, Off
Untagged Ports: None
Tagged Ports: (U1/M1) 1 2 3
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 11, Name CUSTOMERWIFI, Priority level0, Off
Untagged Ports: None
Tagged Ports: (U1/M1) 1 2 3
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 12, Name SYOD, Priority level0, Off
Untagged Ports: None
Tagged Ports: (U1/M1) 1 2 3
Tagged Ports: (U1/M2) 1
Mac-Vlan Ports: None
Monitoring: Disabled
PORT-VLAN 666, Name DEFAULT-VLAN, Priority level0, Off
Untagged Ports: (U1/M2) 1 2
Untagged Ports: (U1/M3) 1 2 3 4
Tagged Ports: None
Mac-Vlan Ports: None
Monitoring: Disabled
Loading

0 comments on commit d93a272

Please sign in to comment.