Skip to content

[orchagent]: support cisco platform name - #4793

Open
anamehra wants to merge 1 commit into
sonic-net:masterfrom
anamehra:anamehra/cisco-platform-name
Open

[orchagent]: support cisco platform name#4793
anamehra wants to merge 1 commit into
sonic-net:masterfrom
anamehra:anamehra/cisco-platform-name

Conversation

@anamehra

@anamehra anamehra commented Jul 26, 2026

Copy link
Copy Markdown

What I did

Support the shorter cisco platform name in the existing Cisco-8000 orchagent handling paths.

Related: sonic-net/sonic-buildimage#27281

Why I did it

The buildimage platform change uses the shorter cisco ASIC/platform name, while SWSS should continue to use the existing Cisco-8000 behavior and PFC watchdog Lua plugins for that platform family.

How I verified it

  • git diff --check
  • Confirmed existing PFC watchdog Lua plugin files are present: orchagent/pfc_detect_cisco-8000.lua and orchagent/pfc_restore_cisco-8000.lua
  • Added mock-test coverage for mapping cisco to the existing Cisco-8000 PFC watchdog plugin name

Details if related

The new helper treats cisco and cisco-8000 as Cisco platforms, and maps PFC watchdog plugin lookup for both names to the existing Cisco-8000 Lua files.

Signed-off-by: Anand Mehra (anamehra) <anamehra@cisco.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@azure-pipelines

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

@anamehra
anamehra marked this pull request as ready for review July 27, 2026 00:15
@azure-pipelines

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

Comment thread orchagent/orch.h
#define VS_PLATFORM_SUBSTRING "vs"
#define NPS_PLATFORM_SUBSTRING "nephos"
#define CISCO_8000_PLATFORM_SUBSTRING "cisco-8000"
#define CISCO_PLATFORM_SUBSTRING "cisco"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anamehra Are you changing this platform substring in all Sonic submodules?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kperumalbfn , yes, I have two additional PRs:

sonic-net/sonic-sairedis#2006
sonic-net/sonic-utilities#4717

I will open one for sonic-mgmt as well. This is not replacement but additional of Cisco substring "cisco". We will keep cisco-8000 for backward compatibility for now.

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.

3 participants