summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/conf_mode/snmp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index fbffce751..edacc17ea 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -525,10 +525,6 @@ def verify(snmp):
if snmp is None:
return None
- # bail out early if SNMP v3 is not configured
- if not snmp['v3_enabled']:
- return None
-
for listen in snmp['listen_address']:
addr = listen[0]
port = listen[1]
@@ -547,6 +543,10 @@ def verify(snmp):
else:
print('WARNING: SNMP listen address {0} not configured!'.format(addr))
+ # bail out early if SNMP v3 is not configured
+ if not snmp['v3_enabled']:
+ return None
+
if 'v3_groups' in snmp.keys():
for group in snmp['v3_groups']:
#