From 86512dd66ba27d536cc7fbb067142682b7fd3b41 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 13 Mar 2022 12:05:54 +0000 Subject: [PATCH] Turn interface mismatch into a warning - it is often recoverable --- vpp-snmp-agent.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vpp-snmp-agent.py b/vpp-snmp-agent.py index d8041d9..3ec3d5f 100755 --- a/vpp-snmp-agent.py +++ b/vpp-snmp-agent.py @@ -82,11 +82,7 @@ class MyAgent(agentx.Agent): self.logger.debug("Retrieved Interfaces: vppapi=%d vppstats=%d lcp=%d" % (num_ifaces, num_vppstat, num_lcp)) if num_ifaces != num_vppstat: - self.logger.error("Disconnecting due to error: vppapi=%d vppstats=%d" % (num_ifaces, num_vppstat)) - vpp.disconnect() - vppstat.disconnect() - return False - + self.logger.warning("Interfaces count mismatch: vppapi=%d vppstats=%d" % (num_ifaces, num_vppstat)) for i in range(len(vppstat['/if/names'])): ifname = vppstat['/if/names'][i]