summaryrefslogtreecommitdiff
path: root/src/conf_mode/snmp.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/snmp.py')
-rwxr-xr-xsrc/conf_mode/snmp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 0be0da3d1..b300961ff 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -383,6 +383,10 @@ def get_config():
oid_cfg = {
'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)
view_cfg['oids'].append(oid_cfg)
snmp['v3_views'].append(view_cfg)