Skip to content

[Enhancement] BGP originate does not allow 0.0.0.0/0 prefix #3214

@jbemmel

Description

@jbemmel

Context: https://netlab.tools/module/bgp/#module-bgp-originate

A topology from https://theworldsgonemad.net/2025/lab-as-code-pt2/#topology uses:

ISP:
    module: [ bgp ]
    provider: libvirt
    device: csr
    bgp.originate: 0.0.0.0/0

On the dev branch we get:

[ERRORS]  Errors found in topology.yml
[VALUE]   bgp: attribute 'nodes.ISP.bgp.originate[1]' must be IPv4 prefix outside of reserved ranges
          (0.0.0.0/0 is in local range)

In the current code base, the preferred way would be to use the bgp.session plugin and set bgp.default_originate: true

It would be nice if the (arguably) more intuitive bgp.originate: 0.0.0.0/0 would work too, or at least provide a specific error message with a recommended resolution

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions