-
Notifications
You must be signed in to change notification settings - Fork 735
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
Conversation
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. |
@jonathondamidco does XR support |
@jmcgill298 Neither of those commands are available. Without it being in the output of |
tests/cisco_xr/show_run_hostname/cisco_xr_show_run_hostname.raw
Outdated
Show resolved
Hide resolved
tests/cisco_xr/show_run_hostname/cisco_xr_show_run_hostname.yml
Outdated
Show resolved
Hide resolved
tests/cisco_xr/show_run_hostname/cisco_xr_show_run_hostname.yml
Outdated
Show resolved
Hide resolved
tests/cisco_xr/show_run_hostname/cisco_xr_show_run_hostname.yml
Outdated
Show resolved
Hide resolved
thanks @jonathondamidco |
This template is required due to the inconsistency of availability of the commands
show version
,show version brief
andshow version detail
or the hostnames therein with different XR versions.show run hostname
is pretty straight-forward and should always return just the hostname.