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

Feature/cisco ios show hosts #394

Conversation

MatthiasGabriel
Copy link
Contributor

@MatthiasGabriel MatthiasGabriel commented Apr 16, 2019

ISSUE TYPE
  • New Template Pull Request
COMPONENT

Template: cisco_ios_show_hosts_summary
OS: Cisco IOS
Command: show hosts summary

SUMMARY

Add a new template for the cisco ios show hosts summary which parses the default_domain, name_servers, local cache entries and dynamic cache entries.
the name servers are a comma separated string instead a list, because i couldn't get it to work.

@@ -0,0 +1,12 @@
Value DEFAULT_DOMAIN (\S+)
Value NAME_SERVERS ([\S ]+)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change the NAME_SERVERS regex to .+?

Also, can you please change any static spacing within the Start state to either \s* or \s+?

After those are addressed, we can merge this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing out the NAME_SERVERS.
I also updated the regex in the start state...

@FragmentedPacket FragmentedPacket added the changes_requested Waiting on user to address feedback label Jul 27, 2019
@FragmentedPacket FragmentedPacket merged commit d38f01c into networktocode:master Aug 2, 2019
jvanderaa pushed a commit that referenced this pull request Nov 10, 2021
New template: cisco_ios_show_hosts_summary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes_requested Waiting on user to address feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants