Skip to content
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

[dhcp_server] add config dhcp server range #17741

Merged

Conversation

Xichen96
Copy link
Contributor

Why I did it

Add config dhcp server range add / update / delete

Work item tracking
  • Microsoft ADO (number only):

How I did it

Add command to config plugin

How to verify it

Run unittest and run manually on latest image

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Latest public image

Description for the changelog

Add config dhcp_server range related functions

Link to config_db schema for YANG module changes

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

ctx = click.get_current_context()
dbconn = db.db
key = "DHCP_SERVER_IPV4_RANGE|" + range_name
if dbconn.exists("CONFIG_DB", key):
Copy link
Contributor

@yaqiangz yaqiangz Jan 11, 2024

Choose a reason for hiding this comment

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

How about add checks to make sure range is not used in DHCP_SERVER_IPV4 table and add a not required argument '--force' to bypass the check?

Copy link
Contributor

Choose a reason for hiding this comment

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

#Closed

@Xichen96
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca yxieca merged commit a100f15 into sonic-net:master Jan 17, 2024
18 checks passed
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