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

[gcu][dhcp_relay] Fix dhcp_relay container is not running in gcu test #16460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yaqiangz
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
    • Add ownership here(Microsft required only)
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

In gcu dhcp_relay test, it would add 2 vlans with 4 dhcp servers. Previously all 8 dhcp servers are added by cli separately, it would restart dhcp_relay container 8 times, which would cause dhcp_relay container is not running in gcu test in some low performance devices.

How did you do it?

Use sonic-db-cli to add dhcp servers, then manually resetart dhcp_relay container once.

How did you verify/test it?

Run tests

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@yaqiangz yaqiangz requested a review from wen587 January 10, 2025 12:51
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -108,16 +110,14 @@ def default_setup(duthost, vlan_intfs_list):
# Generate 4 dhcp servers for each new created vlan
for vlan in vlan_intfs_list:
expected_content_dict[vlan] = []
cmds.append('sonic-db-cli CONFIG_DB hset "VLAN|Vlan{}" "dhcp_servers@" "{}"'
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Yaqiang, I don't think it is a good way to use sonic-db-cli to update the configDB. Can we use sudo config cli to add server at one time, like you presented earlier?

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.

3 participants