FRR Mirror
  1. FRR Mirror

FRR

Public
AuthorCommitMessageCommit dateIssues
Donatas AbraitisGitHubDonatas Abraitis
09853111b36MMerge pull request #19148 from aprathik04/local_as_null bgpd: fix "neighbor <n> local-as (null)" in running-config
Donald SharpGitHubDonald Sharp
8dcb5a9f4c0MMerge pull request #19165 from opensourcerouting/fix/weighted_ecmp_link_bandwidth_between_vrfsbgpd: Extract link bandwidth value from extcommunity before using for WCMP
Donald SharpGitHubDonald Sharp
4c0fa8b161bMMerge pull request #19167 from mjstapp/revert_clang_eof_newlinetools: revert "tools: add KeepEmptyLinesAtEOF to clang-format"
Mark StappMark Stapp
4c0d1401da2Revert "tools: add KeepEmptyLinesAtEOF to clang-format"This reverts commit 2d6e66689197f5ff4272ed13ba61c11bccb4f9f8.
Donatas AbraitisDonatas Abraitis
fbb628dc0ectests: Check if WCMP works if imported from other VRFsSigned-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
d1d5f666e25bgpd: Extract link bandwidth value from extcommunity before using for WCMPExtended communities are exported/imported correctly between VRFs, but we need to extract the actual link-bandwidth value from the extended communities. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisGitHubDonatas Abraitis
0e1399fed0eMMerge pull request #19160 from mjstapp/fix_dup_gr_time_vtybgpd: remove duplicated gr timer value
Donatas AbraitisGitHubDonatas Abraitis
ab4b3a1ac1cMMerge pull request #19158 from mjstapp/fix_bgp_json_rtbgpd: free json objects in error paths
Carmine ScarpittaGitHubCarmine Scarpitta
b7efb188698MMerge pull request #19100 from pguibert6WIND/bgp_locator_per_vrfBGP SRv6 locator per vrf
Mark StappGitHubMark Stapp
3ce83c0afdaMMerge pull request #19159 from donaldsharp/static_vrf_increase_timertests: Increase timeout for any test that uses the @retry mechanism
Donald SharpGitHubDonald Sharp
10839d927f2MMerge pull request #19157 from mjstapp/clang_keep_line_eoftools: add KeepEmptyLinesAtEOF to clang-format
Mark StappMark Stapp
22a8eefe5b6bgpd: remove duplicated gr timer valueRemove a duplicated GR timer value from a show command. Signed-off-by: Mark Stapp <mjs@cisco.com>
Donald SharpDonald Sharp
e1aa64350b5tests: Increase timeout for any test that uses the retry mechanism.Test is showing this on failure in the logs for the static_vrf test locally: 2025-07-09 11:28:15,614 INFO: topo: Function raised exception: "AssertionError("Failed to find \n '192.0.2.130'\n in \n '198.51.100.1 nhid 25 via 192.0.2.2 dev r1-eth0 proto 196 metric 20 \n '\nassert '192.0.2.130' in '198.51.100.1 nhid 25 via 192.0.2.2 dev r1-eth0 proto 196 metric 20 \\n'")" 2025-07-09 11:28:15...
Mark StappMark Stapp
33e68275fc3bgpd: free json objects in error pathsEnsure error paths in various show functions clean up json objects. Signed-off-by: Mark Stapp <mjs@cisco.com>
Philippe GuibertPhilippe Guibert
8818dff7a37bgpd: fix memory leak with srv6 locatorWhen SRv6 locator is modified for configuration, a memory leak is observed. > ==26714==ERROR: LeakSanitizer: detected memory leaks > > Direct leak of 1104 byte(s) in 3 object(s) allocated from: > #0 0x7fb232cb83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77 > #1 0x7fb232822b79 in qcalloc lib/memory.c:111 > #2 0x7fb23283a8b6 in srv6_locator_all...
Philippe GuibertPhilippe Guibert
4635f1584edbgpd: add srv6 locator per vrf supportThe srv6 locator can be configured per vrf, but are never taken into account in the SID allocation logic. > r1# show running-config > router bgp 1 > segment-routing srv6 > locator loc1 > exit > exit > router bgp 1 vrf vrf20 > segment-routing srv6 > locator loc2 > exit > exit > segment-routing > srv6 > locators > locator loc1 > prefix 2001:db8:1:1::/64 > exit > ! > lo...
Philippe GuibertPhilippe Guibert
70fed676676bgpd: add trace to dump SID allocator request and its locatorAdd a new trace before sending a message to ZEBRA, to request for a SID. > 2025/06/25 15:46:12 BGP: [PK8ZC-3S45T] ensure_vrf_tovpn_sid_per_af: allocating new SID for vrf VRF vrf20: afi IPv6, locator loc1 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
b5520385410topotests: bgp_srv6l3vpn_sid, add test to control sid allocation per vrfAdd test to control SID allocation per vrf. Test the case with a locator in each of the two BGP instances. Test also the case with no locator in the default BGP instance. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
da9eaa58211bgpd: fix release SID upon SID notification mismatchWhen a SID is allocated, and BGP configuration has changed, a mismatch is identified, but the SID is still considered as valid from zebra perspective. Fix this by releasing the SID upon error. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Mark StappMark Stapp
2d6e6668919tools: add KeepEmptyLinesAtEOF to clang-formatKeep an empty line at EOF to align with our style. Signed-off-by: Mark Stapp <mjs@cisco.com>
Philippe GuibertPhilippe Guibert
9b6a4a93c1dbgpd: add log trace when sid allocation fails prefix mismatchThe BGP sid notification code silently returns when a prefix mismatch occurs. Give more information about the configured prefix. > 2025/06/25 12:15:16 BGP: [KJGYE-TEQQY] SRv6 SID 2001:db8:1:1:3:: End.DT6 vrf_id 7 (vrf20) : locator prefix mismatch (loc2) Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
68eb47fd211bgpd: enforce control on srv6 locator on sid notificationWhen a SID is allocated, no check is done about the locator which has granted the SID. Retrieve the locator name from the zapi message, and compare the locator_name against the configured locator name. Display a message in case locator mismatch appears. Update current message: > 2025/06/25 14:36:46 BGP: [MZG7B-9WJC2] bgp_zebra_srv6_sid_notify: received SRv6 SID notify: ctx End.DT4 vrf_id 6 (vr...
Philippe GuibertPhilippe Guibert
29d27b5a0a4lib: fix display vrf name in srv6 contextImprove the following debug information, display the vrf name. Before: > 2025/06/25 11:43:22 BGP: [ZTNY5-FVP05] bgp_zebra_srv6_sid_notify: received SRv6 SID notify: ctx End.DT4 vrf_id 6 sid_value 2001:db8:1:1:1:: ZAPI_SRV6_SID_ALLOCATED > 2025/06/25 11:43:22 BGP: [HQ104-5H94Q] SRv6 SID 2001:db8:1:1:2:: End.DT6 vrf_id 6 : ALLOCATED After: > 2025/06/25 11:50:22 BGP: [ZTNY5-FVP05] bgp_zebra_srv...
Philippe GuibertPhilippe Guibert
213fcc7f15bbgpd: add bgp_srv6_locator_lookup() APIAdd an API to return the locator structure that should have been resolved by zebta. Return NULL if no resolution has been done. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
040fbf8e4ecbgpd: remove srv6_enabled from bgpd instanceThe srv6_enabled attribute is useless, and reflects the configuration of a locator. Simplify the algorithm by not using that attribute. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
b23a5248658bgpd: fix free SID once sid_unregister calledThe sid_unregister() function accesses the SID value, whereas that SID value has been freed just before. Swap the order of execution of the two lines. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
e91e1e77527bgpd: update hencaps when removing bgp srv6 configurationWhen the bgp srv6 configuration is disabled, the header encaps configuration should be set to its default value too. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
ff9c0c4e2bfbgpd: fix memory leak when modifying srv6 configurationMemory leak happens when modifying srv6 configuration. Some sid notifications events will flush a valid srv6 context. > Direct leak of 736 byte(s) in 2 object(s) allocated from: > #0 0x7c112c0fd340 in calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77 > #1 0x7c112bc3595e in qcalloc lib/memory.c:111 > #2 0x7c112bc4d37e in srv6_locator_alloc lib/srv6.c:227 > #3 0x5...
Donatas AbraitisGitHubDonatas Abraitis
369dfb9af02MMerge pull request #19155 from donaldsharp/bgp_bmp_cleanuptests: Fix bgp_bmp tests
Donatas AbraitisGitHubDonatas Abraitis
7312286f9d5MMerge pull request #19089 from miteshkanjariya/no-l3vni-in-mac-only-routesL3VNI should not be attached to Mac only type-2 routes
Donald SharpDonald Sharp
99802fad2c2tests: Fix bgp_bmp testsThe bgp_bmp tests have a global SEQ number that was being shared across all tests running at the same time. As such if one of the 3 tests was running at the same time as the other 2, you could end up in a situation where the SEQ number from one test would affect a different test, thus causing it to get out of sync and fail the test. I saw this when I added log output to display the starting s...
aprathikaprathik
c04ef9ab471bgpd: fix memleak for peer->change_local_as_prettySigned-off-by: Aprathi K <aprathik@nvidia.com>
aprathikaprathik
173eb45479abgpd: fix "neighbor <n> local-as (null)" in running-configIssue: The vtysh running-config will incorrectly show bgp neighbor local-as value as (null) with this config sequence - 1.configure bgp peer-group p1 with local-as as1 2.configure bgp neighbor n1, assign peer-group pg1 to it. 3.set local-as of neighbor n1 to as1 RC: peer->change_local_as_pretty(having string value of local-as) is not set for bgp neighbor, when new configured local-as value ...
Mark StappGitHubMark Stapp
46ba10563f4MMerge pull request #19109 from opensourcerouting/vtysh_flush_revertlib: revert addition of vtysh_flush() call in vty_out()
Russ WhiteGitHubRuss White
b9536ee1a95MMerge pull request #19149 from opensourcerouting/fix/allow_link_bw_zerobgpd: Allow setting extcommunity link bandwidth value to zero
Russ WhiteGitHubRuss White
90a4dd3a94cMMerge pull request #19147 from opensourcerouting/fix/add_more_details_for_as_setsbgpd: Print the warning that `bgp reject-as-sets` is enabled
Russ WhiteGitHubRuss White
f040b814977MMerge pull request #19136 from Sashhkaa/bfdd_vrfsbfdd: add option to restrict listening VRFs
Mark StappGitHubMark Stapp
5dfc95bba90MMerge pull request #19000 from soumyar-roy/soumya/ra_zebra_crashzebra: zebra core with v6 RA
Russ WhiteGitHubRuss White
01c740c5c13MMerge pull request #18697 from miteshkanjariya/ospfv6-mib-ifstateospf6d: Fix OSPFv3 SNMP interface state mapping
Alexandra RukomoinikovaAlexandra Rukomoinikova
d715c66c37bbfdd: add option to restrict listening VRFsBy default bfdd daemon listens to all created vrfs, which is incorrect in case of running multiple frr instances in different namespaces. Signed-off-by: Alexandra Rukomoinikova <1248756005hfh@gmail.com>
Donatas AbraitisDonatas Abraitis
6dc98150830bgpd: Allow setting extcommunity link bandwidth value to zeroThe latest https://datatracker.ietf.org/doc/html/draft-ietf-idr-link-bandwidth-13 says that zero(0) is fine. >Implemention MUST be able to process and accept a Link Bandwidth Extended Community where the bandwidth value is set to zero. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisGitHubDonatas Abraitis
974eb296b24MMerge pull request #19141 from anlancs/bgpd/fix-space-displaybgpd: adjust display format
Donatas AbraitisDonatas Abraitis
38cbbf5bdd2bgpd: Print the warning that `bgp reject-as-sets` is enabledSigned-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donald SharpGitHubDonald Sharp
2d8939f5d6aMMerge pull request #19126 from petrvaganoff/dev-51247bgpd: Fix DEREF_OF_NULL.EX.COND in bgp_updgrp_packet
Petr VaganovPetr Vaganov
77ff6547fa4bgpd: Fix DEREF_OF_NULL.EX.COND in bgp_updgrp_packetFound by the static analyzer Svace (ISP RAS): DEREF_OF_NULL.EX.COND. After having been assigned to a NULL value at bgp_updgrp_packet.c:717, pointer 'from' is passed as 9th parameter in call to function 'bgp_packet_attribute' at bgp_updgrp_packet.c:746, where it is dereferenced at bgp_attr.c:4638. Signed-off-by: Petr Vaganov <petrvaganoff@gmail.com>
Donatas AbraitisGitHubDonatas Abraitis
991e0d1aefcMMerge pull request #19138 from donaldsharp/zebra_operational_improvementtests: Allow time for change of state to propagate
anlan_csanlan_cs
133231158f7bgpd: adjust display formatJust adjust display format for `show bgp ipv6 unicast`, add two white spaces. Before: ``` Network Next Hop Metric LocPrf Weight Path *>i 3001::/64 fe80::2e53:4aff:fe30:820 0 100 0 i ``` After ``` Network Next Hop Metric LocPrf Weight Path *>i 3001::/64 fe80::2e53:4aff:fe30:82...
Donald SharpGitHubDonald Sharp
6bee3ed9bcbMMerge pull request #19123 from anlancs/cleanup-bgp-routemaplib: cleanup one duplicated code
Donald SharpGitHubDonald Sharp
05c7bf0e875MMerge pull request #19140 from anlancs/ospfd/fix-debug-runningospfd: fix missing debug running configuration
anlan_csanlan_cs
da3889f755cospfd: fix missing debug running configurationJust add the "debug ospf lsa aggregate" to running configuration. Signed-off-by: anlan_cs <anlan_cs@126.com>