diff --git a/templates/cisco_ios_show_snmp_user.template b/templates/cisco_ios_show_snmp_user.template index 32c6e8e3bc..c0a960d0fb 100644 --- a/templates/cisco_ios_show_snmp_user.template +++ b/templates/cisco_ios_show_snmp_user.template @@ -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}$$ diff --git a/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.parsed b/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.parsed index 9aa4915131..087e3df634 100644 --- a/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.parsed +++ b/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.parsed @@ -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 diff --git a/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.raw b/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.raw index 9d0fbff33b..d76afcd5ae 100644 --- a/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.raw +++ b/tests/cisco_ios/show_snmp_user/cisco_ios_show_snmp_user.raw @@ -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