diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-07 20:30:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 20:30:50 +0100 |
commit | c3ddea58e2ae96f5b5d8a2942ec93729439cd24a (patch) | |
tree | 63ed4c0f38f52e6e99a7258a1faae3588a0c4801 /data | |
parent | 45c6b0ccae5c432088ecea627593891a6f9a3943 (diff) | |
parent | 30a05ee1d447c6f92627162a506225f833a80f8c (diff) | |
download | vyos-1x-c3ddea58e2ae96f5b5d8a2942ec93729439cd24a.tar.gz vyos-1x-c3ddea58e2ae96f5b5d8a2942ec93729439cd24a.zip |
Merge pull request #2434 from sever-sever/T5702
T5702: SNMP add interface-mib max-interfaces-number and prefix
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() %} |