summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/conf_mode/snmp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index cbec20731..1590e5de4 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -651,6 +651,9 @@ def verify(snmp):
if user['authPassword'] == '' and user['authMasterKey'] == '':
raise ConfigError('Must specify encrypted-key or plaintext-key for user auth')
+ if user['authProtocol'] == '':
+ raise ConfigError('Must specify auth type')
+
# seclevel 'priv' is more restrictive
if seclevel is 'priv':
if user['privPassword'] and user['privMasterKey']: