commit b950fff6700bdfaacbf64415b322525ddcab85ef
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jun 3 14:49:45 2021 +0000
Populate self.floating_ips_dict using "ip rule" information
When the L3 agent starts, reads the floating IP rule priority from
a state file created by "FipRulePriorityAllocator". In case of not
having all floating IPs registers in this file, the method:
- Creates a new priority for this floating IP.
- Creates the "ip rule" in the namespace.
- Adds a new entry in "self.floating_ips_dict".
All "ip rules" present in the namespace that do not match the
registered fixed IP address ("from") and the priority assigned
are deleted.
That patch additionally changes to use old IpRuleCommand.add() method
from the ip_lib module as in that branch it's not yet moved to use
pyroute2 library. Additional changes are in the
neutron/agent/l3/dvr_local_router.py file.
Change-Id: Ia3fbde3304ab5f3c309dc62dbf58274afbcf4614
(cherry picked from commit a03c240ef4ea1d4b874b618dbd0163a3a2f7024c)
(cherry picked from commit b4ad1a2775d00cd6d14bd4766a0a1c5c41332d89)
(cherry picked from commit 34ec42df9fb2c1ee662928ee14be8986acd9f15b)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/810397 /opendev. org/openstack/ neutron/ commit/ b950fff6700bdfa acbf64415b32252 5ddcab85ef
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/queens
commit b950fff6700bdfa acbf64415b32252 5ddcab85ef
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jun 3 14:49:45 2021 +0000
Populate self.floating_ ips_dict using "ip rule" information
When the L3 agent starts, reads the floating IP rule priority from yAllocator" . In case of not ips_dict" .
a state file created by "FipRulePriorit
having all floating IPs registers in this file, the method:
- Creates a new priority for this floating IP.
- Creates the "ip rule" in the namespace.
- Adds a new entry in "self.floating_
All "ip rules" present in the namespace that do not match the
registered fixed IP address ("from") and the priority assigned
are deleted.
Closes-Bug: #1891673
Closes-Bug: #1929821
Conflicts:
neutron/ agent/l3/ dvr_local_ router. py
neutron/ tests/unit/ agent/l3/ test_agent. py
neutron/ tests/unit/ agent/l3/ test_dvr_ local_router. py
That patch additionally changes to use old IpRuleCommand.add() method agent/l3/ dvr_local_ router. py file.
from the ip_lib module as in that branch it's not yet moved to use
pyroute2 library. Additional changes are in the
neutron/
Change-Id: Ia3fbde3304ab5f 3c309dc62dbf582 74afbcf4614 b874b618dbd0163 a3a2f7024c) 6d14bd4766a0a1c 5c41332d89) e662928ee14be89 86acd9f15b)
(cherry picked from commit a03c240ef4ea1d4
(cherry picked from commit b4ad1a2775d00cd
(cherry picked from commit 34ec42df9fb2c1e