Skip to content

show command for icmp echo offload sessions#3889

Merged
qiluo-msft merged 5 commits intosonic-net:masterfrom
manamand2020:icmpshow
May 27, 2025
Merged

show command for icmp echo offload sessions#3889
qiluo-msft merged 5 commits intosonic-net:masterfrom
manamand2020:icmpshow

Conversation

@manamand2020
Copy link
Contributor

What I did

Added show command to display icmp echo offload sessions

How I did it

  • added show utility icmp.py

How to verify it

  • added pytests to verify

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

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

Signed-off-by: Manas Kumar Mandal <manamand@cisco.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

zjswhhh
zjswhhh previously approved these changes May 22, 2025
Copy link
Contributor

@zjswhhh zjswhhh left a comment

Choose a reason for hiding this comment

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

lgtm

@zjswhhh
Copy link
Contributor

zjswhhh commented May 22, 2025

@manamand2020 please address the conflicts.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

Signed-off-by: Manas Kumar Mandal <manamand@cisco.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Manas Kumar Mandal <manamand@cisco.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

zjswhhh
zjswhhh previously approved these changes May 25, 2025
@zjswhhh
Copy link
Contributor

zjswhhh commented May 25, 2025

Hi @qiluo-msft - please help merge.

@qiluo-msft qiluo-msft requested a review from Copilot May 26, 2025 03:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new show command to display ICMP echo offload sessions. Key changes include:

  • Adding new ICMP session entries in state database mock files.
  • Introducing a new icmp command and module in the show utility.
  • Adding unit tests to validate the new command functionality.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/mock_tables/state_db.json Added new ICMP_ECHO_SESSION_TABLE entries for testing.
tests/mock_tables/asic1/state_db.json Added ICMP_ECHO_SESSION_TABLE entries to asic1 state db mock.
tests/mock_tables/asic0/state_db.json Added ICMP_ECHO_SESSION_TABLE entries to asic0 state db mock.
tests/icmp_test.py Added unit tests for displaying ICMP echo sessions and summary.
show/main.py Registered the new icmp command with the CLI.
show/icmp.py Implements the logic for showing ICMP echo session details.

Signed-off-by: Manas Kumar Mandal <manamand@cisco.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit d6d866f into sonic-net:master May 27, 2025
7 checks passed
nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
What I did
Added show command to display icmp echo offload sessions

How I did it
added show utility icmp.py
How to verify it
added pytests to verify
@yejianquan
Copy link
Contributor

yejianquan commented Sep 15, 2025

Hi @qiluo-msft , it looks like a slight new feature, could you please comment if it is must-have for 202505 branch?

@zjswhhh
Copy link
Contributor

zjswhhh commented Sep 17, 2025

Hi @yejianquan - the feature is already merged into 202505. So if we can have this show cmd merged too into 202505 that will be great.

@yejianquan
Copy link
Contributor

Hi @manamand2020 , can you fix the conflict and raise PR to 202505 branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants