public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH frr 0/2] update frr to 8.0.1
@ 2021-11-05  8:16 Alexandre Derumier
  2021-11-05  8:16 ` [pve-devel] [PATCH frr 1/2] update patches Alexandre Derumier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alexandre Derumier @ 2021-11-05  8:16 UTC (permalink / raw)
  To: pve-devel

This patch series update frr to 8.0.1.
I'm running it in production since 1month, no bug detected, evpn works fine (with some fixes for ip mobility).

This need to bump the proxmox frr mirror to 8.0.1 tag.

Also, this need the libyang2, not available in debian repo.
Deb are available in frr repos:

https://deb.frrouting.org/frr/pool/frr-8/liby/libyang2/libyang2_2.0.7-1~deb11u1_amd64.deb

https://deb.frrouting.org/frr/pool/frr-8/liby/libyang2/libyang2-dev_2.0.7-1~deb11u1_amd64.deb



Alexandre Derumier (2):
  update patches
  bump to 8.0.1

 Makefile                                      |  4 +-
 debian/changelog                              |  6 ++
 debian/control                                | 56 +++++++++---------
 ...e-ax_python.m4-to-hardcode-python3.9.patch | 25 --------
 .../patches/pve/0001-enable-bgp-daemon.patch  |  8 +--
 ...on-for-RT-auto-derivation-to-force-A.patch | 59 ++++++++++---------
 debian/patches/series                         |  1 -
 7 files changed, 70 insertions(+), 89 deletions(-)
 delete mode 100644 debian/patches/0001-Adjust-the-ax_python.m4-to-hardcode-python3.9.patch

-- 
2.30.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [pve-devel] [PATCH frr 1/2] update patches
  2021-11-05  8:16 [pve-devel] [PATCH frr 0/2] update frr to 8.0.1 Alexandre Derumier
@ 2021-11-05  8:16 ` Alexandre Derumier
  2021-11-05  8:16 ` [pve-devel] [PATCH frr 2/2] bump to 8.0.1 Alexandre Derumier
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Alexandre Derumier @ 2021-11-05  8:16 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
 ...e-ax_python.m4-to-hardcode-python3.9.patch | 25 --------
 .../patches/pve/0001-enable-bgp-daemon.patch  |  8 +--
 ...on-for-RT-auto-derivation-to-force-A.patch | 59 ++++++++++---------
 debian/patches/series                         |  1 -
 4 files changed, 34 insertions(+), 59 deletions(-)
 delete mode 100644 debian/patches/0001-Adjust-the-ax_python.m4-to-hardcode-python3.9.patch

diff --git a/debian/patches/0001-Adjust-the-ax_python.m4-to-hardcode-python3.9.patch b/debian/patches/0001-Adjust-the-ax_python.m4-to-hardcode-python3.9.patch
deleted file mode 100644
index 50073d9..0000000
--- a/debian/patches/0001-Adjust-the-ax_python.m4-to-hardcode-python3.9.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= <ondrej@sury.org>
-Date: Sun, 7 Feb 2021 13:14:17 +0100
-Subject: Adjust the ax_python.m4 to hardcode python3.9
-
----
- m4/ax_python.m4 | 6 +-----
- 1 file changed, 1 insertion(+), 5 deletions(-)
-
-diff --git a/m4/ax_python.m4 b/m4/ax_python.m4
-index 9f43ea0..815bf47 100644
---- a/m4/ax_python.m4
-+++ b/m4/ax_python.m4
-@@ -186,11 +186,7 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-       AC_MSG_RESULT([yes])
- 
-       PYTHON_CFLAGS="`\"$pycfg\" --includes`"
--      if test x"${py_ver}" = x"3.8" || test x"{py_ver}" = x"3.9"; then
--        PYTHON_LIBS="`\"$pycfg\" --ldflags --embed`"
--      else
--        PYTHON_LIBS="`\"$pycfg\" --ldflags`"
--      fi
-+      PYTHON_LIBS="`\"$pycfg\" --ldflags --embed`"
- 
-       AC_MSG_CHECKING([whether ${pycfg} provides a working build environment])
-       _FRR_PYTHON_DEVENV([$py_hex], [
diff --git a/debian/patches/pve/0001-enable-bgp-daemon.patch b/debian/patches/pve/0001-enable-bgp-daemon.patch
index a9818c9..e1c65b3 100644
--- a/debian/patches/pve/0001-enable-bgp-daemon.patch
+++ b/debian/patches/pve/0001-enable-bgp-daemon.patch
@@ -9,12 +9,12 @@ Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/tools/etc/frr/daemons b/tools/etc/frr/daemons
-index 8bec3c5bb..7cdfa840c 100644
+index b1526888e..27bc120a7 100644
 --- a/tools/etc/frr/daemons
 +++ b/tools/etc/frr/daemons
 @@ -14,7 +14,7 @@
  #
- # The watchfrr and zebra daemons are always started.
+ # The watchfrr, zebra and staticd daemons are always started.
  #
 -bgpd=no
 +bgpd=yes
@@ -29,7 +29,7 @@ index 8bec3c5bb..7cdfa840c 100644
 +bfdd=yes
  fabricd=no
  vrrpd=no
- 
+ pathd=no
 -- 
-2.20.1
+2.30.2
 
diff --git a/debian/patches/pve/0002-bgpd-add-an-option-for-RT-auto-derivation-to-force-A.patch b/debian/patches/pve/0002-bgpd-add-an-option-for-RT-auto-derivation-to-force-A.patch
index 3306fbc..8cc94af 100644
--- a/debian/patches/pve/0002-bgpd-add-an-option-for-RT-auto-derivation-to-force-A.patch
+++ b/debian/patches/pve/0002-bgpd-add-an-option-for-RT-auto-derivation-to-force-A.patch
@@ -1,7 +1,7 @@
-From c3e66b067564281a58fcf3b99559d289a75090e9 Mon Sep 17 00:00:00 2001
+From c05ce62d655144e74bf432830130e83ec3617ec1 Mon Sep 17 00:00:00 2001
 From: Alexandre Derumier <aderumier@odiso.com>
 Date: Tue, 17 Nov 2020 06:01:26 +0100
-Subject: [PATCH 1/3] bgpd : add an option for RT auto-derivation to force AS
+Subject: [PATCH] bgpd : add an option for RT auto-derivation to force AS
 
 Allow to define a custom AS for autort AS:VNI
 
@@ -10,16 +10,16 @@ as route-target AS:VNI need to be the same on the each peer
 
 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
 ---
- bgpd/bgp_evpn.c     | 12 +++++++++--
- bgpd/bgp_evpn_vty.c | 49 +++++++++++++++++++++++++++++++--------------
+ bgpd/bgp_evpn.c     | 12 ++++++++++--
+ bgpd/bgp_evpn_vty.c | 47 +++++++++++++++++++++++++++++++++------------
  bgpd/bgpd.h         |  3 +++
- 3 files changed, 47 insertions(+), 17 deletions(-)
+ 3 files changed, 48 insertions(+), 14 deletions(-)
 
 diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c
-index 84e8960ee..73acc5d7b 100644
+index 8d8e3ffd2..135c1a610 100644
 --- a/bgpd/bgp_evpn.c
 +++ b/bgpd/bgp_evpn.c
-@@ -512,7 +512,11 @@ static void form_auto_rt(struct bgp *bgp, vni_t vni, struct list *rtl)
+@@ -491,7 +491,11 @@ static void form_auto_rt(struct bgp *bgp, vni_t vni, struct list *rtl)
  
  	if (bgp->advertise_autort_rfc8365)
  		vni |= EVPN_AUTORT_VXLAN;
@@ -32,7 +32,7 @@ index 84e8960ee..73acc5d7b 100644
  
  	ecomadd = ecommunity_new();
  	ecommunity_add_val(ecomadd, &eval, false, false);
-@@ -4238,7 +4242,11 @@ void evpn_rt_delete_auto(struct bgp *bgp, vni_t vni, struct list *rtl)
+@@ -4367,7 +4371,11 @@ void evpn_rt_delete_auto(struct bgp *bgp, vni_t vni, struct list *rtl)
  
  	if (bgp->advertise_autort_rfc8365)
  		vni |= EVPN_AUTORT_VXLAN;
@@ -46,23 +46,24 @@ index 84e8960ee..73acc5d7b 100644
  	ecom_auto = ecommunity_new();
  	ecommunity_add_val(ecom_auto, &eval, false, false);
 diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
-index e9e2aafeb..6cc6bba33 100644
+index 3fc1dc128..4c2bae1eb 100644
 --- a/bgpd/bgp_evpn_vty.c
 +++ b/bgpd/bgp_evpn_vty.c
-@@ -3226,32 +3226,48 @@ DEFUN (no_bgp_evpn_advertise_all_vni,
+@@ -3517,32 +3517,52 @@ DEFUN (no_bgp_evpn_advertise_all_vni,
  	return CMD_SUCCESS;
  }
  
 -DEFUN (bgp_evpn_advertise_autort_rfc8365,
 -       bgp_evpn_advertise_autort_rfc8365_cmd,
 -       "autort rfc8365-compatible",
--       "Auto-derivation of RT\n"
++DEFPY (bgp_evpn_advertise_autort,
++       bgp_evpn_advertise_autort_cmd,
++       "autort [rfc8365-compatible]$rfc8365 [as (1-65536)$as]",
+        "Auto-derivation of RT\n"
 -       "Auto-derivation of RT using RFC8365\n")
-+DEFPY(bgp_evpn_advertise_autort, bgp_evpn_advertise_autort_cmd,
-+      "autort [rfc8365-compatible]$rfc8365 [as (1-65536)$as]",
-+      "Auto-derivation of RT\n"
-+      "Auto-derivation of RT using RFC8365\n"
-+      "Auto-derivation AS\n")
++       "Auto-derivation of RT using RFC8365\n"
++       "Auto-derivation AS\n"
++       "ASN\n")
  {
  	struct bgp *bgp = VTY_GET_CONTEXT(bgp);
  
@@ -84,15 +85,15 @@ index e9e2aafeb..6cc6bba33 100644
 -DEFUN (no_bgp_evpn_advertise_autort_rfc8365,
 -       no_bgp_evpn_advertise_autort_rfc8365_cmd,
 -       "no autort rfc8365-compatible",
--       NO_STR
--       "Auto-derivation of RT\n"
++DEFPY (no_bgp_evpn_advertise_autort,
++       no_bgp_evpn_advertise_autort_cmd,
++       "no autort [rfc8365-compatible]$rfc8365 [as (1-65536)$as]",
+        NO_STR
+        "Auto-derivation of RT\n"
 -       "Auto-derivation of RT using RFC8365\n")
-+DEFPY(no_bgp_evpn_advertise_autort, no_bgp_evpn_advertise_autort_cmd,
-+      "no autort [rfc8365-compatible]$rfc8365 [as (1-65536)$as]",
-+      NO_STR
-+      "Auto-derivation of RT\n"
-+      "Auto-derivation of RT using RFC8365\n"
-+      "Auto-derivation AS\n")
++       "Auto-derivation of RT using RFC8365\n"
++       "Auto-derivation AS\n"
++       "ASN\n")
  {
  	struct bgp *bgp = VTY_GET_CONTEXT(bgp);
  
@@ -111,7 +112,7 @@ index e9e2aafeb..6cc6bba33 100644
  	return CMD_SUCCESS;
  }
  
-@@ -5596,6 +5612,9 @@ void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp, afi_t afi,
+@@ -6055,6 +6075,9 @@ void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp, afi_t afi,
  	if (bgp->advertise_autort_rfc8365)
  		vty_out(vty, "  autort rfc8365-compatible\n");
  
@@ -121,7 +122,7 @@ index e9e2aafeb..6cc6bba33 100644
  	if (bgp->advertise_gw_macip)
  		vty_out(vty, "  advertise-default-gw\n");
  
-@@ -5732,8 +5751,8 @@ void bgp_ethernetvpn_init(void)
+@@ -6213,8 +6236,8 @@ void bgp_ethernetvpn_init(void)
  	install_element(BGP_EVPN_NODE, &evpnrt5_network_cmd);
  	install_element(BGP_EVPN_NODE, &bgp_evpn_advertise_all_vni_cmd);
  	install_element(BGP_EVPN_NODE, &no_bgp_evpn_advertise_all_vni_cmd);
@@ -133,10 +134,10 @@ index e9e2aafeb..6cc6bba33 100644
  	install_element(BGP_EVPN_NODE, &no_bgp_evpn_advertise_default_gw_cmd);
  	install_element(BGP_EVPN_NODE, &bgp_evpn_advertise_svi_ip_cmd);
 diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
-index d22fd008d..941066e2e 100644
+index 4c69fbcdf..2c4d45bb2 100644
 --- a/bgpd/bgpd.h
 +++ b/bgpd/bgpd.h
-@@ -614,6 +614,9 @@ struct bgp {
+@@ -639,6 +639,9 @@ struct bgp {
  	/* EVPN - use RFC 8365 to auto-derive RT */
  	int advertise_autort_rfc8365;
  
@@ -147,5 +148,5 @@ index d22fd008d..941066e2e 100644
  	 * Flooding mechanism for BUM packets for VxLAN-EVPN.
  	 */
 -- 
-2.20.1
+2.30.2
 
diff --git a/debian/patches/series b/debian/patches/series
index 41c48c5..50b22cc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
-0001-Adjust-the-ax_python.m4-to-hardcode-python3.9.patch
 pve/0001-enable-bgp-daemon.patch
 pve/0002-bgpd-add-an-option-for-RT-auto-derivation-to-force-A.patch
-- 
2.30.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [pve-devel] [PATCH frr 2/2] bump to 8.0.1
  2021-11-05  8:16 [pve-devel] [PATCH frr 0/2] update frr to 8.0.1 Alexandre Derumier
  2021-11-05  8:16 ` [pve-devel] [PATCH frr 1/2] update patches Alexandre Derumier
@ 2021-11-05  8:16 ` Alexandre Derumier
  2021-11-09 18:03 ` [pve-devel] [PATCH frr 0/2] update frr " Thomas Lamprecht
  2021-11-10  6:36 ` [pve-devel] applied-series: " Thomas Lamprecht
  3 siblings, 0 replies; 5+ messages in thread
From: Alexandre Derumier @ 2021-11-05  8:16 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
 Makefile         |  4 ++--
 debian/changelog |  6 ++++++
 debian/control   | 56 ++++++++++++++++++++++++------------------------
 3 files changed, 36 insertions(+), 30 deletions(-)

diff --git a/Makefile b/Makefile
index dcd7d74..7123516 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PACKAGE=frr
-VER=7.5.1
-PKGREL=99+pve~really7.4
+VER=8.0.1
+PKGREL=1+pve
 
 SRCDIR=frr
 BUILDDIR=${SRCDIR}.tmp
diff --git a/debian/changelog b/debian/changelog
index 95bd693..18bdd8a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+frr (8.0.1-1+pve) bullseye; urgency=medium
+
+  * Bump to 8.0.1
+
+ -- Proxmox Support Team <support@proxmox.com>  Tue, 30 Oct 2021 9:32:01 +0200
+
 frr (7.5.1-99+pve~really7.4) bullseye; urgency=medium
 
   * Revert to 7.4 for now due to regressions in combination with evpn from the
diff --git a/debian/control b/debian/control
index fca6956..7484e0e 100644
--- a/debian/control
+++ b/debian/control
@@ -3,34 +3,34 @@ Section: net
 Priority: optional
 Maintainer: David Lamparter <equinox-debian@diac24.net>
 Uploaders: FRRouting-dev <dev@lists.frrouting.org>
-Build-Depends:
- autotools-dev,
- bison,
- chrpath,
- debhelper (>= 9),
- debhelper (>= 9.20160709) <!pkg.frr.nosystemd> | dh-systemd <!pkg.frr.nosystemd>,
- dh-autoreconf,
- flex,
- gawk,
- install-info,
- libc-ares-dev,
- libcap-dev,
- libjson-c-dev | libjson0-dev,
- libpam0g-dev | libpam-dev,
- libpcre3-dev,
- libpython3-dev,
- libreadline-dev,
- librtr-dev <!pkg.frr.nortrlib>,
- libsnmp-dev,
- libssh-dev <!pkg.frr.nortrlib>,
- libsystemd-dev <!pkg.frr.nosystemd>,
- libyang-dev (>= 1.0.184),
- pkg-config,
- python3,
- python3-dev,
- python3-sphinx,
- python3-pytest <!nocheck>,
- texinfo (>= 4.7)
+Build-Depends: bison,
+               chrpath,
+               debhelper (>= 10~) | dh-systemd,
+               debhelper (>= 9.20150101~),
+               flex,
+               gawk,
+               install-info,
+               libc-ares-dev,
+               libcap-dev,
+               libelf-dev,
+               libjson-c-dev | libjson0-dev,
+               libpam0g-dev | libpam-dev,
+               libpcre2-dev,
+               libpython3-dev,
+               libreadline-dev,
+               librtr-dev <!pkg.frr.nortrlib>,
+               libsnmp-dev,
+               libssh-dev <!pkg.frr.nortrlib>,
+               libsystemd-dev <!pkg.frr.nosystemd>,
+               libyang2-dev,
+               lsb-base,
+               pkg-config,
+               python3,
+               python3-dev,
+               python3-pytest <!nocheck>,
+               python3-sphinx,
+               texinfo (>= 4.7),
+               liblua5.3-dev <pkg.frr.lua>
 Standards-Version: 4.4.1
 Homepage: https://www.frrouting.org/
 Vcs-Browser: https://github.com/FRRouting/frr/tree/debian/master
-- 
2.30.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pve-devel] [PATCH frr 0/2] update frr to 8.0.1
  2021-11-05  8:16 [pve-devel] [PATCH frr 0/2] update frr to 8.0.1 Alexandre Derumier
  2021-11-05  8:16 ` [pve-devel] [PATCH frr 1/2] update patches Alexandre Derumier
  2021-11-05  8:16 ` [pve-devel] [PATCH frr 2/2] bump to 8.0.1 Alexandre Derumier
@ 2021-11-09 18:03 ` Thomas Lamprecht
  2021-11-10  6:36 ` [pve-devel] applied-series: " Thomas Lamprecht
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Lamprecht @ 2021-11-09 18:03 UTC (permalink / raw)
  To: Proxmox VE development discussion, Alexandre Derumier

On 05.11.21 09:16, Alexandre Derumier wrote:
> This patch series update frr to 8.0.1.
> I'm running it in production since 1month, no bug detected, evpn works fine (with some fixes for ip mobility).
> 
> This need to bump the proxmox frr mirror to 8.0.1 tag.
> 
> Also, this need the libyang2, not available in debian repo.

It seems we got lucky, just appeared over the weekend https://tracker.debian.org/pkg/libyang2

I'll try a rebuild and upload it to PVE repositories if it works out, then I can apply the frr bump.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [pve-devel] applied-series:  [PATCH frr 0/2] update frr to 8.0.1
  2021-11-05  8:16 [pve-devel] [PATCH frr 0/2] update frr to 8.0.1 Alexandre Derumier
                   ` (2 preceding siblings ...)
  2021-11-09 18:03 ` [pve-devel] [PATCH frr 0/2] update frr " Thomas Lamprecht
@ 2021-11-10  6:36 ` Thomas Lamprecht
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Lamprecht @ 2021-11-10  6:36 UTC (permalink / raw)
  To: Proxmox VE development discussion, Alexandre Derumier

On 05.11.21 09:16, Alexandre Derumier wrote:
> This patch series update frr to 8.0.1.
> I'm running it in production since 1month, no bug detected, evpn works fine (with some fixes for ip mobility).
> 
> This need to bump the proxmox frr mirror to 8.0.1 tag.
> 
> Also, this need the libyang2, not available in debian repo.
> Deb are available in frr repos:
> 
> https://deb.frrouting.org/frr/pool/frr-8/liby/libyang2/libyang2_2.0.7-1~deb11u1_amd64.deb
> 
> https://deb.frrouting.org/frr/pool/frr-8/liby/libyang2/libyang2-dev_2.0.7-1~deb11u1_amd64.deb
> 
> 
> 
> Alexandre Derumier (2):
>   update patches
>   bump to 8.0.1
> 
>  Makefile                                      |  4 +-
>  debian/changelog                              |  6 ++
>  debian/control                                | 56 +++++++++---------
>  ...e-ax_python.m4-to-hardcode-python3.9.patch | 25 --------
>  .../patches/pve/0001-enable-bgp-daemon.patch  |  8 +--
>  ...on-for-RT-auto-derivation-to-force-A.patch | 59 ++++++++++---------
>  debian/patches/series                         |  1 -
>  7 files changed, 70 insertions(+), 89 deletions(-)
>  delete mode 100644 debian/patches/0001-Adjust-the-ax_python.m4-to-hardcode-python3.9.patch
> 

applied series, thanks! FYI, I synced the packages to pvetest.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-10  6:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05  8:16 [pve-devel] [PATCH frr 0/2] update frr to 8.0.1 Alexandre Derumier
2021-11-05  8:16 ` [pve-devel] [PATCH frr 1/2] update patches Alexandre Derumier
2021-11-05  8:16 ` [pve-devel] [PATCH frr 2/2] bump to 8.0.1 Alexandre Derumier
2021-11-09 18:03 ` [pve-devel] [PATCH frr 0/2] update frr " Thomas Lamprecht
2021-11-10  6:36 ` [pve-devel] applied-series: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal