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

Support for Bird2 ipv4 and ipv6 in a single daemon #28

Open
jwieq opened this issue Nov 24, 2020 · 10 comments
Open

Support for Bird2 ipv4 and ipv6 in a single daemon #28

jwieq opened this issue Nov 24, 2020 · 10 comments

Comments

@jwieq
Copy link

jwieq commented Nov 24, 2020

Hi, we are running bird2.0.7 in a single daemon supporting both ipv4 and ipv6.

We have found that birdwatcher works well with our installation with just one exception - /protocols/bgp does not return any route summary data for IPv6 sessions.

We have tracked it down to bird/parser.go's isCorrectChannel function which appears to only support either v4 or v6 but not both in the same instance.

Is there any way to work around this issue?

Cheers

@jwieq
Copy link
Author

jwieq commented Nov 25, 2020

We managed to make it work for now with this awful hack:

diff --git a/bird/parser.go b/bird/parser.go
index d64797e..fc93fba 100644
--- a/bird/parser.go
+++ b/bird/parser.go
@@ -570,6 +570,8 @@ func parseProtocol(lines string) Parsed {

            if isCorrectChannel(ipVersion) {
                    parseLine(line, handlers)
  •           } else {
    
  •                   parseLine(line, handlers)
              }
      }
    

Am not a go guy so I'm sure there's a better way.

The channel version check isn't happy with ipv4 and ipv6 in the same daemon, but it probably should be. In our purely ebgp deployment, it works perfectly fine once this is applied.

@annikahannig
Copy link
Member

I did not have a chance to test this so far. However your patch basically means remove the isCorrectChannel(...) entirely. (if true -> parseLine, if false -> parseLine :-) )

@jwieq
Copy link
Author

jwieq commented Nov 25, 2020

Pull request submitted. :)

@jwieq
Copy link
Author

jwieq commented Dec 1, 2020

Quick note here. We found that with our hacked version, that in birdwatcher we could not see filtered ipv6 prefixes still. So we made a further hack to allow filtered v6 prefixes to show up.

jwieq@f463fe7

@tweippert
Copy link

With this i see only filtered prefixes on search page. on the Routeserver Peer Page Filtered/accepted Routes are shown as expected. Haven't looked on the code actual

@bluikko
Copy link
Contributor

bluikko commented Dec 8, 2021

Would this fix the problem with BIRD2 where IPv4 Alice lists additionally all IPv6 neighbors with 0 routes - and conversely the IPv6 Alice instance lists additionally all IPv4 neighbors with 0 routes?

@netstx
Copy link

netstx commented May 31, 2022

Would this fix the problem with BIRD2 where IPv4 Alice lists additionally all IPv6 neighbors with 0 routes - and conversely the IPv6 Alice instance lists additionally all IPv4 neighbors with 0 routes?

I am wondering about the same, have had a hard time fixing this, even after choosing "single_table" type and setting the tables to master4 and master6 accordingly (with 2 birdwatcher instances running).

Any help would be much appreciated.

@jwieq
Copy link
Author

jwieq commented May 31, 2022 via email

@axu-trex
Copy link

axu-trex commented Nov 7, 2023

Is this issue still half broken, or did someone just forget to close the issue?

@axu-trex
Copy link

axu-trex commented Oct 6, 2024

One year on, I see some pull requests merged, and they seem to address this issue.

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

No branches or pull requests

6 participants