Pulled in latest vpp_stats.py from upstream after https://gerrit.fd.io/r/c/vpp/+/35640

This commit is contained in:
Pim van Pelt
2022-04-01 13:10:17 +00:00
parent 968c0abe2f
commit c9233749bc
2 changed files with 52 additions and 128 deletions

View File

@ -49,9 +49,7 @@ class MyAgent(agentx.Agent):
self.logger.info("Connecting to VPP Stats Segment")
vppstat = VPPStats(socketname='/run/vpp/stats.sock', timeout=2)
if not vppstat.connect():
self.logger.error("Can't connect to VPP Stats API, bailing")
return False
vppstat.connect()
vpp = VPPApi(clientname='vpp-snmp-agent')
if not vpp.connect():