forked from ovn-org/ovn
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for overlay provider networks.
It is expected that a provider network logical switch has a localnet logical switch port in order to bridge the overlay traffic to the underlay traffic. There can be some usecases where a overlay logical switch (without a localnet port) can act as a provider network and presently NAT doesn't work as expected. This patch adds this support. A new config option "overlay_provider_network" is added to support this feature. This feature gets enabled for a logical switch 'P' if: - The above option is set to true in the Logical_Switch.other_config column. - The logical switch 'P' doesn't have any localnet ports. - The logical router port of a router 'R' connecting to 'P' is a gateway router port. - And the logical router 'R' has only one gateway router port. If all the above conditions are met, ovn-northd creates a chassisredirect port for the logical switch port (of type router) connecting to the router 'R'. For example, if the logical port is named as "P-R" and its peer router port is "R-P", then chassisredirect port cr-P-R is created along with cr-R-P. Gateway chassis binding the cr-R-P also binds cr-P-R. This ensures that the routing is centralized on this gateway chassis for the traffic coming from switch "P" towards the router or vice versa. This centralization is required in order to support NAT (both SNAT and DNAT). Distributed NAT (i.e if external_mac and router_port is set) is not supported and instead the router port mac is used for such traffic. Reported-at: https://issues.redhat.com/browse/FDP-364 Signed-off-by: Numan Siddique <numans@ovn.org>
- Loading branch information
1 parent
964c37e
commit 9e89aae
Showing
9 changed files
with
928 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.