Skip to content

Commit 432b502

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add the port "fixed_ips" information in the DHCP RPC" into stable/2023.1
2 parents 4052aa0 + 182b5ac commit 432b502

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def _after_router_interface_deleted(self, resource, event, trigger,
284284
port = payload.metadata.get('port')
285285
self._notify_agents(payload.context, 'port_delete_end',
286286
{'port_id': port['id'],
287+
'fixed_ips': port['fixed_ips'],
287288
'network_id': port['network_id']},
288289
port['network_id'])
289290

neutron/tests/unit/api/rpc/agentnotifiers/test_dhcp_rpc_agent_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def test__notify_agents_with_router_interface_delete(self):
251251
payload = events.DBEventPayload(
252252
mock.Mock(), metadata={
253253
'port': {'id': 'foo_port_id',
254+
'fixed_ips': mock.ANY,
254255
'network_id': 'foo_network_id'}})
255256
self._test__notify_agents_with_function(
256257
lambda: self.notifier._after_router_interface_deleted(

0 commit comments

Comments
 (0)