Merge "Add the port "fixed_ips" information in the DHCP RPC" into stable/2023.2

This commit is contained in:
Zuul 2024-07-08 10:34:09 +00:00 committed by Gerrit Code Review
commit 4807ed8936
2 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,7 @@ class DhcpAgentNotifyAPI(object):
port = payload.metadata.get('port')
self._notify_agents(payload.context, 'port_delete_end',
{'port_id': port['id'],
'fixed_ips': port['fixed_ips'],
'network_id': port['network_id']},
port['network_id'])

View File

@ -251,6 +251,7 @@ class TestDhcpAgentNotifyAPI(base.BaseTestCase):
payload = events.DBEventPayload(
mock.Mock(), metadata={
'port': {'id': 'foo_port_id',
'fixed_ips': mock.ANY,
'network_id': 'foo_network_id'}})
self._test__notify_agents_with_function(
lambda: self.notifier._after_router_interface_deleted(