diff options
author | Viacheslav <v.gletenko@vyos.io> | 2021-08-10 09:54:19 +0000 |
---|---|---|
committer | Viacheslav <v.gletenko@vyos.io> | 2021-08-10 09:54:19 +0000 |
commit | c87d3c277c4a023d42962005676827d69a976a1d (patch) | |
tree | a1db517278e5ca25b69f17fb6921a2d99cf7d2c7 /src | |
parent | 0b37de6ba97810636ecbf9a84c6df8f5409ae78c (diff) | |
download | vyos-1x-c87d3c277c4a023d42962005676827d69a976a1d.tar.gz vyos-1x-c87d3c277c4a023d42962005676827d69a976a1d.zip |
snmp: T3709: Allow enable oid ipCidrRouteTable
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/snmp.py | 6 |
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 |