[dhcp_server] Add dhcp_server container (#14031)

Why I did it
Add dhcp_server ipv4 feature to SONiC.
HLD: sonic-net/SONiC#1282

How I did it
To be clarify: This container is disabled by INCLUDE_DHCP_SERVER = n for now, which would cause container not build.

Add INCLUDE_DHCP_SERVER to indicate whether to build dhcp_server container
Add docker file for dhcp_server, build and install kea-dhcp4 inside container
Add template file for dhcp_server container services.
Add entry for dhcp_server to FEATURE table in config_db.
How to verify it
Build image with INCLUDE_DHCP_SERVER = y to verify:

Image can be install successfully without crush.
By config feature state dhcp_server enabled to enable dhcp_server.
This commit is contained in:
Yaqiang Zhu
2023-09-11 12:15:56 -04:00
committed by GitHub
parent b13b41fc22
commit 76b7cb8b64
15 changed files with 263 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import click
import utilities_common.cli as clicommon
@click.group(cls=clicommon.AliasedGroup, name="dhcp_server")
def dhcp_server():
"""show DHCP Server information"""
pass
def register(cli):
# cli.add_command(dhcp_server)
pass