forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: ciena_saos_ssh_server_show_key.textfsm (networktocode#693)
- Loading branch information
1 parent
2a75b98
commit e4cd8ae
Showing
4 changed files
with
30 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,12 @@ | ||
Value USERNAME (\S+) | ||
Value KEY_STATUS (\S+) | ||
|
||
Start | ||
# Accounts for tabular delineations and table names | ||
^\+\- | ||
# Account for SSH Server Key block | ||
^\|\s+[Kk]ey | ||
^\|\s+[Uu]sername.*[Kk]ey\s+[Ss]tatus | ||
^\|\s*${USERNAME}\s*\S*\s*\|\s*${KEY_STATUS}\s*\| -> Record | ||
^\s*$$ | ||
^. -> Error |
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
11 changes: 11 additions & 0 deletions
11
tests/ciena_saos/ssh_server_show_key/ciena_saos_ssh_server_show_key.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,11 @@ | ||
+---------------------------- SSH SERVER KEY --------------------------------+ | ||
| Key Status | Generated | | ||
| Key Fingerprint [MD5] | 1a:1d:1c:1e:da:11:1d:1d:11:aa:11:11:11:a1:11:1c | | ||
+-------------------------+--------------------------------------------------+ | ||
|
||
+------------------------ SSH PUBLIC KEY AUTHENTICATION USERS ------------------------+ | ||
| Username | Key Status | | ||
+----------------------------------+--------------------------------------------------+ | ||
| abc1 | installed | | ||
| abc2 | installed | | ||
+----------------------------------+--------------------------------------------------+ |
6 changes: 6 additions & 0 deletions
6
tests/ciena_saos/ssh_server_show_key/ciena_saos_ssh_server_show_key.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,6 @@ | ||
--- | ||
parsed_sample: | ||
- username: "abc1" | ||
key_status: "installed" | ||
- username: "abc2" | ||
key_status: "installed" |