Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate only-announce #258

Open
rapdodge opened this issue Nov 18, 2024 · 0 comments
Open

Separate only-announce #258

rapdodge opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rapdodge
Copy link

Describe the bug

only-announce is failed to setup when it's having 2 AF (Address Family) at same time.

Environment

  1. Output from pathvector version
Pathvector 6.3.2
Built c35220bf121f366ff05a51d93c6236e8c324d682 on 2023-06-11T07:03:14Z
No plugins
BIRD: ready.
  1. OS version
    Debian 12
  2. Minimum reproducible example of your Pathvector config file formatted with triple backticks with yaml language identifier
templates:
  ibgp:
    allow-local-as: true
    asn: 65535
    direct: true
    enforce-first-as: false
    enforce-peer-nexthop: false
    export-limit6: 10
    filter-irr: false
    filter-rpki: false
    import-limit6: 500000
    next-hop-self: true
    receive-limit6: 500000

peers:
  iBGP_Downstream:
    add-on-import:
      - 65535:1:4
    announce:
      - 65535:1:4
    disabled: false
    listen4: '172.16.0.1'
    listen6: 'fde3:1eaf:9fba:1::2'
    local-port: 209
    local-pref: 400
    neighbor-port: 209
    neighbors:
      - '172.16.0.2'
      - 'fde3:1eaf:9fba:1::1'
    only-announce:
      - '192.168.0.0/24'
      - '2001:db8::/32'
    template: ibgp

To Reproduce

Steps to reproduce the behavior:

  1. Add peer config to pathvector.yml...
  2. Run pathvector g
  3. See error
DEBU[0011] Found error in ./AS65535.conf:xxx:xx message Mixed IPv4/IPv6 prefixes in prefix set
FATA[0011] BIRD: BIRD validation error:
  2001:db8::/32
            ]) then _reject("prefix not in only-announce list");
            ^ Mixed IPv4/IPv6 prefixes in prefix set
            if ((65535,1,4) ~ bgp_large_community) then accept;

Expected behavior

Separated config for v4 and v6

@rapdodge rapdodge added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant