Skip to content

Commit

Permalink
Updated template to support two output formats
Browse files Browse the repository at this point in the history
  • Loading branch information
mspiez committed Sep 10, 2019
1 parent 7d1b466 commit 354c74a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cisco_xr_show_version.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Start
Build_Info
^\s+Built\sBy.+
^\s+Built\sOn.+
^\s+Built\sHost\s+:\s+${BUILD_HOST}
^\s+Buil[dt]\sHost\s+:\s+${BUILD_HOST}
^\s+Workspace\s+:\s\S+
^\s+Version\s+:\s${VERSION}
^\s+Location\s+:\s${LOCATION}
Expand Down
11 changes: 11 additions & 0 deletions tests/cisco_xr/show_version/cisco_xr_show_version2.parsed
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---

parsed_sample:


- hardware : 'IOS-XRv'
uptime : '1 minute'
version : '6.5.1'
location : '/opt/cisco/XR/packages/'
build_host : 'iox-ucs-019'

14 changes: 14 additions & 0 deletions tests/cisco_xr/show_version/cisco_xr_show_version2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Tue Sep 10 11:01:51.930 UTC
Cisco IOS XR Software, Version 6.5.1
Copyright (c) 2013-2018 by Cisco Systems, Inc.

Build Information:
Built By : ahoang
Built On : Wed Aug 8 17:29:38 PDT 2018
Built Host : iox-ucs-019
Workspace : /auto/srcarchive17/prod/6.5.1/xrv9k/ws
Version : 6.5.1
Location : /opt/cisco/XR/packages/

cisco IOS-XRv 9000 () processor
System uptime is 1 minute

0 comments on commit 354c74a

Please # to comment.