Merge "Add the port "fixed_ips" information in the DHCP RPC" into stable/2023.2
This commit is contained in:
commit
4807ed8936
@ -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'])
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user