G
YouTube TikTok Games
Skip to content

[Cisco][P200] Fix for the AgentTrunkLoadBalancerTests for P200 - #1854

Open
itskittycisco wants to merge 2 commits into
meta:mainfrom
itskittycisco:p200_lag_load_balancer_fix
Open

itskittycisco wants to merge 2 commits into
meta:mainfrom
itskittycisco:p200_lag_load_balancer_fix

Conversation

@itskittycisco

@itskittycisco itskittycisco commented Oct 27, 2026 •

Copy link
Copy Markdown

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run
    clang-format.............................................................Passed
    shellcheck...........................................(no files to check)Skipped
    shfmt................................................(no files to check)Skipped
    trim trailing whitespace.................................................Passed
    fix end of files.........................................................Passed
    check yaml...............................................................Passed
    check json...........................................(no files to check)Skipped
    check for merge conflicts................................................Passed
    ruff check...........................................(no files to check)Skipped
    ruff format..........................................(no files to check)Skipped
    Check copyright headers in new FBOSS C/C++ files.........................Passed
    Prevent sai_impl in fboss manifest.......................................Passed

Summary

AGGREGATE_PORT_ROUTER_INTERFACE is enabled to resolve the SAI error: create LAG_MEMBER on the member port returned OBJECT IN USE because that port still had a PORT RIF. This flag makes unlinkPortsForLagIfNeeded() run, which removes those member PORT RIFs in a separate config apply before the LAG members are created.

HASH_FIELDS_CUSTOMIZATION
G200 did program was one hash object with source IP, destination IP, and L4 ports, attached to SAI_SWITCH_ATTR_ECMP_HASH_IPV4 and ECMP_HASH_IPV6. Enabling the same for P200 as well.

Test Plan

Manually verified these tests:
AgentTrunkLoadBalancerTest.ECMPFullTrunkHalf4X2WideTrunksFrontPanelTraffic
AgentTrunkLoadBalancerTest.ECMPFullTrunkHalf4X3WideTrunksFrontPanelTraffic
AgentTrunkLoadBalancerTest.ECMPFullTrunkHalfHash4X2WideTrunksCpuTraffic
AgentTrunkLoadBalancerTest.ECMPFullTrunkHalfHash4X3WideTrunksCpuTraffic
AgentTrunkLoadBalancerTest.ECMPHalfTrunkFull4X2WideTrunksFrontPanelTraffic
AgentTrunkLoadBalancerTest.ECMPHalfTrunkFull4X3WideTrunksFrontPanelTraffic
AgentTrunkLoadBalancerTest.ECMPHalfTrunkFullHash4X2WideTrunksCpuTraffic
AgentTrunkLoadBalancerTest.ECMPHalfTrunkFullHash4X3WideTrunksCpuTraffic
AgentV6FlowLabelEcmpLoadBalancerTest.EcmpFlowLabelHashEnabledViaConfigChange
AgentV6FlowLabelTrunkLoadBalancerTest.V6FlowLabelEcmpTrunk4X3WideTrunksCpuTraffic
AgentV6FlowLabelTrunkLoadBalancerTest.V6FlowLabelEcmpTrunk4X3WideTrunksFrontPanelTraffic

@itskittycisco
itskittycisco requested a review from a team as a code owner October 27, 2026 23:55
@meta-cla meta-cla Bot added the CLA Signed label Oct 27, 2026
@github-actions github-actions Bot added the cisco label Oct 27, 2026
@facebook-github-tools

Copy link
Copy Markdown

@itskittycisco has updated the pull request. You must reimport the pull request before landing.

@meta-codesync

meta-codesync Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@Tianyu-Meta has imported this pull request. If you are a Meta employee, you can view this in D131447346.

This branch has not been deployed

No deployments
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.

2 participants