You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to execute a play using junos_snmp_server using SNMPv3, when attempting a configuration with authentication_sha or privacy_aes128, (attempting to configure using the password key instead of the hashed key) I receive an error for a missing "key" value.
When configuring via the command line, I am able to successfully configure the two secrets using authentication-password/privacy-password without the respective -key command. In fact, if specified with both -key and -password values, the -password appears to take precedence.
The same as set snmp v3 usm local-engine user $USERNAME authentication-sha authentication-password $PASSWORD and set snmp v3 usm local-engine user $USERNAME privacy-aes128 privacy-password $PASSWORD. Namely, that the configuration file is changed to include the hashed results of the given password values, without prompting for a hashed input.
ACTUAL RESULTS
Error is thrown, and ansible seems upset that I never specified a key, only a password. In fact, if run again with both a password and a key, the configuration completes successfully.
I was able to get what I consider to be the expected behavior by applying this patch. I think it would be better to except a particular type of exception, but it was a quick-and-dirty test.
SUMMARY
When trying to execute a play using junos_snmp_server using SNMPv3, when attempting a configuration with
authentication_sha
orprivacy_aes128
, (attempting to configure using thepassword
key instead of the hashedkey
) I receive an error for a missing "key" value.When configuring via the command line, I am able to successfully configure the two secrets using authentication-password/privacy-password without the respective -key command. In fact, if specified with both -key and -password values, the -password appears to take precedence.
ISSUE TYPE
COMPONENT NAME
junipernetworks.junos.snmp_server
config:
snmp_v3:
usm:
local_engine:
users:
ANSIBLE VERSION
Also tried:
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Target device JunOS version: JunOS 20.4R3-S5.4
STEPS TO REPRODUCE
EXPECTED RESULTS
The same as
set snmp v3 usm local-engine user $USERNAME authentication-sha authentication-password $PASSWORD
andset snmp v3 usm local-engine user $USERNAME privacy-aes128 privacy-password $PASSWORD
. Namely, that the configuration file is changed to include the hashed results of the given password values, without prompting for a hashed input.ACTUAL RESULTS
Error is thrown, and ansible seems upset that I never specified a key, only a password. In fact, if run again with both a password and a key, the configuration completes successfully.
The text was updated successfully, but these errors were encountered: