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 NXOS show vdc #586

Closed
wants to merge 1 commit into from

Conversation

kwrobert
Copy link
Contributor

SUMMARY

Added template with tests to parse the show vdc command on Cisco NXOS
devices. Useful if you are only given the IP to the default VDC but need
to retrieve info from other vdcs as well.

Modified index to include new template.

ISSUE TYPE
  • New Template Pull Request
COMPONENT

OS: Cisco NXOS
Command: show vdc
Template: cisco_nxos_show_vdc.textfsm

Added template with tests to parse the `show vdc` command on Cisco NXOS
devices. Useful if you are only given the IP to the default VDC but need
to retrieve info from other vdcs as well.

Modified index to include new template.
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.

@kwrobert need to ensure all data is accounted for; I believe my suggested updates should work, but I have not tested.


Start
^\s*${VDC_ID}\s+${VDC_NAME}\s+${STATE}\s+${MAC}\s+${TYPE}\s+${LC} -> 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
^[Ss]witchwide\s+mode
^vdc_id\s+vdc_name\s+state\s+mac\s+type\s+lc\s*$$
^-+
^\s*$$
^. -> Error

@FragmentedPacket
Copy link
Contributor

Closed via #591

Thanks again for the new template!

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 New Template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants