summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-03-14 17:10:47 +0100
committerGitHub <noreply@github.com>2024-03-14 17:10:47 +0100
commit713b2f3702134abd9a34c539019a83d0e354eb22 (patch)
tree403500571455f7a01ada0d9b12b1648c2d2f9af4 /src
parentc2e66922c93b60d12f1f30bded3cd6d4bae7e117 (diff)
parent1fb746332602fd53eb5412c8f3c7fc38c09b7d26 (diff)
downloadvyos-1x-713b2f3702134abd9a34c539019a83d0e354eb22.tar.gz
vyos-1x-713b2f3702134abd9a34c539019a83d0e354eb22.zip
Merge pull request #3121 from natali-rs1985/T2998-equuleus
snmp: T2998: SNMP v3 oid "exclude" option fix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/snmp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 0be0da3d1..7b3f9cbb7 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -383,6 +383,8 @@ def get_config():
oid_cfg = {
'oid': oid
}
+ if conf.exists('v3 view {0} oid {1} exclude'.format(view, oid)):
+ oid_cfg['exclude'] = conf.return_values('v3 view {0} oid {1} exclude'.format(view, oid))
view_cfg['oids'].append(oid_cfg)
snmp['v3_views'].append(view_cfg)