diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-01-18 15:09:32 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-01-18 15:16:05 +0000 |
commit | 1ce8e672b57e03e144998cb0a56ad1622c667a1d (patch) | |
tree | 31486b895818c63f4041350a445f511288b37a9c /src/conf_mode/snmp.py | |
parent | 2dc1cbc82dd26390615ca7f26878176891a5b12d (diff) | |
download | vyos-1x-1ce8e672b57e03e144998cb0a56ad1622c667a1d.tar.gz vyos-1x-1ce8e672b57e03e144998cb0a56ad1622c667a1d.zip |
T4857: Cleaning pr
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-x | src/conf_mode/snmp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py index 5cd24db32..addfb9e26 100755 --- a/src/conf_mode/snmp.py +++ b/src/conf_mode/snmp.py @@ -166,6 +166,10 @@ def verify(snmp): if 'community' not in trap_config: raise ConfigError(f'Trap target "{trap}" requires a community to be set!') + if 'oid_enable' in snmp: + Warning(f'Custom oids are enabled and may lead to system instability and high resource consumption') + + verify_vrf(snmp) # bail out early if SNMP v3 is not configured |