metal-stack / metal-networker

configures networking of metal machines during installation.
MIT License
4 stars 2 forks source link

Leak the default route and private routes to the default VRF of firewalls #30

Open mwindower opened 4 years ago

mwindower commented 4 years ago

Idea would be to import the private tenant VRF and the internet VRF to the default VRF. Therewith we get out of the default VRF.

The backwards routes are problematic: Cumulus has a list of constraints for route leaking: https://docs.cumulusnetworks.com/cumulus-linux-37/Layer-3/Virtual-Routing-and-Forwarding-VRF/#vrf-route-leaking

One of those is:

VRF route leaking is not supported between the tenant VRF and the default VRF with onlink next hops (BGP unnumbered).

This is exactly the case what we need for the backward routes.

One of the ideas to solve this is to get the routes to the default VRF with a dedicated pair of route export and route import statements.

mwindower commented 4 years ago

One of the maintainers of FRR reported, that the aforementioned restriction was lifted "some time ago"; so "import vrf default" is in fact allowed (with vtysh and conf t we get autocompletion for it!).

And in fact we see all necessary routes and TCP sessions start to initiate:

/cc @majst01