-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create cisco_xr_show_run_hostname (#1825)
- Loading branch information
1 parent
934603d
commit 48451c5
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 2 additions & 0 deletions
2
tests/cisco_xr/show_run_hostname/cisco_xr_show_run_hostname.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
3 changes: 3 additions & 0 deletions
3
tests/cisco_xr/show_run_hostname/cisco_xr_show_run_hostname.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
parsed_sample: | ||
- hostname: "rtr-01" |