-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ospf6d: Fix External routes ECMP #1566
Conversation
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an EXPERIMENTAL automated CI system. Get source and apply patch from patchwork: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedCentOS 6 rpm pkg check: Successful Topology tests on Ubuntu 16.04 amd64: FailedTopology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPOU1604-2207/test Topology Tests failed for Topology tests on Ubuntu 16.04 amd64:
see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2207/artifact/TOPOU1604/ErrorLog/log_topotests.txt Topology Tests memory analysis: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2207/artifact/TOPOU1604/MemoryLeaks/CLANG Static Analyzer Summary
New warnings:
Static Analysis warning summary compared to base:
23 Static Analyzer issues remaining.See details at |
|
@mwinter-osr I have tried ospf6 topotest and found that 2001:db8:3::/64 has two ECMP paths (with cost of 20) with same nexthop (r4-eth0) at r4 router. I have disabled redistribute on r1 which was the initial adv-router, at r4 the adv-router changes to r2. .mininet> r4 vtysh -c "show ipv6 ospf6 route 2001:db8:03::/64" Destination: 2001:db8:3::/64 Destination: 2001:db8:3::/64 mininet> r1 vtysh Hello, this is FRRouting (version 3.1-dev). chirag-VirtualBox# config t Destination: 2001:db8:3::/64 Destination: 2001:db8:3::/64 mininet> |
Something doesn't look right with the ecmp changed: R4 looks like this:
And the detailed view shows the Now, if I go to r1 (the one displayed) and shutdown the interface ( However, the routes look like this:
And looking at the details, I see (for 2001:db8:3::/64):
(Yes, not a mistake! The last route has no nexthop!) This looks wrong to me. |
99e3379
to
8fe9fc4
Compare
@mwinter-osr r4 state: Destination: 2001:db8:3::/64 After ifconfig r1-eth1 down at r1, below is r4 state. Destination: 2001:db8:3::/64 |
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an EXPERIMENTAL automated CI system. Get source and apply patch from patchwork: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedFedora 24 rpm pkg check: Successful Topology tests on Ubuntu 16.04 amd64: FailedTopology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPOU1604-2222/test Topology Tests failed for Topology tests on Ubuntu 16.04 amd64:
see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2222/artifact/TOPOU1604/ErrorLog/log_topotests.txt Topology Tests memory analysis: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2222/artifact/TOPOU1604/MemoryLeaks/CLANG Static Analyzer Summary
New warnings:
Static Analysis warning summary compared to base:
23 Static Analyzer issues remaining.See details at |
8fe9fc4
to
bdaae51
Compare
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an EXPERIMENTAL automated CI system. Get source and apply patch from patchwork: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedIPv4 ldp protocol on Ubuntu 16.04: Successful Topology tests on Ubuntu 16.04 amd64: FailedTopology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPOU1604-2223/test Topology Tests failed for Topology tests on Ubuntu 16.04 amd64:
see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2223/artifact/TOPOU1604/ErrorLog/log_topotests.txt Topology Tests memory analysis: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2223/artifact/TOPOU1604/MemoryLeaks/CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base22 Static Analyzer issues remaining.See details at |
Handle RFC 2328 16.4 Calculating AS external routes with ECMP For ASBR route, if it is learnt via new LSA and contains different nexthop list. First lookup route in ospf6 route table if it exists, merge nexthop list to existing and call the callback to install into FIB (zebra). Delete created new route as it is identical to existing entry in route table. Ticket:CM-16139 Testing Done: Run two ASBR with 2 ECMP paths from each DUT neighbor receievs 4 ECMP path to a external route. ospf6 installs all 4 ECMP path to FIB/RIB Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bdaae51
to
064d435
Compare
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an EXPERIMENTAL automated CI system. Get source and apply patch from patchwork: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedCentOS 6 rpm pkg check: Successful Topology tests on Ubuntu 16.04 amd64: FailedTopology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPOU1604-2238/test Topology Tests failed for Topology tests on Ubuntu 16.04 amd64:
see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2238/artifact/TOPOU1604/ErrorLog/log_topotests.txt IPv4 ldp protocol on Ubuntu 16.04: FailedTopology Tests memory analysis: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2238/artifact/TOPOU1604/MemoryLeaks/CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base21 Static Analyzer issues remaining.See details at |
@mwinter-osr is this test issue resolved? |
Manual verification looks good. I'll like to update topotests to not flag it as a fail, so please give me a little more time to modify topotests to allow old and new format to pass. Please wait with merging - I'll update as soon as I have topotests adapted (may take another 24hrs) |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-2347/ This is a comment from an EXPERIMENTAL automated CI system. CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base21 Static Analyzer issues remaining.See details at |
All good from my side & Topotests updated, so it all passes. |
Thanks @mwinter-osr I will give it a go |
Handle RFC 2328 16.4 Calculating AS external routes with ECMP
For ASBR (External type-1 type-2) route, if it is learn via new LSA and contains
different next-hop list. First lookup route in ospf6 route table
if it exists, merge next-hop list to existing and call the callback
to install into FIB (zebra). Delete created new route as it is
identical to existing entry in route table.
Store sorted next-hops in route list.
During route delete ensure if there are multiple equal cost paths only delete path and its next-hop list and update zebra.
Ticket:CM-16139
Testing Done:
Run two ASBR with 2 ECMP paths from each
DUT neighbor receievs 4 ECMP path to a external route.
ospf6 installs all 4 ECMP path to FIB/RIB
Signed-off-by: Chirag Shah chirag@cumulusnetworks.com