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

New Template: Cisco XR - show arp #567

Merged
merged 2 commits into from
Jan 12, 2020

Conversation

migueloangelo
Copy link
Contributor

ISSUE TYPE
  • New Template Pull Request [X]
  • Bugfix Pull Request
  • Additional Testing
  • Docs Pull Request
COMPONENT

Name: cisco_xr_show_arp
OS: cisco_xr
Command: show arp

SUMMARY

Template for the show arp command in Cisco XR. Tested with Cisco IOS XRv version 6.0.1. Also support the show arp vrf [VRFNAME] command.


Copy link
Contributor

@jmcgill298 jmcgill298 left a comment

Choose a reason for hiding this comment

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

Just adjusting how trailing spaces are handled.


Start
^\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\.\d+\s+\S+\s*$$
^Address\s+Age\s+Hardware Addr\s+State\s+Type\s+Interface$$
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
^Address\s+Age\s+Hardware Addr\s+State\s+Type\s+Interface$$
^Address\s+Age\s+Hardware\s+Addr\s+State\s+Type\s+Interface$$

Start
^\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\.\d+\s+\S+\s*$$
^Address\s+Age\s+Hardware Addr\s+State\s+Type\s+Interface$$
^-+$$
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
^-+$$
^-+

^\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\.\d+\s+\S+\s*$$
^Address\s+Age\s+Hardware Addr\s+State\s+Type\s+Interface$$
^-+$$
^${CPU}$$
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
^${CPU}$$
^${CPU}

^Address\s+Age\s+Hardware Addr\s+State\s+Type\s+Interface$$
^-+$$
^${CPU}$$
^\s$$
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
^\s$$
^\s*$$

^-+$$
^${CPU}$$
^\s$$
^${ADDRESS}\s+${AGE}\s+${MAC}\s+${STATE}\s+${TYPE}\s+${INTERFACE}$$ -> Record
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
^${ADDRESS}\s+${AGE}\s+${MAC}\s+${STATE}\s+${TYPE}\s+${INTERFACE}$$ -> Record
^${ADDRESS}\s+${AGE}\s+${MAC}\s+${STATE}\s+${TYPE}\s+${INTERFACE}\s*$$ -> Record

Value Filldown CPU (\d+/\d+/CPU\d+$)

Start
^\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\.\d+\s+\S+\s*$$
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
^\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\.\d+\s+\S+\s*$$
# Match the timestamp at beginning of command output
^\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\.\d+\s+\S+\s*$$

@migueloangelo
Copy link
Contributor Author

Done, thanks!

@migueloangelo migueloangelo reopened this Jan 3, 2020
@jmcgill298 jmcgill298 merged commit 086aec7 into networktocode:master Jan 12, 2020
thomasblass pushed a commit to thomasblass/ntc-templates that referenced this pull request Oct 25, 2020
jvanderaa pushed a commit that referenced this pull request Nov 10, 2021
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