Filter interface data from stats segment by known vpp_iface; this avoids an issue in VPP where deleted interfaces remain in the stats segment

This commit is contained in:
Pim van Pelt
2025-11-23 11:05:05 +01:00
parent 5e36d5c926
commit b450e02b8d
3 changed files with 77 additions and 18 deletions

View File

@@ -48,7 +48,7 @@ func main() {
// Create VPP client and managers
vppClient := &vpp.VPPClient{}
interfaceManager := vpp.NewInterfaceManager(vppClient)
statsManager := vpp.NewStatsManager(vppClient)
statsManager := vpp.NewStatsManager(vppClient, interfaceManager)
// Set up interface event callback to update interface details
interfaceManager.SetEventCallback(interfaceMIB.UpdateInterfaceDetails)