Skip to content

bgp: ipv4 session comes up before ipv6 address is configured on link (BGP configured to AF6 && AF4)#20360

Merged
Jafaral merged 1 commit intoFRRouting:masterfrom
enissim:nexthop_4567664_A
Jan 21, 2026
Merged

bgp: ipv4 session comes up before ipv6 address is configured on link (BGP configured to AF6 && AF4)#20360
Jafaral merged 1 commit intoFRRouting:masterfrom
enissim:nexthop_4567664_A

Conversation

@enissim
Copy link
Copy Markdown
Contributor

@enissim enissim commented Jan 4, 2026

If there's no ipv6 address yet on the interfaces of the link connecting 2 peers, peer advertises prefixes with next hop ipv4 address

mapped to ipv6 (::ffff+ipv4)

@enissim enissim force-pushed the nexthop_4567664_A branch from f91e97a to e74a4fc Compare January 4, 2026 12:34
@enissim enissim changed the title ipv4 session comes up before ipv6 address is configured on link (BGP configured to AF6 && AF4) bgp:ipv4 session comes up before ipv6 address is configured on link (BGP configured to AF6 && AF4) Jan 4, 2026
@enissim enissim changed the title bgp:ipv4 session comes up before ipv6 address is configured on link (BGP configured to AF6 && AF4) bgp: ipv4 session comes up before ipv6 address is configured on link (BGP configured to AF6 && AF4) Jan 4, 2026
@frrbot frrbot Bot added the bugfix label Jan 5, 2026
Copy link
Copy Markdown
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

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

Squash all the commits to a single one and please write a topotest.

Comment thread bgpd/bgp_zebra.c Outdated
Comment thread bgpd/bgp_zebra.c Outdated
Comment thread bgpd/bgp_zebra.c Outdated
@enissim enissim force-pushed the nexthop_4567664_A branch from 96cce9f to 90a073d Compare January 5, 2026 12:53
@frrbot frrbot Bot added bgp documentation tests Topotests, make check, etc zebra labels Jan 5, 2026
@github-actions github-actions Bot added size/XXL and removed size/M labels Jan 5, 2026
@donaldsharp
Copy link
Copy Markdown
Member

Something sure seems like it has gone wrong. The FRR code base already has a bunch of these changes. Please force update to latest master and repush

@enissim enissim force-pushed the nexthop_4567664_A branch 2 times, most recently from b89a640 to af64272 Compare January 5, 2026 15:00
@github-actions github-actions Bot added size/L and removed size/XXL labels Jan 5, 2026
@enissim
Copy link
Copy Markdown
Contributor Author

enissim commented Jan 5, 2026

Thanks for the review!
I’ve squashed to a single commit and added the requested topotest.
as well as the other changes
Please take another look.

@enissim enissim force-pushed the nexthop_4567664_A branch from af64272 to 3ca7f9b Compare January 5, 2026 15:23
@frrbot frrbot Bot added docker libfrr mgmt FRR Management Infra ospf labels Jan 5, 2026
@github-actions github-actions Bot added size/XXL and removed size/L labels Jan 5, 2026
@enissim enissim requested a review from ton31337 January 5, 2026 15:24
@ton31337
Copy link
Copy Markdown
Member

ton31337 commented Jan 5, 2026

broken rebase?

@enissim enissim force-pushed the nexthop_4567664_A branch from 3ca7f9b to 91cff51 Compare January 6, 2026 06:02
@enissim enissim force-pushed the nexthop_4567664_A branch 2 times, most recently from ff9970c to e2d9806 Compare January 7, 2026 11:48
Comment thread bgpd/bgp_zebra.c Outdated
Comment thread tests/topotests/bgp_tcpv4_af6_nexthop_check/test_bgp_tcpv4_af6_nexthop_check.py Outdated
@enissim enissim force-pushed the nexthop_4567664_A branch from e2d9806 to 92e0187 Compare January 7, 2026 15:32
@enissim enissim requested a review from donaldsharp January 7, 2026 15:33
@enissim enissim force-pushed the nexthop_4567664_A branch 2 times, most recently from 38bcadd to b596e92 Compare January 7, 2026 19:21
@ton31337
Copy link
Copy Markdown
Member

ton31337 commented Jan 7, 2026

Please fix the styling (frrbot).

@enissim enissim force-pushed the nexthop_4567664_A branch 2 times, most recently from 6730f4d to b1be080 Compare January 8, 2026 04:16
…BGP configured to AF6 && AF4)

If there's no ipv6 address yet on the interfaces of the link connecting 2 peers, peer advertises prefixes with next hop ipv4 address
mapped to ipv6 (::ffff+ipv4)

Signed-off-by: Eyal Nissim <enissim@nvidia.com>
@enissim enissim force-pushed the nexthop_4567664_A branch from b1be080 to 0e54529 Compare January 8, 2026 05:53
@enissim
Copy link
Copy Markdown
Contributor Author

enissim commented Jan 8, 2026

Addressed all feedback — PTAL when you have a moment.
Thanks :)

@github-actions github-actions Bot added rebase PR needs rebase labels Jan 8, 2026
@ton31337
Copy link
Copy Markdown
Member

ton31337 commented Jan 8, 2026

@donaldsharp, are you fine with the changes?

@enissim
Copy link
Copy Markdown
Contributor Author

enissim commented Jan 9, 2026

Hi Donald,
Could you please take a look when you have a moment?
thanks

@enissim
Copy link
Copy Markdown
Contributor Author

enissim commented Jan 20, 2026

Hi Donald,
Is the PR approved?
Do I have to make any additional changes?
your comments please :-)
Thanks

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

Labels

bgp bugfix master rebase PR needs rebase size/L tests Topotests, make check, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants