Repository navigation
Description
The required feature described as a wish
As an operator I would like VPC owners to be able to run BGP between the VR and their own routers over a private gateway, so they can connect their on-prem networks with dynamic failover. As an example, we have two high-speed peering links into a cloud exchange (Megaport, in our case), and we carve out a VLAN on each for a customer's virtual cross connects. Each VLAN would attach to a private gateway on the customer's VPC, so the customer has two paths to their own routers.
With the current code, each gateway needs static routes, and static routes have no way to detect a failure. When a carrier link fails silently, the gateway NIC stays up and the VR keeps sending traffic into the dead link until someone changes the routes by hand. The customer may pay for a second link that only helps after a support ticket. Every new on-prem prefix also needs a static route change on the VPC. AWS Direct Connect, Azure ExpressRoute and Google Cloud Interconnect all run customer BGP on their gateways for this reason, so customers moving hybrid workloads expect it.
CloudStack's existing BGP (#9470) lets operators peer ROUTED VPCs with their own upstream routers. The idea is to extend it to private gateways so the VPC owner can manage it. A BGP flag on the gateway would take the peer AS, a password, the VPC tiers to announce, a max-prefix limit, timers and BFD, and a priority so links can be ranked or share load. The peer address comes from the gateway itself. The VR accepts the customer's routes behind a protected list, announces only the selected tiers, and keeps tenant peers separate from the operator peers and the upstream route-maps from #9964. It should work for NATTED VPCs as well as ROUTED ones, so I think it relates to #12811, which opens dynamic routing to NATTED offerings for IPv6.
Planned PRs
The PRs below are meant to be reviewed in order.
Prerequisite fixes (4.20):
- Routed VR: accept return traffic for VR-initiated connections #14785 Routed VR: accept return traffic for VR-initiated connections (fixes ROUTED VPC router drops replies to its own traffic over a private gateway #14784)
- ROUTED VPC: apply static routes through the Gateway provider #14787 ROUTED VPC: apply static routes through the Gateway provider (fixes Static routes can't be created on ROUTED VPCs #14786)
Feature PRs (main):
- virtual router: Apply BGP peer changes with frr-reload and add a minimum hold time #14841 virtual router: Apply BGP peer changes with frr-reload and add a minimum hold time. Peer changes no longer restart FRR, and the router reports which FRR tools it has.
- Core: the private gateway BGP API, settings and validation, schema, and the VR side (FRR config and firewall). Also tightens ASN and password checks on the existing BGP peer APIs. This is the largest one and I may split it.
- BGP session status, the VPC route table, and the UI tabs.
- Usage records for BGP gateways, and the VPC offering option that turns the feature on.
Each PR builds on the one before. The feature stays off until the offering option in PR 4.
Activity
github-actions commentedon Nov 12, 2026
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
🎯 Triage report
The request is for a routing option on VPC private gateways. Static routes would stay as they are, and a BGP option would take the peer AS, a password, declared prefixes, a max-prefix limit and timers or BFD, so tenants can peer their own routers with the VR and fail over between links. The reporter wants this to work for NATTED as well as ROUTED VPCs, and to keep it separate from operator peers.
📊 Assessment
🔗 Similar issues
routed.network.vpc.enabled, return misleading 'not found' error #13745 (related) — BGP APIs hidden behindrouted.network.vpc.enabled, returning a misleading "not found" error💡 Notes and suggestions
Add this agentic workflow to your repo
To install this agentic workflow, run
MitchDrage commentedon Nov 19, 2026
This will be quite a large feature, so I went through the process of developing my own list of requirements based on my experience, reviewed how that compared to the hyperscale cloud providers' approach, and then independently had Claude Ultracode develop a spec and run its council over the compiled list with voting personas as:
Design diagrams, including three UI mock-ups, and an API spec are attached for reference as well.
I've developed a series of decisions to share for this feature. Included below are the main ones, and the full list with the rationale and alternatives for each is in the attached file. I'm happy to discuss/change any of them.
As you can tell there's some heavy Claude usage here to develop this spec - no one is going to write 1100 lines of spec by hand. It has streamlined the design approach for this and helped me to develop some very detailed collateral, along with pre-testing a significant amount of these decisions - ruling out lots of options and saving me a significant amount of time in the process.
I have hand reviewed and worked on these decisions in detail over many days and I'm comfortable that they represent fairly sound logic, however of course I would I'd appreciate a detailed review and feedback from maintainers prior to jumping into any code and testing.
The path to implement this will take some time. Some bugs I've already reproduced go first as small fixes, and then I'd deliver this through manageably sized PRs so they can be thoroughly reviewed and tested.
Delivery:
Small bug fixes first to 4.20/4.22 where they reproduce without BGP. These are listed below. The feature then goes to main for the release after 24.0, as four PRs linked from this issue:
Each PR can merge on its own, and they merge in order. The offering flag that turns the feature on lands in the last PR, so a release that holds only part of the series exposes nothing to operators or tenants.
Redundant ROUTED VPCs also depend on #14446.
Decision summary:
default_denybrings its session up and installs routes but passes no traffic until the tenant attaches an ACL that allows it. The status shows this.Full list of Design Decisions:
bgp-private-gateway-decisions.md
API Spec:
bgp-private-gateway-api-spec.md
Design diagrams:
UI mockups:
DaanHoogland commentedon Nov 20, 2026
the high level requirement seems sane to me. @wido @weizhouapache @JoaoJandre , can you have a look as well?
wido commentedon Nov 21, 2026
It seems sane to me and would be a great feature. It will be a big one though which will be hard to test.