summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-08-10 09:54:19 +0000
committerViacheslav <v.gletenko@vyos.io>2021-08-10 09:54:19 +0000
commitc87d3c277c4a023d42962005676827d69a976a1d (patch)
treea1db517278e5ca25b69f17fb6921a2d99cf7d2c7 /src
parent0b37de6ba97810636ecbf9a84c6df8f5409ae78c (diff)
downloadvyos-1x-c87d3c277c4a023d42962005676827d69a976a1d.tar.gz
vyos-1x-c87d3c277c4a023d42962005676827d69a976a1d.zip
snmp: T3709: Allow enable oid ipCidrRouteTable
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/snmp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/conf_mode/snmp.py b/src/conf_mode/snmp.py
index 3990e5735..23e45a5b7 100755
--- a/src/conf_mode/snmp.py
+++ b/src/conf_mode/snmp.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2018-2020 VyOS maintainers and contributors
+# Copyright (C) 2018-2021 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -54,6 +54,7 @@ default_config_data = {
'location' : '',
'description' : '',
'contact' : '',
+ 'route_table': 'False',
'trap_source': '',
'trap_targets': [],
'vyos_user': '',
@@ -186,6 +187,9 @@ def get_config():
snmp['script_ext'].append(extension)
+ if conf.exists('oid-enable route-table'):
+ snmp['route_table'] = True
+
if conf.exists('vrf'):
# Append key to dict but don't place it in the default dictionary.
# This is required to make the override.conf.tmpl work until we