FRR Mirror
  1. FRR Mirror

FRR

Public
AuthorCommitMessageCommit dateIssues
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
af32727dd09MMerge pull request #21027 from donaldsharp/zebra-allow-externalSome Yang work
Donatas AbraitisGitHubDonatas Abraitis
ba30795515eMMerge pull request #21048 from cscarpitta/srv6_no_prefix_cmdzebra: Add `no prefix` command for SRv6 locators
Donatas AbraitisGitHubDonatas Abraitis
86e97c05de5MMerge pull request #21049 from cscarpitta/fix_srv6_sid_notify_memory_leakbgpd: Fix SRv6 SID/locator memory leak in SID notify handler
Carmine ScarpittaCarmine Scarpitta
e41bce8f49ctests: Add topotests for SRv6 locator "no prefix" commandAdd two new test cases to tests/topotests/srv6_locator/: test_srv6_no_prefix() - Configures locator loc1 with a prefix and verifies it is UP. - Issues `no prefix` (bare form) and verifies the locator is marked DOWN with the prefix cleared. - Re-adds the prefix and verifies the locator returns to UP. test_srv6_no_prefix_explicit() - Issues `no prefix 2001:db8:1:1::/64...
Carmine ScarpittaCarmine Scarpitta
d4efb4df3bbtests: Promote `check_srv6_locator` helpers to module level`_check_srv6_locator()` and `check_srv6_locator()` were inner functions of `test_srv6()`. Move them to module level so they can be shared with the upcoming `test_srv6_no_prefix` and `test_srv6_no_prefix_explicit` tests. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine ScarpittaCarmine Scarpitta
cf96d88835bzebra: Restore locator status_up when re-adding a prefixThe `no prefix` command marks the locator DOWN (`status_up = false`) and clears the prefix, correctly reflecting that the locator is no longer usable. However, when the operator subsequently issues `prefix X:X::X:X/M` to re-add a prefix in the same locator node context, `status_up` is never reset to true, leaving the locator permanently DOWN even though it now has a valid prefix and is usable ...
Carmine ScarpittaCarmine Scarpitta
8c0a6e70e02bgpd: Fix SRv6 SID/locator memory leak in SID notify handlerIn `bgp_zebra_srv6_sid_notify()`, `tovpn_sid` and `locator` were unconditionally allocated before the behavior dispatch, but only consumed in some branches. Branches that did not consume them leaked both allocations. Fix by removing the upfront allocations and allocating directly inside each branch where the memory is actually needed. Drop the now-unused local variables tovpn_sid and locator....
Carmine ScarpittaCarmine Scarpitta
a51b703a25fzebra: Add "no prefix" CLI command for SRv6 locatorsAdd a new `no prefix` command under the `locator` configuration node, complementing the existing `prefix` command. When issued, the command: - marks the locator as DOWN (status_up = false) - notifies zclients via ZEBRA_SRV6_LOCATOR_DELETE - releases all SID entries bound to the locator - releases the parent SID block - clears the prefix and bit-length fields Signed-off-by: Carmine S...
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
bc6d1af2c0dMMerge pull request #21044 from cscarpitta/fix_srv6_locator_topotest_docstringtests: Fix wrong filename and description in test_srv6_locator.py
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
d8db56de159MMerge pull request #21042 from opensourcerouting/fix/compilationFix docker (Alpine) compilation
Carmine ScarpittaCarmine Scarpitta
9e521e1ce77tests: Fix wrong filename and description in test_srv6_locator.pyThe file header comment and module docstring carry a wrong filename and description. Update both to match the actual filename and describe what the test does. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Donatas AbraitisDonatas Abraitis
a8051527e7ctools: Use numeric only version for pkgconfigVersion: @PACKAGE_VERSION@ in frr.pc.in expands to something like 10.6-dev_git when built with --with-pkg-git-version, and pkgconf on Alpine strictly validates version. Fixes: bc8f749c6e3502c93d65689eede2611b4dbbe2f5 ("build: add pkg-config file") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
cfc256882e3zebra: Initialize nl_errno68.72 zebra/zebra_netns_id.c: In function 'zebra_ns_id_get': 68.72 zebra/zebra_netns_id.c:267:34: warning: 'nl_errno' may be used uninitialized [-Wmaybe-uninitialized] 68.72 267 | if (ret != 0 && nl_errno != EEXIST) { 68.72 | ^ 68.72 zebra/zebra_netns_id.c:163:13: note: 'nl_errno' was declared here 68.72 163 | int nl_errno; 68.72 ...
Donatas AbraitisGitHubDonatas Abraitis
1979a375b9dMMerge pull request #21009 from kaffarell/push-knlsxqkrymtsdoc: bgp: add entry for `neighbor PEER soft-reconfiguration inbound`
Donald SharpDonald Sharp
9ee3d46ec37tests: Fix vtysh_cmd with configuration in test_zebra_rib.pyThe usage of vtysh_cmd had a code review comment that the usage for command configuration should be a bit different. Since I was only following the style in the script I figured it was better to change the whole script in mass. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
8b43952ffa4tests: Show that `allow-external-route-update` is working properlyThere were no tests that show that this command even works. Add a little something-something to make sure things are working as expected. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
d681e8764b0zebra: Fix inversion in `show zebra` commandThe `Allow Non FRR route deletion` table entry logic was inverted. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
9f09df841b5zebra: Yangify `allow-external-route-update`This command was not enabled to work with yang. Make it so. Note -> Zebra is not currently setup to use .cli_show. I added this functionality but am not using it at the moment because that would require a different set of work. Once that work becomes available it will `just` work. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
0fc4e33f294pimd: Convert yang functions to use DEFPY_YANGThere are spots where DEFPY_YANG is not being used. Let's use it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
5846400af3fpimd: Convert `ip igmp watermark...` to yangThis was not converted for some reason, let's convert it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpGitHubDonald Sharp
01445cf3589MMerge pull request #21034 from mjstapp/rb_pop_finallib: add rbtree pop_final api
Donald SharpGitHubDonald Sharp
f15e79dd315MMerge pull request #21037 from florath/satlab/finding-06-intra-prefix-reset-ifpospf6d: clear local ifp per ECMP path rebuild
Russ WhiteGitHubRuss White
99dd2b1f9ccMMerge pull request #21004 from donaldsharp/bfd_countersBfd QoL improvements
Mark StappGitHubMark Stapp
d974b8bfb3eMMerge pull request #20977 from Manpreet-k0/stale_vtepzebra: fix stale remote vtep entries
Mark StappMark Stapp
dd4f7a5d2fcdoc: add dev doc info about pop_final apiAdd some dev doc notes about the RB tree pop_final API. Signed-off-by: Mark Stapp <mjs@cisco.com>
Manpreet KaurManpreet Kaur
b3583b34157zebra: EVPN fix stale remote vtep entriesThe EVPN route delete paths in process_subq_early_route_add (route replace) and process_subq_early_route_delete used ere->afi (route address family) to determine the VTEP IP type. For IPv4 routes with IPv6 VTEP endpoints, this incorrectly created an IPv4 vtep_ip when the nexthop is actually IPv6. The add path already correctly uses tmp_nh->type (nexthop type). The mismatch meant delete never m...
Mark StappMark Stapp
4bda18d3d37lib: add rbtree pop_final apiAdd a simple-minded cleanup api that lets a caller pop items from an rbtree without undergoing rebalancing. Signed-off-by: Mark Stapp <mjs@cisco.com>
Andreas FlorathAndreas Florath
8d4b7658e90ospf6d: clear local ifp per ECMP path rebuildDuring intra-prefix ECMP recomputation, ifp was reused across\nold_route->paths iterations. That can carry a previously matched\ndirect-connected interface into an unrelated path and install an\non-link nexthop incorrectly.\n\nReset ifp at each path iteration before evaluating the current\norigin/path context. Signed-off-by: Andreas Florath <Andreas.Florath@telekom.de>
Donald SharpGitHubDonald Sharp
4a7efd0fb68MMerge pull request #21030 from y-bharath14/srib-yang-V13yang: Correct pyang errors in frr-pim-candidate.yang
Y BharathY Bharath
2f5ff33e312yang: Correct pyang errors in frr-pim-candidate.yangCorrect pyang errors in frr-pim-candidate.yang Signed-off-by: y-bharath14 <y.bharath@samsung.com>
Mark StappGitHubMark Stapp
7c43071a982MMerge pull request #20934 from donaldsharp/neigh_namespace_fixesMore Neighbor Fixes
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
dab7ac78b54MMerge pull request #21020 from donaldsharp/bfdd_wrong_mtypebfdd: Fix wrong memory free when using ttable code
Mark StappGitHubMark Stapp
83918e762a8MMerge pull request #21003 from Jafaral/github-ci-improvementsGitHub ci improvements
Donald SharpDonald Sharp
25a4369fef7bfdd: Allow for command completions to work with peersAdd the ability for bfdd to tell you more about the bfd peers when you ask for command completion help: eva# show bfd peer 1::2 2603:6080:602:509e:f6d2:e774:dfce:4b99 eva# show bfd peer 2603:6080:602:509e:f6d2:e774:dfce:4b99 BFD Peer: peer 2603:6080:602:509e:f6d2:e774:dfce:4b99 local-address 2603:6080:602:509e:f6d2:e774:dfce:4b08 vrf default interface enp13s...
Donald SharpDonald Sharp
47ce1ec534bbfdd: Fix `show bfd peers brief` to display local address in some casesWhen the bfdd peering has not been established if you have a local peer when you do a `show bfd peers brief` the local address is listed as unknown. Which is poppycock: bfd peer 2603:6080:602:509e:f6d2:e774:dfce:4b99 local-address 2603:6080:602:509e:f6d2:e774:dfce:4b08 interface enp13s0 exit ! exit ! end eva# show bfd peers brief Session count: 1 SessionId LocalAddress ...
Donald SharpDonald Sharp
16bdfbfe732bfdd: Look up the bfdd peer a bit earlier on packet receptionThe bfdd code looks up the bfdd peer very late in the packet reception path. Move the peer lookup to much earlier, mainly so that the bad packets received can be associated with the correct peer. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
ee0f683ef9cbfdd: Remove unnecessary NULL checkbfdd is finding the bfd session and if we do not find one, the function returns. The very next if statement is checking to see if the bfd pointer is NULL. We know it is not NULL there. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
bf13e4aab80tests: Test the new bfd counter existsShow that the new counter exists and is retrievable. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
9ae600cf328bfdd, yang: Add a bad packet counter for bfd peersCurrently bfdd completely ignores bad packets received and there is no way to know that a bad packet has been coming in unless you infer it through other means. This is not easy for a operator to do. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
6346f293caebfdd: Fix wrong memory free when using ttable codettable_dump expects MTYPE_TMP_TTABLE for the XFREE. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Mark StappGitHubMark Stapp
f098decf029MMerge pull request #21002 from Jafaral/ospf-fixospfd: harden TE/SR TLV iteration against malformed lengths
Gabriel GollerGabriel Goller
8b20a891647doc: bgp: add entry for `neighbor PEER soft-reconfiguration inbound`Add short entry explaining the `soft-reconfiguration inbound` command. Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
Jafar Al-GharaibehJafar Al-Gharaibeh
e43e05a4907ci: harden MIB downloads and add shared workflow cacheAdd a dedicated CI cache preparation flow for MIB files and restore that cache in build jobs so Docker builds reuse cached MIB assets instead of repeatedly downloading from external links. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Jafar Al-GharaibehJafar Al-Gharaibeh
d72486f708eci: set artifact retention and upload strictnessSet explicit retention periods for build and test artifacts and define if-no-files-found behavior to improve CI storage hygiene and upload diagnostics. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Jafar Al-GharaibehJafar Al-Gharaibeh
f48eae6ec80ci: harden github workflow execution defaultsAdd concurrency cancellation, read-only token permissions, matrix fail-fast controls, and job timeouts to improve CI reliability and resource usage. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Jafar Al-GharaibehJafar Al-Gharaibeh
d3e8aedb876ospfd: harden TE/SR TLV iteration against malformed lengthsUse 32-bit counters and per-iteration TLV size bounds checks in OSPF TE/SR TLV parsers so malformed opaque LSAs cannot wrap loop accounting and advance pointers beyond the LSA buffer. - Change loop accumulators from 16-bit to 32-bit (uint32_t) to prevent wraparound - Rework TLV iteration so pointer advancement is controlled in-loop - Add per-iteration guard before advancing: - `tlv_size <=...
Donatas AbraitisGitHubDonatas Abraitis
3299015409bMMerge pull request #20980 from lsang6WIND/updatebgpd: update on l2attr ecommunity
Loïc SangLoïc Sang
cbfe8272e17bgpd: change L2 attr displayL2attr display is too long: > L2: P flag:Y, B Flag Y, C word Y, MTU 1500 change to > L2: Cflags CPB, MTU 1500 Signed-off-by: Loïc Sang <loic.sang@6wind.com>
Loïc SangLoïc Sang
a5949c8d78cbgpd: update on l2attr ecommunityFix ntohs ecommunity l2attr Signed-off-by: Loïc Sang <loic.sang@6wind.com>
Donatas AbraitisGitHubDonatas Abraitis
16f8eb909bfMMerge pull request #20949 from donaldsharp/bgp_nhc_bugtests: bgp_nhc add test to expose NHC update race on peer changes