Skip to content

Commit

Permalink
Create cisco_xr_show_run_hostname (#1825)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathondamidco authored Aug 30, 2024
1 parent 934603d commit 48451c5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ntc_templates/templates/cisco_xr_show_run_hostname.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Value HOSTNAME (\S+)

Start
# Capture date output by XR by 'show run hostname' first
^\S+ \S+ \S+ .*$$
# Capture hostname
^hostname ${HOSTNAME}$$
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Thu Aug 29 16:30:30.674 CDT
hostname rtr-01
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
parsed_sample:
- hostname: "rtr-01"

0 comments on commit 48451c5

Please sign in to comment.