Skip to content

WIP: Add static default routes when originating BGP default routes#3527

Draft
ipspace wants to merge 1 commit into
devfrom
bgp-default
Draft

WIP: Add static default routes when originating BGP default routes#3527
ipspace wants to merge 1 commit into
devfrom
bgp-default

Conversation

@ipspace

@ipspace ipspace commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Some devices (Junos, BIRD) need a default route in the routing table to originate a BGP default route. To simplify the configuration templates, the bgp.session plugin adds the necessary static routes and activates the 'routing' module on the affected node(s).

Working:

  • Global and VRF static routes are added
  • Deduplication of added static routes

Still missing:

  • Dual-stack/IPv6 checks
  • Using existing defaults

Some devices (Junos, BIRD) need a default route in the routing table
to originate a BGP default route. To simplify the configuration
templates, the bgp.session plugin adds the necessary static routes
and activates the 'routing' module on the affected node(s).

Working:
* Global and VRF static routes are added
* Deduplication of added static routes

Still missing:
* Dual-stack/IPv6 checks
* Using existing defaults
@ipspace ipspace marked this pull request as draft June 25, 2026 05:51
continue

append_to_list(ndata,'module','routing') # Activate the routing module in the node
append_to_list(topology,'module','routing') # ... assuming the developer setting BGP features was sane ;)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope this doesn't activate the routing module on all nodes in the topology?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants