From de29b49b132b84f07329780958b503edbd5c77f6 Mon Sep 17 00:00:00 2001 From: Oleg Bondarev Date: Tue, 11 Feb 2020 12:18:09 +0400 Subject: [PATCH] dhcp-agent: equalize port create_low/update/delete priority Low port delete priority may lead to duplicate entries in network cache if IPs are reused frequently. Also can't find a strict reason why it should be of lower priority. Change-Id: I55f858d50e636eb9091570b256380330b9ce9cb3 Related-bug: #1862315 Related-bug: #1828423 (cherry picked from commit a0bb5763b277d7360554fd64813fdce01244d2fa) --- neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py b/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py index 347786787a1..cba80b35d76 100644 --- a/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py +++ b/neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py @@ -44,8 +44,8 @@ PRIORITY_SUBNET_DELETE = 4 # other dhcp agents. PRIORITY_PORT_CREATE_HIGH = 5 PRIORITY_PORT_CREATE_LOW = 6 -PRIORITY_PORT_UPDATE = 7 -PRIORITY_PORT_DELETE = 8 +PRIORITY_PORT_UPDATE = 6 +PRIORITY_PORT_DELETE = 6 METHOD_PRIORITY_MAP = { 'network_create_end': PRIORITY_NETWORK_CREATE,