commit c44d075269acb0b28ef3d68071ac3864911077d9
Author: Daniel Alvarez <email address hidden>
Date: Wed Aug 29 15:58:05 2018 +0000
Set/unset external MAC addresses for NAT entry when port is up/down
When using distributed floating IPs, we set the external MAC
address and logical port fields regardless whether the LSP
is up. For the particular use of Octavia LB VIP, which doesn't
ever get bound, the floating IP associated to it will never
get the flows installed by ovn-controller.
This patch changes the mechanism so that the DNAT entries get
updated only on port up/down changes. If the port remains
down, the external_mac will be cleared and traffic to those
FIPs will still go through the centralized router.
When a port gets bound to a chassis, if DVR is enabled, the
mac_address field will be populated and traffic will go to
the compute node.
Closes-bug: #1789686
Change-Id: I0043984b4bb7b3780112aba170ffb956c48084d0
Signed-off-by: Daniel Alvarez <email address hidden>
Reviewed: https:/ /review. openstack. org/592538 /git.openstack. org/cgit/ openstack/ networking- ovn/commit/ ?id=c44d075269a cb0b28ef3d68071 ac3864911077d9
Committed: https:/
Submitter: Zuul
Branch: master
commit c44d075269acb0b 28ef3d68071ac38 64911077d9
Author: Daniel Alvarez <email address hidden>
Date: Wed Aug 29 15:58:05 2018 +0000
Set/unset external MAC addresses for NAT entry when port is up/down
When using distributed floating IPs, we set the external MAC
address and logical port fields regardless whether the LSP
is up. For the particular use of Octavia LB VIP, which doesn't
ever get bound, the floating IP associated to it will never
get the flows installed by ovn-controller.
This patch changes the mechanism so that the DNAT entries get
updated only on port up/down changes. If the port remains
down, the external_mac will be cleared and traffic to those
FIPs will still go through the centralized router.
When a port gets bound to a chassis, if DVR is enabled, the
mac_address field will be populated and traffic will go to
the compute node.
Closes-bug: #1789686 780112aba170ffb 956c48084d0
Change-Id: I0043984b4bb7b3
Signed-off-by: Daniel Alvarez <email address hidden>