File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 304
304
</constraint >
305
305
<constraintErrorMessage >ID must contain an even number (from 2 to 36) of hex digits</constraintErrorMessage >
306
306
</properties >
307
- <defaultValue ></defaultValue >
308
307
</leafNode >
309
308
<tagNode name =" group" >
310
309
<properties >
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
#
3
- # Copyright (C) 2018-2024 VyOS maintainers and contributors
3
+ # Copyright (C) 2018-2025 VyOS maintainers and contributors
4
4
#
5
5
# This program is free software; you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License version 2 or later as
@@ -147,6 +147,9 @@ def verify(snmp):
147
147
return None
148
148
149
149
if 'user' in snmp ['v3' ]:
150
+ if 'engineid' not in snmp ['v3' ]:
151
+ raise ConfigError (f'EngineID must be configured for SNMPv3!' )
152
+
150
153
for user , user_config in snmp ['v3' ]['user' ].items ():
151
154
if 'group' not in user_config :
152
155
raise ConfigError (f'Group membership required for user "{ user } "!' )
You can’t perform that action at this time.
0 commit comments