Skip to content

[CPO] Add aggregate methods to ElsfpApi - #752

Open
bgallagher-nexthop wants to merge 12 commits into
sonic-net:masterfrom
nexthop-ai:elsfp-api-aggregate
Open

[CPO] Add aggregate methods to ElsfpApi#752
bgallagher-nexthop wants to merge 12 commits into
sonic-net:masterfrom
nexthop-ai:elsfp-api-aggregate

Conversation

@bgallagher-nexthop

@bgallagher-nexthop bgallagher-nexthop commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds aggregate methods in ElsfpApi that read multiple registers and return a dictionary of logically grouped information to xcvrd. A set of methods analagous to the aggregate methods in CmisApi are implemented:

  • get_elsfp_info
  • get_elsfp_info_firmware_versions
  • get_elsfp_dom_real_value
  • get_elsfp_dom_flags
  • get_elsfp_threshold_info
  • get_elsfp_status_flags
  • get_elsfp_status

Each aggregate method has a variant that fetches only banked or non-banked information, where appropriate.

Motivation and Context

This change is required to enable xcvrd to call convenient aggregate methods to attain the information it wants to read from hardware. This follows the pre-established convention xcvrd follows when reading from hardware.

How Has This Been Tested?

Unit-tests have been added.

Additional Information (Optional)

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

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

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

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@bgallagher-nexthop
bgallagher-nexthop marked this pull request as ready for review September 3, 2026 00:04
@azure-pipelines

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

nh-grecs Bot pushed a commit to nexthop-ai/sonic-platform-common that referenced this pull request Sep 3, 2026
rebuild-source: sonic-net#752 @ nexthop-ai/sonic-platform-common f8defa8 [case: upstream:open]
nh-grecs Bot pushed a commit to nexthop-ai/sonic-platform-common that referenced this pull request Sep 3, 2026
rebuild-source: sonic-net#752 @ nexthop-ai/sonic-platform-common f8defa8 [case: upstream:open]
Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

… works out-of-the-box

Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
…alues names

Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
…s aggregate methods

Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
nh-grecs Bot pushed a commit to nexthop-ai/sonic-platform-common that referenced this pull request Sep 5, 2026
rebuild-source: sonic-net#752 @ nexthop-ai/sonic-platform-common 2c79f79 [case: upstream:open]
nh-grecs Bot pushed a commit to nexthop-ai/sonic-platform-common that referenced this pull request Sep 5, 2026
rebuild-source: sonic-net#752 @ nexthop-ai/sonic-platform-common 2c79f79 [case: upstream:open]
nh-grecs Bot pushed a commit to nexthop-ai/sonic-platform-common that referenced this pull request Sep 7, 2026
rebuild-source: sonic-net#752 @ nexthop-ai/sonic-platform-common 2c79f79 [case: upstream:open]
nh-grecs Bot pushed a commit to nexthop-ai/sonic-platform-common that referenced this pull request Sep 7, 2026
rebuild-source: sonic-net#752 @ nexthop-ai/sonic-platform-common 2c79f79 [case: upstream:open]
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