Allow vppapi!=vppstats count, continue and use those interfaces that are in the API
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user