Skip to content

[acl-loader]: Wait for rules to be removed before installing new ones#4203

Draft
MavChtz wants to merge 1 commit intosonic-net:masterfrom
MavChtz:acl-loader-fix-rule-inconsistencies
Draft

[acl-loader]: Wait for rules to be removed before installing new ones#4203
MavChtz wants to merge 1 commit intosonic-net:masterfrom
MavChtz:acl-loader-fix-rule-inconsistencies

Conversation

@MavChtz
Copy link

@MavChtz MavChtz commented Jan 15, 2026

When running 'acl-loader update full' multiple consecutive times, with an ACL rule set that exceeds the TCAM's capacity,
the newly installed ACL rules differ between iterations.

full_update() now waits for existing rules to be removed by polling State DB before proceeding with new rule installations, thus yielding a deterministic rule set between runs.

incremental_update() has also been adjusted as it handles dataplane rules in the same way.

@mssonicbld
Copy link
Collaborator

/azp run

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 15, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: MavChtz / name: Mavroudis Chatzilazaridis (8e02dd1)

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MavChtz MavChtz force-pushed the acl-loader-fix-rule-inconsistencies branch from 5ab3cae to b134747 Compare January 15, 2026 14:13
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MavChtz MavChtz force-pushed the acl-loader-fix-rule-inconsistencies branch from b134747 to 832dd7f Compare February 16, 2026 12:46
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MavChtz MavChtz force-pushed the acl-loader-fix-rule-inconsistencies branch from 832dd7f to 12df017 Compare February 16, 2026 12:47
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MavChtz MavChtz force-pushed the acl-loader-fix-rule-inconsistencies branch from 12df017 to 9f07df5 Compare February 16, 2026 12:53
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MavChtz MavChtz force-pushed the acl-loader-fix-rule-inconsistencies branch from 9f07df5 to 7473e8e Compare February 18, 2026 07:45
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MavChtz MavChtz force-pushed the acl-loader-fix-rule-inconsistencies branch from 7473e8e to 95ba958 Compare February 18, 2026 07:53
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

When running 'acl-loader update full' multiple consecutive times, with an
ACL rule set that exceeds the TCAM's capacity, the newly installed ACL
rules differ between iterations.

full_update() now waits for existing rules to be removed by polling
State DB before proceeding with new rule installations, thus yielding a
deterministic rule set between runs.

incremental_update() has also been adjusted as it handles dataplane rules
in the same way.

Signed-off-by: Mavroudis Chatzilazaridis <mavchatz@protonmail.com>
@MavChtz MavChtz force-pushed the acl-loader-fix-rule-inconsistencies branch from 95ba958 to 8e02dd1 Compare March 2, 2026 13:33
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants