Skip to content

[Cisco][G200] Srv6 link flap test case fixes#1009

Open
itskittycisco wants to merge 1 commit intofacebook:mainfrom
itskittycisco:srv6_link_flap_fixes
Open

[Cisco][G200] Srv6 link flap test case fixes#1009
itskittycisco wants to merge 1 commit intofacebook:mainfrom
itskittycisco:srv6_link_flap_fixes

Conversation

@itskittycisco
Copy link

@itskittycisco itskittycisco commented Mar 17, 2026

  1. On LAG member link down, FBOSS sets EGRESS_DISABLE=true via SAI for SAI_LAG_MEMBER_ATTR_EGRESS_DISABLE. On link up, nothing re-enables the member. For static LAGs (no LACP), the flapped port stays disabled and traffic fails. Fix is to Re-enable LAG members on link up.
  2. In sendPacketToEncapRouteAfterLinkFlap, unresolve the neighbors for the flapped port before re-resolve. Agent-test uses NeighborUpdaterNoopImpl, so purge never updated SW state on link down; unresolving ensures SW state matches SAI before re-resolving next hops.

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...........................................(no files to check)Skipped
    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

Summary

Test Plan

1. On LAG member link down, FBOSS sets `EGRESS_DISABLE=true` via SAI. On link up, nothing re-enables the member. For static LAGs (no LACP), the flapped port stays disabled and traffic fails. Fix is to Re-enable LAG members on link up in the fast path, and unresolve    neighbors before re-resolve in the SRv6 encap link-flap test so SW state matches SAI.
2. In `sendPacketToEncapRouteAfterLinkFlap`, unresolve the neighbors for the flapped port before re-resolve. Agent-test uses NeighborUpdaterNoopImpl, so purge never updated SW state on link down; unresolving ensures SW state matches SAI before re-resolving next hops.
@itskittycisco itskittycisco requested a review from a team as a code owner March 17, 2026 23:34
@meta-cla meta-cla bot added the CLA Signed label Mar 17, 2026
@itskittycisco itskittycisco changed the title Srv6 link flap test case fixes [Cisco][G200] Srv6 link flap test case fixes Mar 20, 2026
@github-actions github-actions bot added the cisco label Mar 20, 2026
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