Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show snmp user #532

Merged
merged 3 commits into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions templates/cisco_ios_show_snmp_user.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Value Required USER_NAME (\w+)
Value ENGINE_ID (\w+)
Value STORAGE_TYPE (\w+)
Value Required USER_NAME (\S+)
Value ENGINE_ID (\S+)
Value STORAGE_TYPE (\S+)
Value ACCESS_LIST (.*)
Value AUTHENTICATION_PROTOCOL (\w+)
Value PRIVACY_PROTOCOL (\w+)
Value GROUP_NAME (\w+)
Value AUTHENTICATION_PROTOCOL (\S+)
Value PRIVACY_PROTOCOL (\S+)
Value GROUP_NAME (\S+)

Start
^User\s+name:\s+${USER_NAME}$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ parsed_sample:
privacy_protocol: AES128
storage_type: nonvolatile
user_name: user_snmp2
- access_list: ''
authentication_protocol: None
engine_id: 8000000903005E0000010000
group_name: test-group
privacy_protocol: "-"
storage_type: nonvolatile
user_name: test-user
7 changes: 7 additions & 0 deletions tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.raw
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ storage-type: nonvolatile active access-list: 10
Authentication Protocol: SHA
Privacy Protocol: AES128
Group-name: managerpriv

User name: test-user
Engine ID: 8000000903005E0000010000
storage-type: nonvolatile active
Authentication Protocol: None
Privacy Protocol: -
Group-name: test-group