Skip to content

Support bird3#135

Merged
xddxdd merged 2 commits intoxddxdd:masterfrom
ribetm:master
Nov 23, 2025
Merged

Support bird3#135
xddxdd merged 2 commits intoxddxdd:masterfrom
ribetm:master

Conversation

@ribetm
Copy link
Contributor

@ribetm ribetm commented Nov 22, 2025

BGP route info is written as bgp_x instead of BGP.x

For now the only meaningful difference I found is the AS path used for 3 features:

  • bgpmap
  • clickable AS for WHOIS info
  • telegram bot path command (untested)

I'll try to check for other necessary changes

@ribetm
Copy link
Contributor Author

ribetm commented Nov 23, 2025

I didn't find anything else, however I would be glad if someone could test the telegram bot. But looking at the code I am rather confident with the current state of the PR.

BGP.local_pref: 100
BGP.community: (64511,4) (64511,34) (64511,24)
BGP.large_community: (4242420604, 2, 50) (4242420604, 501, 4242423914) (4242420604, 502, 44) (4242420604, 504, 4) (4242421080, 104, 1) (4242421080, 101, 44) (4242421080, 103, 126)
via 172.22.96.65 on dn42-bird3
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a thought, it might be better to move the Bird3 test case into a separate file (maybe with 2-3 routes in total?)

This would make it more clear where the output is coming from, as I don't think you would ever see mixed Bird 2 / 3 output formats in one command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about that, but that would require either duplicating all appropriate tests or rework them to work with multiple inputs.

Copy link

Choose a reason for hiding this comment

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

In my POV : The code is straightforward, the test coverage is adequate, and the changes are minimal and focused.
That said, if the codebase doesn't already have a pattern for this, the current approach is pragmatic

Copy link
Owner

Choose a reason for hiding this comment

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

IMO this is fine, since bird-lg-go doesn't require an additional flag to switch mode between bird2/bird3, so it should simultaneously work with both of them.

@xddxdd
Copy link
Owner

xddxdd commented Nov 23, 2025

Looks good to me. I don't use bird3 so cannot test the Telegram bot, but we can fix this in a separate PR if it doesn't work.

@xddxdd xddxdd merged commit 5ee55ad into xddxdd:master Nov 23, 2025
6 checks passed
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.

4 participants