diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-07 20:59:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 20:59:08 +0100 |
commit | 41bad6ac01ef2ce25ec5a7a6d337d6e5d983c632 (patch) | |
tree | e749adc3995e9aaa9fb444b80948d067c08be51c /data | |
parent | 269ad333bc749bb7da15f1a2641d6c5bae56d1fd (diff) | |
parent | 529aa5e6f36e0c3bece7801a9dd281107e646cef (diff) | |
download | vyos-1x-41bad6ac01ef2ce25ec5a7a6d337d6e5d983c632.tar.gz vyos-1x-41bad6ac01ef2ce25ec5a7a6d337d6e5d983c632.zip |
Merge pull request #2457 from vyos/mergify/bp/sagitta/pr-2434
T5702: SNMP add interface-mib max-interfaces-number and prefix (backport #2434)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/snmp/etc.snmpd.conf.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/snmp/etc.snmpd.conf.j2 b/data/templates/snmp/etc.snmpd.conf.j2 index 9d78d479a..3db8c4d7b 100644 --- a/data/templates/snmp/etc.snmpd.conf.j2 +++ b/data/templates/snmp/etc.snmpd.conf.j2 @@ -56,6 +56,16 @@ SysDescr {{ description }} {% endif %} agentaddress unix:/run/snmpd.socket{{ ',' ~ options | join(',') if options is vyos_defined }} +{% if mib is vyos_defined %} +# Interface MIB limits +{% if mib.interface_max is vyos_defined %} +ifmib_max_num_ifaces {{ mib.interface_max }} +{% endif %} +{% if mib.interface is vyos_defined %} +include_ifmib_iface_prefix {{ mib.interface | join(' ') }} +{% endif %} +{% endif %} + # SNMP communities {% if community is vyos_defined %} {% for comm, comm_config in community.items() %} |