From 16c29e0ce6f934a4354f9525c6ea66440117f849 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 10 Jul 2022 20:49:44 +0000 Subject: [PATCH] Allow vppapi!=vppstats count, continue and use those interfaces that are in the API --- vpp-snmp-agent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vpp-snmp-agent.py b/vpp-snmp-agent.py index 6055bf0..fcaa377 100755 --- a/vpp-snmp-agent.py +++ b/vpp-snmp-agent.py @@ -122,8 +122,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("Interfaces count mismatch: vppapi=%d vppstats=%d" % (num_ifaces, num_vppstat)) - 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]