Skip to content

Commit

Permalink
New Template: ciena_saos_ssh_server_show_key.textfsm (networktocode#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesnow authored and thomasblass committed Oct 25, 2020
1 parent 2a75b98 commit e4cd8ae
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/ciena_saos_ssh_server_show_key.textfsm
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ checkpoint_gaia_show_lom.textfsm, .*, checkpoint_gaia, show lom
checkpoint_gaia_fw_stat.textfsm, .*, checkpoint_gaia, fw stat

ciena_saos_chassis_show_temperature.textfsm, .*, ciena_saos, ch[[assis]] sh[[ow]] te[[mperature]]
ciena_saos_ssh_server_show_key.textfsm, .*, ciena_saos, ssh se[[rver]] sh[[ow]] k[[ey]]
ciena_saos_software_show.textfsm, .*, ciena_saos, so[[ftware]] sh[[ow]]
ciena_saos_port_show.textfsm, .*, ciena_saos, po[[rt]] sh[[ow]]
ciena_saos_rstp_show.textfsm, .*, ciena_saos, rs[[tp]] sh[[ow]]
Expand Down
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 |
+----------------------------------+--------------------------------------------------+
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"

0 comments on commit e4cd8ae

Please sign in to comment.