This patch removes a conditional check in the update_router() method
which was verifying if snat was enabled in order to update the nat
rules. This check does not make sense in the update method as if snat
was disabled we should still call update_nat_rules() which will then
remove the NAT entry from the OVN NB DB.
Change-Id: Ice20d22365acaf33ee211b1e38b7d0bc151c1ba8
Closes-Bug: #1922089
Signed-off-by: Lucas Alvares Gomes <email address hidden>
(cherry picked from commit ddc8e625f714aebd65a454f23fedc6d9a9320e89)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/792537 /opendev. org/openstack/ neutron/ commit/ 749d9d6fca70aef 005d518e1e4bee1 83ddd724b1
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit 749d9d6fca70aef 005d518e1e4bee1 83ddd724b1
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Apr 28 13:41:15 2021 +0100
[OVN] Fix: Disabling snat after it was enabled
This patch removes a conditional check in the update_router() method
which was verifying if snat was enabled in order to update the nat
rules. This check does not make sense in the update method as if snat
was disabled we should still call update_nat_rules() which will then
remove the NAT entry from the OVN NB DB.
Change-Id: Ice20d22365acaf 33ee211b1e38b7d 0bc151c1ba8 d65a454f23fedc6 d9a9320e89)
Closes-Bug: #1922089
Signed-off-by: Lucas Alvares Gomes <email address hidden>
(cherry picked from commit ddc8e625f714aeb