Skip to content

[CPO] Update CPO Port Mapping HLD with Minor Corrections - #2469

Open
bgallagher-nexthop wants to merge 3 commits into
sonic-net:masterfrom
nexthop-ai:cpo-port-mapping-corrections
Open

[CPO] Update CPO Port Mapping HLD with Minor Corrections#2469
bgallagher-nexthop wants to merge 3 commits into
sonic-net:masterfrom
nexthop-ai:cpo-port-mapping-corrections

Conversation

@bgallagher-nexthop

Copy link
Copy Markdown
Contributor

Add some minor updates to the port mapping HLD to reflect the latest code changes made in the following PRs:

Changes:

  • Add ChassisBase changes to store CPO objects in self._cpo_list.
  • Update field names in cpo.json schema.

Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
@bgallagher-nexthop
bgallagher-nexthop marked this pull request as ready for review July 21, 2026 23:39
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

…ment

Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@prgeor prgeor left a comment

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.

@eddyk-nvidia @micas-net please review

Comment on lines -151 to +152
// laser_to_lane_mapping provides a mapping of laser to which lane it is powering.
"laser_to_lane_mapping": {
// laser_to_asic_lane_mapping provides a mapping of laser to which ASIC lane it is powering.
"laser_to_asic_lane_mapping": {

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.

What kind of lane does asic lane want to distinguish?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

asic_lane in this file refers to the ASIC SerDes lanes that interface with the on-package optical engine.

def construct_sfp_list_for_topology(self, cpo_data):
"""Subclasses should implement this method to create sfp objects based on topology data in cpo.json"""
def construct_cpo_devices(self, cpo_data):
"""Subclasses should implement this method to create CPO objects based on topology data in cpo.json"""

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.

Could you please clarify what cpo.json is? Is it another name for optical_devices.json?

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.

5 participants