Merge "Fix periodic_resync thread in DHCP agent"

This commit is contained in:
Zuul
2025-10-10 11:47:18 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -416,7 +416,7 @@ class DhcpAgent(manager.Manager):
def periodic_resync(self):
"""Spawn a thread to periodically resync the dhcp state."""
resync_thread = threading.Thread(target=self._periodic_resync_event)
resync_thread = threading.Thread(target=self._periodic_resync_helper)
resync_thread.start()
def safe_get_network_info(self, network_id):

View File

@@ -592,7 +592,7 @@ class TestDhcpAgent(base.BaseTestCase):
mock_t.return_value = None
dhcp.periodic_resync()
mock_t.assert_called_once_with(
target=dhcp._periodic_resync_event)
target=dhcp._periodic_resync_helper)
def test_start_ready_ports_loop(self):
dhcp = dhcp_agent.DhcpAgent(HOSTNAME)