Skip to content

[vslib]: hostif enum capability query API support #1586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rminnikanti
Copy link

@rminnikanti rminnikanti commented Apr 22, 2025

What I did

vslib support for hostif trap object - SAI_OBJECT_TYPE_HOSTIF_TRAP,
attribute - SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE
Implementation returns all trap types as supported.

Why I did

Details in HLD: sonic-net/SONiC#1943

How I verified it

Verified with UT and DVS

Signed-off-by: Ravi Minnikanti rminnikanti@marvell.com

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kcudnik
Copy link
Collaborator

kcudnik commented Apr 23, 2025

please add unittests to satisfy code coverage

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Author

@kcudnik @prsunny I added unittest and code coverage is passing now. Can you please review?

kcudnik
kcudnik previously approved these changes Apr 24, 2025
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

kcudnik
kcudnik previously approved these changes May 5, 2025
@kcudnik
Copy link
Collaborator

kcudnik commented May 5, 2025

could you also add unittests to cover this case ?

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Author

could you also add unittests to cover this case ?

@kcudnik I added missing UT also for DEBUG_COUNTER. Can you please check now?

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Author

rminnikanti commented May 22, 2025

/azpw run Azure.sonic-sairedis

Copy link

Commenter does not have sufficient privileges for PR 1586 in repo sonic-net/sonic-sairedis

@rminnikanti
Copy link
Author

/azpw run Azure.sonic-sairedis

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-sairedis

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Author

/azpw run Azure.sonic-sairedis

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-sairedis

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Author

rminnikanti commented May 27, 2025

@kcudnik Some of the PR checks are getting cancelled. All checks were passing a few days ago on this PR, but they started failing after I rebased the branch. Could you please help look into this?

PR checks cancellation reason:

##[error]No config name or imagelabel provided in request
##[error]The remote provider was unable to process the request.

@kcudnik
Copy link
Collaborator

kcudnik commented May 27, 2025

this is due image ubuntu 20.04 is not available any more, i fixed it here:#1603

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1. vslib support for SAI_OBJECT_TYPE_HOSTIF_TRAP,
   attribute - SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE
2. Added UT for SAI_OBJECT_TYPE_HOSTIF_TRAP
3. Added UT for SAI_OBJECT_TYPE_DEBUG_COUNTER

HLD: sonic-net/SONiC#1943

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
Added unittest comments to satisfy PR checks.

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

4 participants