Skip to content

[dhcp_relay] CLI: sonic dhcp relay agent for IPv4 - #23242

Merged
yxieca merged 15 commits into
sonic-net:masterfrom
cshivashgit:sonic-dhcp4relay-cli
Nov 10, 2025
Merged

[dhcp_relay] CLI: sonic dhcp relay agent for IPv4#23242
yxieca merged 15 commits into
sonic-net:masterfrom
cshivashgit:sonic-dhcp4relay-cli

Conversation

@cshivashgit

Copy link
Copy Markdown
Contributor

Changes include all the cli commands included for DHCPv4 Relay.

Why I did it

Currently SONiC uses the 'isc-dhcp-relay' package to allow DHCP relay functionality on IPv4 networks.
With this PR we are adding sonic dhcp relay agent for IPv4 as described in this HLD(sonic-net/SONiC#1938).
Docker changes PR : #22486

Work item tracking
  • Microsoft ADO (number only):

How I did it

Included new commands to support dhcpv4_relay in dockers/docker-dhcp-relay folder.
Corresponding cli-plugin-tests are included.

How to verify it

Configure sonic DHCPv4 agent as described in the feature HLD(sonic-net/SONiC#1938)
Test it with real client/server with IPv4 or use the sonic-mgmt suite

Which release branch to backport (provide reason below if selected)

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Tested branch (Please provide the tested image version)

Description for the changelog

sonic dhcp4relay agent

Link to config_db schema for YANG module changes

#22338

A picture of a cute animal (not mandatory but encouraged)

@cshivashgit
cshivashgit requested a review from lguohan as a code owner July 7, 2025 06:05
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

Changes include all the cli commands included for DHCPv4 Relay.
Comment thread dockers/docker-dhcp-relay/cli/clear/plugins/clear_dhcp_relay.py Outdated
@cshivashgit
cshivashgit force-pushed the sonic-dhcp4relay-cli branch from 511350c to 0f0bd87 Compare July 7, 2025 06:32
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@cshivashgit
cshivashgit force-pushed the sonic-dhcp4relay-cli branch from 1b1d976 to 1f924e0 Compare July 29, 2025 06:33
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 5, 2025

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: cshivashgit / name: Shivashankar C R (62b90f0)

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

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

@yxieca
yxieca merged commit 549e7a2 into sonic-net:master Nov 10, 2025
21 checks passed
ashutosh-agrawal pushed a commit to AnantKishorSharma/sonic-buildimage that referenced this pull request Nov 30, 2025
Why I did it
Currently SONiC uses the 'isc-dhcp-relay' package to allow DHCP relay functionality on IPv4 networks.
With this PR we are adding sonic dhcp relay agent for IPv4 as described in this HLD(sonic-net/SONiC#1938).
Docker changes PR : sonic-net#22486

How I did it
Included new commands to support dhcpv4_relay in dockers/docker-dhcp-relay folder.
Corresponding cli-plugin-tests are included.

How to verify it
Configure sonic DHCPv4 agent as described in the feature HLD(sonic-net/SONiC#1938)
Test it with real client/server with IPv4 or use the sonic-mgmt suite

Co-authored-by: Prashant Srivastava <srivastavaprashant829@gmail.com>
FengPan-Frank pushed a commit to FengPan-Frank/sonic-buildimage that referenced this pull request Dec 4, 2025
Why I did it
Currently SONiC uses the 'isc-dhcp-relay' package to allow DHCP relay functionality on IPv4 networks.
With this PR we are adding sonic dhcp relay agent for IPv4 as described in this HLD(sonic-net/SONiC#1938).
Docker changes PR : sonic-net#22486

How I did it
Included new commands to support dhcpv4_relay in dockers/docker-dhcp-relay folder.
Corresponding cli-plugin-tests are included.

How to verify it
Configure sonic DHCPv4 agent as described in the feature HLD(sonic-net/SONiC#1938)
Test it with real client/server with IPv4 or use the sonic-mgmt suite

Co-authored-by: Prashant Srivastava <srivastavaprashant829@gmail.com>
Signed-off-by: Feng Pan <fenpan@microsoft.com>
xwjiang-ms pushed a commit to xwjiang-ms/sonic-buildimage that referenced this pull request Dec 22, 2025
Why I did it
Currently SONiC uses the 'isc-dhcp-relay' package to allow DHCP relay functionality on IPv4 networks.
With this PR we are adding sonic dhcp relay agent for IPv4 as described in this HLD(sonic-net/SONiC#1938).
Docker changes PR : sonic-net#22486

How I did it
Included new commands to support dhcpv4_relay in dockers/docker-dhcp-relay folder.
Corresponding cli-plugin-tests are included.

How to verify it
Configure sonic DHCPv4 agent as described in the feature HLD(sonic-net/SONiC#1938)
Test it with real client/server with IPv4 or use the sonic-mgmt suite

Co-authored-by: Prashant Srivastava <srivastavaprashant829@gmail.com>
Signed-off-by: xiaweijiang <xiaweijiang@microsoft.com>
mhchann pushed a commit to mhchann/sonic-buildimage that referenced this pull request May 7, 2026
Why I did it
Currently SONiC uses the 'isc-dhcp-relay' package to allow DHCP relay functionality on IPv4 networks.
With this PR we are adding sonic dhcp relay agent for IPv4 as described in this HLD(sonic-net/SONiC#1938).
Docker changes PR : sonic-net#22486

How I did it
Included new commands to support dhcpv4_relay in dockers/docker-dhcp-relay folder.
Corresponding cli-plugin-tests are included.

How to verify it
Configure sonic DHCPv4 agent as described in the feature HLD(sonic-net/SONiC#1938)
Test it with real client/server with IPv4 or use the sonic-mgmt suite

Co-authored-by: Prashant Srivastava <srivastavaprashant829@gmail.com>
Signed-off-by: mhchann <mhchann082@gmail.com>
roger530-ho pushed a commit to roger530-ho/sonic-buildimage that referenced this pull request Jun 23, 2026
Why I did it
Currently SONiC uses the 'isc-dhcp-relay' package to allow DHCP relay functionality on IPv4 networks.
With this PR we are adding sonic dhcp relay agent for IPv4 as described in this HLD(sonic-net/SONiC#1938).
Docker changes PR : sonic-net#22486

How I did it
Included new commands to support dhcpv4_relay in dockers/docker-dhcp-relay folder.
Corresponding cli-plugin-tests are included.

How to verify it
Configure sonic DHCPv4 agent as described in the feature HLD(sonic-net/SONiC#1938)
Test it with real client/server with IPv4 or use the sonic-mgmt suite

Co-authored-by: Prashant Srivastava <srivastavaprashant829@gmail.com>
xdqi pushed a commit to canonical/sonic-buildimage that referenced this pull request Jul 6, 2026
Why I did it
Currently SONiC uses the 'isc-dhcp-relay' package to allow DHCP relay functionality on IPv4 networks.
With this PR we are adding sonic dhcp relay agent for IPv4 as described in this HLD(sonic-net/SONiC#1938).
Docker changes PR : sonic-net#22486

How I did it
Included new commands to support dhcpv4_relay in dockers/docker-dhcp-relay folder.
Corresponding cli-plugin-tests are included.

How to verify it
Configure sonic DHCPv4 agent as described in the feature HLD(sonic-net/SONiC#1938)
Test it with real client/server with IPv4 or use the sonic-mgmt suite

Co-authored-by: Prashant Srivastava <srivastavaprashant829@gmail.com>
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.

8 participants