net-snmp: reload snmpd on interface events 2397/head
authorStijn Tintel <stijn@linux-ipv6.be>
Sat, 20 Feb 2016 15:29:28 +0000 (16:29 +0100)
committerStijn Tintel <stijn@linux-ipv6.be>
Sat, 20 Feb 2016 15:46:17 +0000 (16:46 +0100)
commit5b1e9eefd01f098ad74389c967f1c5c9d1e286b3
tree829ee1fc0ccb8c79a4f8b1edc190194cfbd9a9e7
parent03c0a3ea31441161b43c6b996ada57e0a63b152b
net-snmp: reload snmpd on interface events

When applying wireless configuration changes, the ifindex of the
wireless interface(s) change. While snmpd picks up the new interfaces
with the correct index, it does not remove the old ones:

IF-MIB::ifName.23 = STRING: wlan0
IF-MIB::ifName.24 = STRING: wlan1
IF-MIB::ifName.25 = STRING: wlan0
IF-MIB::ifName.26 = STRING: wlan1

This causes problems for monitoring tools that use ifName (or ifDesc) as
interface reference. Add a trigger that reloads snmpd on interface
up/down events so that it will no longer have the old interfaces.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
net/net-snmp/files/snmpd.init