Skip to contentSkip to conversation

frr: Upgrade to 10.5.0

PATCH New Khem Raj 1 participant 7 messages Dec 10, 2025 Zstd

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/7 frr: Upgrade to 10.5.0

Relase Overview:

* BFD the ability to listen for specific VRFs only
- Configure which VRFs the BFD daemon will listen to. By default, BFD listens to all VRFs present in the system, including the default VRF. Default VRF must be specified as default.

* BGP SRv6/MPLS coexistence
- Allow MPLS and SRv6 to coexist on the same L3VRF, even for a given prefix. This feature is important in brown fields where some operators want to migrate from MPLS to SRv6 backbone.

* BGP SRv6 locator per VRF support
- Ability to choose SRv6 locator per VRF.

* BGP Error handling (RFC 7606) for iBGP peers
- Before 10.5.0, once we received a malformed packet between iBGP peers, we always reset the session, and with this release, we handle malformed packets the same way as for eBGP (by withdrawing or discarding the malformed packets).

* BGP IPv6 Link-Local Capability is disabled by default
- In 10.4.0, this capability was enabled by default for a “datacenter” profile, but it’s disabled for 10.5.0 and will be backported to 10.4.2 as well. The problem arises when the receiver has configured a route-map with set ipv6 next-hop prefer-global and we send only an IPv6 Link-Local address; therefore, it was decided to revert it to be disabled by default.

* BGP BGPID Next-Hop Characteristic
- In some cases, the BGP speaker sending a route might encode only a link-local address and no global address. To provide uniqueness in this case, it is sufficient to associate the BGP Identifier and AS Number of the route's sender. The BGP Identifier Characteristic (BGPID) provides a way to convey this information if required.

* BGP EVPN flooding per VNI support
- Add an ability to adjust BUM flooding per VNI, instead of just globally. E.g., disable flooding only for an arbitrary VNI.

* BGP RPKI strict mode
- RPKI strict mode prevents BGP from establishing a session if no RPKI cache server is connected.

* BGP rejects AS_SET by default**
- Until 10.5.0, it was disabled by default, and since RFC 9774 was published, we switched this on by default (to reject).

* BGP has lots of improvements for Graceful-Restart**

* PIM/PIMv6 route-map support to allow users to filter IGMP/MLD joins using source, group, and interface combinations

* Support for multiple SRv6 locators
- This extends the SRv6 SID Manager to add support for multiple locators.

* Zebra 16-bit next hop weights support
- The weights used in ECMP’s consistent hashing have been widened from 8 bits to 16 bits since the 6.12 Linux kernel.

---
 .../recipes-protocols/frr/{frr_10.4.1.bb => frr_10.5.0.bb}  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
 rename meta-networking/recipes-protocols/frr/{frr_10.4.1.bb => frr_10.5.0.bb} (97%)
meta-networking/recipes-protocols/frr/frr_10.5.0.bb renamed from meta-networking/recipes-protocols/frr/frr_10.4.1.bb +2 -4
similarity index 97%
rename from meta-networking/recipes-protocols/frr/frr_10.4.1.bb
rename to meta-networking/recipes-protocols/frr/frr_10.5.0.bb
index ce455ab8bf..b1f863a47b 100644
@@ -10,11 +10,10 @@ LIC_FILES_CHKSUM = "file://doc/licenses/GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a
                     file://doc/licenses/LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"
 
 
-SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/10.4;tag=frr-${PV} \
+SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/10.5;tag=frr-${PV} \
            file://frr.pam \
            "
-
-SRCREV = "88f5c06cbc1cc4d62e1cba3e7791f5cea4179ba5"
+SRCREV = "c41ba202c3f821a43091781181c73772501034ae"
 
 UPSTREAM_CHECK_GITTAGREGEX = "frr-(?P<pver>\d+(\.\d+)+)$"
 
@@ -124,7 +123,6 @@ do_install:append:class-target () {
         echo "d /run/frr 0755 frr frr -" \
             > ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
     fi
-    oe_multilib_header frr/version.h
 }
 
 USERADD_PACKAGES = "${PN}"
author
#1 lore raw

PATCH 2/7 ktls-utils: Fix build with musl

CMSG_NXTHDR results in different signed-ness for cmsghdr on musl.

---
 meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb +2 -0
index 47e1f7f091..947aa90e2e 100644
@@ -19,3 +19,5 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd',
 PACKAGECONFIG[systemd] = "--with-systemd,,systemd"
 
 SYSTEMD_SERVICE:${PN} = "tlshd.service"
+# ../../../sources/ktls-utils-1.3.0/src/tlshd/quic.c:515:58: error: comparison of integers of different signs: 'unsigned long' and 'long' [-Werror,-Wsign-compare]
+CFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare"
author
#2 lore raw

PATCH 3/7 python3-pyzstd: Remove setup.py tweak for lto/clang

In reply to Khem Raj

This tweak was specific to clang-16, its no longer needed moreover, setup.py is no longer there in latest 0.19.x release

---
 meta-python/recipes-devtools/python/python3-pyzstd_0.19.0.bb | 5 -----
 1 file changed, 5 deletions(-)
meta-python/recipes-devtools/python/python3-pyzstd_0.19.0.bb +0 -5
index 31d3db3f00..baaab182d5 100644
@@ -14,9 +14,4 @@ inherit pypi python_setuptools_build_meta ptest-python-pytest python_hatchling
 
 DEPENDS += "python3-hatch-vcs-native"
 
-# clang-16 with -flto segfaults on arm, therefore ignore flto for now
-do_configure:append:arm:toolchain-clang() {
-    sed -i -e "s|'-flto'|''|" ${S}/setup.py
-}
-
 RDEPENDS:${PN}-ptest += "python3-backports-zstd"
author
#3 lore raw

PATCH 4/7 dante: Add _GNU_SOURCE for musl builds

In reply to Khem Raj

This helps build fixes e.g. cpuset_t definitions etc. glibc builds have _GNU_SOURCE defined inherently.

---
 meta-networking/recipes-protocols/dante/dante_1.4.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-protocols/dante/dante_1.4.4.bb +2 -0
index 7aa1103855..52cfba4c5f 100644
@@ -29,6 +29,8 @@ CPPFLAGS += "-P"
 CFLAGS += "-I${STAGING_INCDIR}/tirpc"
 LIBS += "-ltirpc"
 
+CFLAGS:append:libc-musl = " -D_GNU_SOURCE"
+
 REQUIRED_DISTRO_FEATURES = "pam"
 
 EXTRA_AUTORECONF = "-I ${S}"
author
#4 lore raw

PATCH 5/7 python3-multidict: Add missing dependency on psutils modules for ptests

In reply to Khem Raj
---
 meta-python/recipes-devtools/python/python3-multidict_6.7.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-multidict_6.7.0.bb +1 -0
index 857cc6173b..821a880291 100644
@@ -10,6 +10,7 @@ SRC_URI[sha256sum] = "c6e99d9a65ca282e578dfea819cfa9c0a62b2499d8677392e09feaf305
 
 RDEPENDS:${PN}-ptest += " \
     python3-objgraph \
+    python3-psutil \
     python3-pytest-cov \
     python3-pytest-codspeed \
 "
author
#5 lore raw

PATCH 6/7 python3-traitlets: Fix ptests fails

In reply to Khem Raj

Python 3.13 changed how argparse handles % in help strings, now treating them all as format placeholders

---
 ...-start-testing-on-3.14-and-3.14t-929.patch | 25 +++++++++++++++++++
 .../python/python3-traitlets_5.14.3.bb        |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-traitlets/0001-start-testing-on-3.14-and-3.14t-929.patch
meta-python/recipes-devtools/python/python3-traitlets/0001-start-testing-on-3.14-and-3.14t-929.patch new file +25 -0
new file mode 100644
index 0000000000..275f77a371
@@ -0,0 +1,25 @@
+From 472cf29d06edce66db4af7eb47f601e40cff71c8 Mon Sep 17 00:00:00 2001
+From: M Bussonnier <[email protected]>
+Date: Tue, 14 Oct 2025 08:55:52 +0200
+Subject: [PATCH] start testing on 3.14 and 3.14t (#929)
+
+Upstream-Status: Backport [https://github.com/ipython/traitlets/pull/929]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ traitlets/config/application.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/traitlets/config/application.py b/traitlets/config/application.py
+index b01a11e..2860de7 100644
+--- a/traitlets/config/application.py
++++ b/traitlets/config/application.py
+@@ -215,7 +215,8 @@ class Application(SingletonConfigurable):
+     _log_formatter_cls = LevelFormatter
+
+     log_datefmt = Unicode(
+-        "%Y-%m-%d %H:%M:%S", help="The date format used by logging formatters for %(asctime)s"
++        "%Y-%m-%d %H:%M:%S",
++        help="The date format used by logging formatters for `asctime`",
+     ).tag(config=True)
+
+     log_format = Unicode(
meta-python/recipes-devtools/python/python3-traitlets_5.14.3.bb +2 -1
index 5142e92a04..827fb4ca4e 100644
@@ -7,7 +7,8 @@ SRC_URI[sha256sum] = "9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b
 
 inherit pypi python_hatchling ptest
 
-SRC_URI += " \
+SRC_URI += "\
+        file://0001-start-testing-on-3.14-and-3.14t-929.patch \
         file://run-ptest \
 "
 
author
#6 lore raw

PATCH 7/7 python3-betamax: Skip ptests accessing network

In reply to Khem Raj

cassette fixtures are not installed in ptests so skip test_requests_with_json_body

---
 ...s-use-pytest-vcr-or-skip-if-cassette.patch | 40 +++++++++++++++++++
 .../python/python3-betamax_0.9.0.bb           |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-betamax/0001-test_placeholders-use-pytest-vcr-or-skip-if-cassette.patch
meta-python/recipes-devtools/python/python3-betamax/0001-test_placeholders-use-pytest-vcr-or-skip-if-cassette.patch new file +40 -0
new file mode 100644
index 0000000000..64ff9be249
@@ -0,0 +1,40 @@
+From a7f1d08e073e60167c6ac9c72a0110c65f87a937 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 9 Dec 2025 23:04:45 -0800
+Subject: [PATCH] test_placeholders: use pytest-vcr or skip if cassette missing
+
+Upstream-Status: Inappropriate [OE ptest specific]
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ tests/integration/test_placeholders.py | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+--- a/tests/integration/test_placeholders.py
++++ b/tests/integration/test_placeholders.py
+@@ -1,3 +1,6 @@
++import pytest
++import os
++
+ from betamax import Betamax
+ from betamax.cassette import Cassette
+
+@@ -18,6 +21,8 @@ class TestPlaceholders(IntegrationHelper
+         super(TestPlaceholders, self).tearDown()
+         Cassette.default_cassette_options = original_cassette_options
+
++    @pytest.mark.skipif(not os.path.exists('tests/cassettes/test_placeholders.json'),
++                    reason="Cassette fixture missing")
+     def test_placeholders_work(self):
+         placeholders = Cassette.default_cassette_options['placeholders']
+         assert placeholders == [{
+--- a/tests/regression/test_requests_2_11_body_matcher.py
++++ b/tests/regression/test_requests_2_11_body_matcher.py
+@@ -13,6 +13,7 @@ class TestRequests211BodyMatcher(unittes
+
+     @pytest.mark.skipif(requests.__build__ < 0x020401,
+                         reason="No json keyword.")
++    @pytest.mark.skip(reason="Requires cassette fixture not available in ptest")
+     def test_requests_with_json_body(self):
+         s = requests.Session()
+         with Betamax(s).use_cassette('requests_2_11_body_matcher',
meta-python/recipes-devtools/python/python3-betamax_0.9.0.bb +1 -0
index f88d43a21a..8dbd21a938 100644
@@ -10,6 +10,7 @@ SRC_URI += " \
         file://run-ptest \
         git://github.com/betamaxpy/betamax;protocol=https;branch=main \
         file://0001-Drop-ptests-fixtures-and-recorde_modes.patch \
+        file://0001-test_placeholders-use-pytest-vcr-or-skip-if-cassette.patch \
 "