summaryrefslogtreecommitdiff
path: root/data/templates/snmp
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-15 21:35:06 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-15 21:35:06 +0100
commit79a02470c4f9f2184913a959545b54a2dfd76d1e (patch)
treed550ee897d33412abbf1c2be8ab07dfb5505384e /data/templates/snmp
parent94f886ab0f98207fee57c11e78b94240b1ffff8e (diff)
downloadvyos-1x-79a02470c4f9f2184913a959545b54a2dfd76d1e.tar.gz
vyos-1x-79a02470c4f9f2184913a959545b54a2dfd76d1e.zip
snmp: T652: enable interface_replace_old option and restart command
- Remove all old ifTable entries with the same ifName as newly appeared interface (with different ifIndex) - this is the case on e.g. ppp interfaces - Add new op-mode command "restart snmp" to restart the daemon
Diffstat (limited to 'data/templates/snmp')
-rw-r--r--data/templates/snmp/etc.snmpd.conf.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/snmp/etc.snmpd.conf.tmpl b/data/templates/snmp/etc.snmpd.conf.tmpl
index 278506350..db2114fa1 100644
--- a/data/templates/snmp/etc.snmpd.conf.tmpl
+++ b/data/templates/snmp/etc.snmpd.conf.tmpl
@@ -22,6 +22,10 @@ notificationEvent linkDownTrap linkDown ifIndex ifDescr ifType ifAdminStatus i
monitor -r 10 -e linkUpTrap "Generate linkUp" ifOperStatus != 2
monitor -r 10 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
+# Remove all old ifTable entries with the same ifName as newly appeared
+# interface (with different ifIndex) - this is the case on e.g. ppp interfaces
+interface_replace_old yes
+
########################
# configurable section #
########################