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

add arista eos show ip mroute detail template #2009

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

brandomando
Copy link
Contributor

No description provided.

Comment on lines 18 to 20
^\s{4}[RWIHZANTVF]\s-
^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) -> Continue.Record
^${MULTICAST_GROUP}

This comment was marked as outdated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this YAML test data was regenerated with the helper scripts the keys would be in alphabetical order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry... Friday afternoon, so I missed that one trying to get out the door ;-)

Comment on lines 28 to 29
^\s{6}\S+
^\s{4}\S\s-> Continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going through this more closely and will provide updated regexes (most likely in a PR to your fork).

There are several regexes that are loose if it wasn't for the curly brace quantifiers.
And there's a syntax error, but that doesn't seem to cause the template to fail since it is mistaken as a pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmcgill298 and I used those loose regexes as an escape to the capture of the OUTGOING_INTERFACE_LIST because there was no pattern to match on in those lines to break out of that section without capturing the lines in the State summarization macros section below it. The line that matches that continue statement would be re-evaluated below. I will say, however that I put in 27 and 28 after the fact, and I did mess up the order of it there. 29 should actually be sitting above 27, directly below ^\s{6}${OUTGOING_INTERFACE_LIST}$$. I will correct that and resubmit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The loose ^\s{6}\S+ and changes to its whitespace were the crux of issues (that I then caused).

I've managed to remove all the curly brace quantifiers and keep the template parsing. 😅

@mjbear
Copy link
Contributor

mjbear commented Feb 1, 2025

@brandomando
I dropped you a PR to consider via brandomando#1

Earlier I needed to realize that loose regex in the middle was going to bite me (and cause GH Actions heartburn), apologies.

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