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

Create cisco_xr_show_run_hostname #1825

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

jonathondamidco
Copy link
Contributor

This template is required due to the inconsistency of availability of the commands show version, show version brief and show version detail or the hostnames therein with different XR versions. show run hostname is pretty straight-forward and should always return just the hostname.

@jonathondamidco
Copy link
Contributor Author

You might also be asking why a textfsm template is even needed for this, since it's such a trivial thing to grab out of the CLI output. The answer is Nautobot Device Onboarding 4.0 needs textfsm to parse it out, since you can't display Cisco configs as JSON as you can with platforms like JunOS.

@jmcgill298
Copy link
Contributor

@jonathondamidco does XR support show hostname or admin show hostname?

@jonathondamidco
Copy link
Contributor Author

@jmcgill298 Neither of those commands are available. Without it being in the output of show version, I've been looking for any other show command that displays it.

@jmcgill298 jmcgill298 merged commit 48451c5 into networktocode:master Aug 30, 2024
@jmcgill298
Copy link
Contributor

thanks @jonathondamidco

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