diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-10 13:50:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 13:50:41 +0200 |
commit | 349b5ede105cdb4032295ae861b5784aefdf7af6 (patch) | |
tree | a1db517278e5ca25b69f17fb6921a2d99cf7d2c7 /src/conf_mode | |
parent | 0b37de6ba97810636ecbf9a84c6df8f5409ae78c (diff) | |
parent | c87d3c277c4a023d42962005676827d69a976a1d (diff) | |
download | vyos-1x-349b5ede105cdb4032295ae861b5784aefdf7af6.tar.gz vyos-1x-349b5ede105cdb4032295ae861b5784aefdf7af6.zip |
Merge pull request #960 from sever-sever/T3709
snmp: T3709: Allow enable oid ipCidrRouteTable
Diffstat (limited to 'src/conf_mode')
-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 |