| 1 |
Value Required INTERFACE (\S+) |
| 2 |
Value SWITCHPORT (.+?) |
| 3 |
Value SWITCHPORT_MONITOR (.+?) |
| 4 |
Value SWITCHPORT_NEGOTIATION (.+?) |
| 5 |
Value MODE (.+?) |
| 6 |
Value ADMIN_MODE (.+?) |
| 7 |
Value ACCESS_VLAN (\d+|unassigned) |
| 8 |
Value NATIVE_VLAN (\d+) |
| 9 |
Value VOICE_VLAN (\S+) |
| 10 |
Value List TRUNKING_VLANS (\S+?) |
| 11 |
|
| 12 |
Start |
| 13 |
^Name: -> Continue.Record |
| 14 |
^Name:\s+${INTERFACE} |
| 15 |
^\s*Switchport:\s+${SWITCHPORT}$$ |
| 16 |
^\s*Switchport\s+Monitor:\s+${SWITCHPORT_MONITOR}$$ |
| 17 |
^\s*Operational\s+Mode:\s+${MODE}$$ |
| 18 |
^\s*Negotiation\s+of\s+Trunking:\s+${SWITCHPORT_NEGOTIATION}$$ |
| 19 |
^\s*Access\s+Mode\s+VLAN:\s+${ACCESS_VLAN} |
| 20 |
^\s*Trunking\s+Native\s+Mode\s+VLAN:\s+${NATIVE_VLAN} |
| 21 |
^\s*Voice\s+VLAN:\s+${VOICE_VLAN} |
| 22 |
^\s*Trunking\s+VLANs\s+Enabled:\s+${TRUNKING_VLANS},\s*$$ -> Trunk |
| 23 |
^\s*Trunking\s+VLANs\s+Enabled:\s+${TRUNKING_VLANS}$$ |
| 24 |
^\s*Trunking\s+VLANs\s+Active |
| 25 |
^\s*Administrative\s+Mode:\s+${ADMIN_MODE}$$ |
| 26 |
^\s*(?:Operational|Administrative)\s+(?:Trunking|Native\s+VLAN|private-vlan) |
| 27 |
^\s*Voice\s+VLAN: |
| 28 |
^\s*Pruning\s+VLANs |
| 29 |
^\s*Capture\s+(?:Mode|VLANs) |
| 30 |
^\s*Autostate\s+mode\s+exclude |
| 31 |
^\s*Protected |
| 32 |
^\s*Unknown\s+(unicast|multicast) |
| 33 |
^\s*Vepa\s+Enabled |
| 34 |
^\s*App\s+Interface |
| 35 |
^\s*Appliance\s+trust |
| 36 |
^\s*Operational\s+Dot1q\s+Ethertype |
| 37 |
^\s*Priority\s+for\s+untagged\s+frames |
| 38 |
^\s*Override\s+vlan\s+tag\s+priority |
| 39 |
^\s*$$ |
| 40 |
# Capture time-stamp if vty line has command time-stamping turned on |
| 41 |
^Load\s+for\s+ |
| 42 |
^Time\s+source\s+is |
| 43 |
^. -> Error |
| 44 |
|
| 45 |
Trunk |
| 46 |
^\s+${TRUNKING_VLANS},\s*$$ |
| 47 |
^\s+${TRUNKING_VLANS}\s*$$ -> Start |
| 48 |
^. -> Error |