FRR Mirror
  1. FRR Mirror

FRR

Public
AuthorCommitMessageCommit dateIssues
Russ WhiteGitHubRuss White
1116f600347MMerge pull request #19183 from donaldsharp/mgmt_support_bundle_dataAdd ability to see locks in mgmt’s data store, ensure in topotests that daemons are connected to mgmtd
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
9b3174dd7f9MMerge pull request #19182 from mjstapp/fix_json_err_freeslib,bgpd,ospf6d,zebra: Free json objects in error paths
Donatas AbraitisGitHubDonatas Abraitis
0e0f93dd897MMerge pull request #19168 from donaldsharp/ospf6_json_output_fixOspf6 json output fix
Donald SharpDonald Sharp
e0d211c83a2tests: Ensure daemons are connected to mgmtd before proceedingWe have several tests that are proceeding before mgmtd has been fully connected to. Just like we ensure that zebra is connected to we need to do the same thing for the daemons that connect to mgmtd. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
ac505e5f452mgmt: Note that a DS is locked or not in outputModify the `show mgmt datastore ..` command to note if the data store is locked and by which session-id. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
6fd9f41a18ftests: ospf6_gr_topo1 needs a slightly longer timerWhen converging, 15 seconds is not quite enough under heavy system load. Giving it 20 seconds seems to do the trick nicely. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
9fff1308645tests: Use correct pytest mark for ospf6 tests.A bunch of the ospf6d tests are marked as ospfd tests instead. Let's mark them correctly. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
bc5180195afospf6d, tests: Fix `show ipv6 ospf6 route json`The `show ipv6 ospf6 route json` command does not show the full output of available routes as that it will overwrite a prefix if you happen to have more than one. Modify the code such that we create an array and put the individual routes into the array. Also modify the tests to accept arrays for the command. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Mark StappGitHubMark Stapp
a62c5d46548MMerge pull request #19139 from donaldsharp/exit_buffer_flushzebra: Ensure on exit that log buffers are flushed
Mark StappMark Stapp
839339ca65ezebra: free json objects in error pathsEnsure we free json objects in some error paths Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
1d9e1ef8f3bospf6d: free json objects in error pathsEnsure we free json objects in some error paths Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
c106cc99d8elib,bgpd: free json objects in error pathsEnsure we free json objects in some error paths Signed-off-by: Mark Stapp <mjs@cisco.com>
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>
Donald SharpDonald Sharp
6f8ee0d0e4czebra: Ensure on exit that log buffers are flushedI'm seeing cases of tests failing in the CI system where zebra just is not running and there are no dumps of the backtrace. In the past it's not uncommon for exit to be called when zebra just dissapears. Let's see if we get a bit more data in this case when it happens if we initiate a buffer flush. Signed-off-by: Donald Sharp <sharpd@nvidia.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