Skip to content

Pass FIB suppression flag and to orchagent to control APPL_STATE_DB and pub/sub#26151

Open
mike-dubrovsky wants to merge 1 commit into
sonic-net:masterfrom
mike-dubrovsky:fib-supression
Open

Pass FIB suppression flag and to orchagent to control APPL_STATE_DB and pub/sub#26151
mike-dubrovsky wants to merge 1 commit into
sonic-net:masterfrom
mike-dubrovsky:fib-supression

Conversation

@mike-dubrovsky
Copy link
Copy Markdown
Contributor

@mike-dubrovsky mike-dubrovsky commented Mar 12, 2026

Why I did it

Route download speed degraded after BGP prefix suppression was introduced. RouteOrch::publishRouteState() unconditionally writes to APPL_STATE_DB and sends a pub/sub notification on every route add/remove, even when FIB suppression is disabled and no consumer needs the data.

Work item tracking
  • Microsoft ADO (number only):

How I did it

This PR is part of a multi-repo change to make this a startup-time flag.

orchagent.sh now:

Reads suppress-fib-pending from CONFIG_DB and passes -F to orchagent when enabled (same pattern as synchronous_mode)

How to verify it

Which release branch to backport (provide reason below if selected)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

This change needs to go together with
sonic-net/sonic-swss#4333
sonic-net/sonic-utilities#4361
sonic-net/sonic-mgmt#22916
sonic-net/SONiC#2335

@mike-dubrovsky mike-dubrovsky requested a review from lguohan as a code owner March 12, 2026 17:30
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Read suppress-fib-pending from CONFIG_DB in orchagent.sh and pass -F
to orchagent when enabled. Config changes take effect after swss restart
or config reload.

Changes:
- orchagent.sh: read suppress-fib-pending from CONFIG_DB and set -F flag
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mike-dubrovsky mike-dubrovsky changed the title [orchagent] Pass FIB suppression flag and publish state to STATE_DB [orchagent] Pass FIB suppression flag and to orchagent to control APPL_STATE_DB and pub/sub May 14, 2026
@mike-dubrovsky mike-dubrovsky changed the title [orchagent] Pass FIB suppression flag and to orchagent to control APPL_STATE_DB and pub/sub Pass FIB suppression flag and to orchagent to control APPL_STATE_DB and pub/sub May 14, 2026
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