Skip to content

[action] [PR:1814] vpp: implement CRM counters for neighbour, nexthop, nexthop group and members#125

Merged
mssonicbld merged 1 commit into
Azure:202603from
mssonicbld:cherry/msft-202603/1814
Apr 23, 2026
Merged

[action] [PR:1814] vpp: implement CRM counters for neighbour, nexthop, nexthop group and members#125
mssonicbld merged 1 commit into
Azure:202603from
mssonicbld:cherry/msft-202603/1814

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

why

vpp doesn't track the usage of neighbour, nexthop, nexthop group and members due to it doesn't have hard limit on those objects except heap memory allocated to vpp process. But for test coverage with crm/test_crm.py, we need to track the usage although the max of those objects can be very large.

what this PR does

  1. implement CRM counters for neighbour, nexthop, nexthop group and members
  2. refactor CRM functions to a new class CRMTracker for better code maintenance.

how is it tested

passed crm/test_crm.py

Signed-off-by: Sonic Build Admin sonicbld@microsoft.com

… members

### why
vpp doesn't track the usage of neighbour, nexthop, nexthop group and members due to it doesn't have hard limit on those objects except heap memory allocated to vpp process. But for test coverage with crm/test_crm.py, we need to track the usage although the max of those objects can be very large.

### what this PR does
1. implement CRM counters for neighbour, nexthop, nexthop group and members
2. refactor CRM functions to a new class CRMTracker for better code maintenance.

### how is it tested
passed crm/test_crm.py

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-sairedis#1814

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@mssonicbld
mssonicbld merged commit 3e83141 into Azure:202603 Apr 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant