Skip to content

[code sync] Merge code from sonic-net/sonic-utilities:202605 to 202608#415

Merged
mssonicbld merged 2 commits into
Azure:202608from
mssonicbld:sonicbld/202608-merge
Jul 18, 2026
Merged

[code sync] Merge code from sonic-net/sonic-utilities:202605 to 202608#415
mssonicbld merged 2 commits into
Azure:202608from
mssonicbld:sonicbld/202608-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 92c565b3 - (origin/202605) Fix route_check.py: return dict format from fetch_routes for mitigation (#4706) (2026-07-18) [mssonicbld]<br>```

mssonicbld and others added 2 commits July 18, 2026 08:12
…on (#4706)

## Summary

Split from #4576 per [@deepak-singhal0408's review](sonic-net/sonic-utilities#4576 (comment)) — **Bucket A (bug fix, land immediately)**.

`mitigate_installed_not_offloaded_frr_routes()` expects `missed_frr_rt` entries with `prefix` and `protocol` keys, but `fetch_routes()` has been appending bare prefix strings since the ijson refactor (#4205). This causes `TypeError: string indices must be integers` whenever suppress-fib-pending triggers mitigation.

Adopts the 202511 approach (#4509): append `{'prefix': prefix, 'protocol': route_entry.get('protocol', '')}` so the mitigation contract is preserved. Keeps the existing ijson JSON parser unchanged.

## Test plan

- [ ] `tests/fetch_routes_chunk_test.py` expectations updated for dict format
- [ ] CI unit tests pass
- [ ] On a device with suppress-fib-pending enabled and stuck routes, mitigation no longer crashes

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

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

@mssonicbld
mssonicbld merged commit 3ffe475 into Azure:202608 Jul 18, 2026
3 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