Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco_ios_show_mac-address-table support for pvlans #830

Closed
jkvalk opened this issue Nov 30, 2020 · 0 comments
Closed

cisco_ios_show_mac-address-table support for pvlans #830

jkvalk opened this issue Nov 30, 2020 · 0 comments

Comments

@jkvalk
Copy link

jkvalk commented Nov 30, 2020

ISSUE TYPE
  • Bug Report
TEMPLATE USING

Value DESTINATION_ADDRESS ([0-9a-fA-F]{4}.[0-9a-fA-F]{4}.[0-9a-fA-F]{4})
Value TYPE (\S+)
Value VLAN (\S+)
Value DESTINATION_PORT (\S+)

Start
^Destination\s+Address\s+Address\s+Type\s+VLAN\s+Destination\s+Port -> TYPE1
^\s+vlan\s+mac address\s+type\s+learn\s+age\s+ports -> TYPE2
^\s+vlan\s+mac address\s+type\s+protocols\s+port -> TYPE3
^Vlan\s+Mac Address\s+Type\s+Ports -> TYPE4

Capture time-stamp if vty line has command time-stamping turned on

^Load\s+for\s+
^Time\s+source\s+is

TYPE1
^${DESTINATION_ADDRESS}\s+${TYPE}\s+${VLAN}\s+${DESTINATION_PORT} -> Record
^-+\s+-+
^Displaying\s+entries
^Destination\s+Address\s+Address\s+Type\s+VLAN\s+Destination\s+Port
^\s*$$
^Multicast\s+Entries -> End
^. -> Error

TYPE2

Order of the group in brackets here matters

^\s*(?:*\s+R|*|R|\s)\s*${VLAN}\s+${DESTINATION_ADDRESS}\s+${TYPE}\s+\S+\s+\S+\s+${DESTINATION_PORT} -> Record
^-++-+
^Displaying\s+entries
^\s+vlan\s+mac address\s+type\s+learn\s+age\s+ports
^\s*$$
^Multicast\s+Entries -> End
^. -> Error

TYPE3
^\s*${VLAN}\s+${DESTINATION_ADDRESS}\s+${TYPE}\s+\S+\s+${DESTINATION_PORT} -> Record
^-++-+
^Displaying\s+entries
^\s+vlan\s+mac address\s+type\s+protocols\s+port
^\s*$$
^Multicast\s+Entries -> End
^. -> Error

TYPE4
^\s*${VLAN}\s+${DESTINATION_ADDRESS}\s+${TYPE}\s+${DESTINATION_PORT} -> Record
^-+\s+-+
^Displaying\s+entries
^Vlan\s+Mac Address\s+Type\s+Ports
^\s*$$
^Total\s+Mac\s+Addresses
^MultiCast\s+Entries -> End
^. -> Error


SAMPLE COMMAND OUTPUT

41 58ac.785c.25bc DYNAMIC pv Po1
41 58ac.785c.2b74 DYNAMIC pv Po1
1 0041.d277.c693 DYNAMIC Po1
1 0041.d2b8.b813 DYNAMIC Po1


SUMMARY

When using private vlans, "pv" gets registered as interface. Lines with "pv" should match TYPE3 and lines without "pv" should match TYPE4, but for some reason this does not work.

STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant