Skip to content

[cacl] Expect the per-feature docker0 syslog ACCEPT for both bridged features - #28006

Open
shreyansh-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:shreyansh.cacl-redfish-syslog-rule
Open

shreyansh-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:shreyansh.cacl-redfish-syslog-rule

Conversation

@shreyansh-nexthop

@shreyansh-nexthop shreyansh-nexthop commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Fixes #28005

sonic-net/sonic-host-services#429 made caclmgrd own a docker0 RELP (tcp/2514) INPUT ACCEPT for the redfish container's syslog forwarding, installed while the redfish FEATURE state is enabled. It is the companion of sonic-net/sonic-buildimage#29258, which points bridge-networked containers' rsyslog at the docker0 gateway. generate_expected_rules only knows the dhcp_server instance of this rule (#26477), so test_cacl_application_nondualtor reports the caclmgrd-owned redfish_syslog rule as unexpected and fails on any device where the feature is enabled at run time.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605

Tested branch

  • master
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605

Test result

Approach

What is the motivation for this PR?

Restore test_cacl_application_nondualtor on devices where the redfish feature is enabled. The caclmgrd-owned redfish_syslog docker0 exception is correct behaviour, and the test's expected-rule list does not include it, so the test fails on a healthy device.

How did you do it?

Loop the feature-gated dhcp_server syslog expectation from #26477 over both bridged features, keeping the FEATURE-state gate caclmgrd itself keys on, so the expectation is present exactly while the rule is.

How did you verify/test it?

  • With the fix, the testcase passes.

Any platform specific information?

The redfish feature exists only on images built with INCLUDE_REDFISH=y; on all other devices the feature lookup adds no expectation, so behaviour is unchanged.

Supported testbed topology if it's a new test case?

N/A

Documentation

N/A

…features

caclmgrd owns a docker0 RELP (tcp/2514) INPUT ACCEPT per bridge-networked feature and installs it while that feature is enabled, but the expected-rule generator only knew the dhcp_server instance. On a device with the redfish feature enabled, caclmgrd's redfish_syslog rule is reported as unexpected and test_cacl_application_nondualtor fails.

Generate the expectation for both bridged features from the same condition caclmgrd keys on, the FEATURE state, so the test is correct in either feature state: rule expected while enabled, not expected while disabled.

Signed-off-by: Shreyansh Jain <shreyansh@nexthop.ai>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@shreyansh-nexthop
shreyansh-nexthop marked this pull request as ready for review September 18, 2026 10:55
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

nh-grecs Bot pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Sep 19, 2026
…features

rebuild-source: sonic-net#28006 @ nexthop-ai/sonic-mgmt 8905a3b [case: upstream:open]
nh-grecs Bot pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Sep 19, 2026
…features

rebuild-source: sonic-net/pull/28006 @ nexthop-ai/sonic-mgmt 8905a3b [case: upstream:open]
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.

Bug: test_cacl_application_nondualtor: expected-rule generator missing the caclmgrd-owned redfish_syslog docker0 tcp/2514 ACCEPT

2 participants