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

Patch 2 #342

Merged
merged 2 commits into from
Jan 21, 2019
Merged

Patch 2 #342

merged 2 commits into from
Jan 21, 2019

Conversation

jmcgill298
Copy link
Contributor

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT

cisco_ios_show_mac-address-table

SUMMARY

Add new format that cam table is presented from cli


dagwieers and others added 2 commits January 20, 2019 21:41
So we had an issue with the below output as it would repeat the headers as part of the returned values.

The solution is to fix the regular expressions, as they would match too broad. For instance the expression `(\w+.\w+.\w+)` would match things like `A B C` or `Nightmare|On|ElmStreet`. Dots should be matched using `\.` and for a mac-address the regexp could be much more strict.

Same for vlan numbers we know it's between 1 and 4 digits.
@jmcgill298 jmcgill298 merged commit ae922d9 into master Jan 21, 2019
@jmcgill298 jmcgill298 deleted the patch-2 branch January 21, 2019 03:16
jvanderaa pushed a commit that referenced this pull request Nov 10, 2021
* Fix standard regular expressions to skip headers

* Add test files for template update
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

Successfully merging this pull request may close these issues.

2 participants