summaryrefslogtreecommitdiff
path: root/src/conf_mode/snmp.py
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-03-14 15:12:08 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2024-03-14 15:12:08 +0200
commit1fb746332602fd53eb5412c8f3c7fc38c09b7d26 (patch)
tree1dab058287b46983dfc4d0271fb0fbe1ebd17a44 /src/conf_mode/snmp.py
parent0364d44b4ffbcde647807c31e42c3662cc87e2e3 (diff)
downloadvyos-1x-1fb746332602fd53eb5412c8f3c7fc38c09b7d26.tar.gz
vyos-1x-1fb746332602fd53eb5412c8f3c7fc38c09b7d26.zip
snmp: T2998: updated snmp.py
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-xsrc/conf_mode/snmp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index b300961ff..7b3f9cbb7 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -384,9 +384,7 @@ def get_config():
'oid': oid
}
if conf.exists('v3 view {0} oid {1} exclude'.format(view, oid)):
- oid_cfg['exclude'] = []
- for exclude in conf.return_values('v3 view {0} oid {1} exclude'.format(view, oid)):
- oid_cfg['exclude'].append(exclude)
+ 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)