Skip to content

utilities: support cisco ASIC name - #4717

Open
anamehra wants to merge 2 commits into
sonic-net:masterfrom
anamehra:anamehra/cisco-asic-name-utilities
Open

utilities: support cisco ASIC name#4717
anamehra wants to merge 2 commits into
sonic-net:masterfrom
anamehra:anamehra/cisco-asic-name-utilities

Conversation

@anamehra

@anamehra anamehra commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

What I did

Support the shorter cisco ASIC name in Cisco-specific utilities paths that already handle cisco-8000.

Related: sonic-net/sonic-buildimage#27281

How I did it

  • Register Cisco platform CLI commands for both cisco-8000 and cisco.
  • Allow express reboot, dump collection, secure-upgrade gating, and GCU field validators to recognize asic_type: cisco.
  • Add GCU validator config entries and unit coverage for the shorter Cisco ASIC name.

How to verify it

  • git diff --check
  • python3 -c "import json; json.load(open('generic_config_updater/gcu_field_operation_validators.conf.json')); print('json ok')"
  • env PYTHONPYCACHEPREFIX=/private/tmp/pycache-sonic-utilities python3 -m py_compile config/main.py generic_config_updater/field_operation_validators.py show/plugins/cisco-8000.py sonic_installer/bootloader/grub.py tests/generic_config_updater/field_operation_validator_test.py
  • bash -n scripts/fast-reboot scripts/generate_dump

Previous command output (if the output of a command-line utility has changed)

N/A

New command output (if the output of a command-line utility has changed)

N/A

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).

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:
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.

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