You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template stops parsing interfaces after it hits a multiline VLAN list for “Trunking VLANs Enabled”. It appears that the custom trunk state either isn't necessary or needs to be modified. I've had success with something like the following...
Value Required INTERFACE (\S+)
Value SWITCHPORT (.+?)
Value SWITCHPORT_MONITOR (.+?)
Value SWITCHPORT_NEGOTIATION (.+?)
Value MODE (.+?)
Value ADMIN_MODE (.+?)
Value ACCESS_VLAN (\d+|unassigned)
Value NATIVE_VLAN (\d+)
Value VOICE_VLAN (\S+)
Value List TRUNKING_VLANS (\S+?)
Start
^Name: -> Continue.Record
^Name:\s+${INTERFACE}
^\s*Switchport:\s+${SWITCHPORT}$$
^\s*Switchport\s+Monitor:\s+${SWITCHPORT_MONITOR}$$
^\s*Operational\s+Mode:\s+${MODE}$$
^\s*Negotiation\s+of\s+Trunking:\s+${SWITCHPORT_NEGOTIATION}$$
^\s*Access\s+Mode\s+VLAN:\s+${ACCESS_VLAN}
^\s*Trunking\s+Native\s+Mode\s+VLAN:\s+${NATIVE_VLAN}
^\s*Voice\s+VLAN:\s+${VOICE_VLAN}
^\s*Trunking\s+VLANs\s+Enabled:\s+${TRUNKING_VLANS},\s*$$ -> Trunk
^\s*Trunking\s+VLANs\s+Enabled:\s+${TRUNKING_VLANS}$$
^\s*Administrative\s+Mode:\s+${ADMIN_MODE}$$
^\s*(?:Operational|Administrative)\s+(?:Trunking|Native\s+VLAN|private-vlan)
^\s*Voice\s+VLAN:
^\s*Pruning\s+VLANs
^\s*Capture\s+(?:Mode|VLANs)
^\s*Autostate\s+mode\s+exclude
^\s*Protected
^\s*Unknown\s+(unicast|multicast)
^\s*Vepa\s+Enabled
^\s*Appliance\s+trust
^\s*Operational\s+Dot1q\s+Ethertype
^\s*$$
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
^. -> Error
Trunk
^\s+${TRUNKING_VLANS},\s*$$
^\s+${TRUNKING_VLANS}\s*$$
^\s*Pruning\s+VLANs -> Start
^. -> Error
STEPS TO REPRODUCE
Use the template to parse output that includes interfaces after an interface that includes a multiline trunking VLAN list.
ISSUE TYPE
TEMPLATE USING
SAMPLE COMMAND OUTPUT
SUMMARY
The template stops parsing interfaces after it hits a multiline VLAN list for “Trunking VLANs Enabled”. It appears that the custom trunk state either isn't necessary or needs to be modified. I've had success with something like the following...
STEPS TO REPRODUCE
Use the template to parse output that includes interfaces after an interface that includes a multiline trunking VLAN list.
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: