From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id D29C7948EF for ; Thu, 22 Feb 2024 15:29:13 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B35EEA1DE for ; Thu, 22 Feb 2024 15:28:43 +0100 (CET) Received: from bastionodiso.odiso.net (bastionodiso.odiso.net [185.151.191.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 22 Feb 2024 15:28:42 +0100 (CET) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id 7AEEA8025; Thu, 22 Feb 2024 15:28:31 +0100 (CET) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id 62B71255D3B; Thu, 22 Feb 2024 15:28:31 +0100 (CET) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Thu, 22 Feb 2024 15:28:29 +0100 Message-Id: <20240222142830.2527837-2-aderumier@odiso.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240222142830.2527837-1-aderumier@odiso.com> References: <20240222142830.2527837-1-aderumier@odiso.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.030 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record T_SCC_BODY_TEXT_LINE -0.01 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [auto.py, nlcache.py, address.py, nlpacket.py, iface.py, dhcp.py] Subject: [pve-devel] [PATCH pve-network 1/2] patches: update slaac patch X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2024 14:29:13 -0000 remove self._sysctl_slaac call for bridge, or it'll be called twice Signed-off-by: Alexandre Derumier --- ...6-slaac-support-inet6-auto-accept_ra.patch | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/debian/patches/upstream/0001-add-ipv6-slaac-support-inet6-auto-accept_ra.patch b/debian/patches/upstream/0001-add-ipv6-slaac-support-inet6-auto-accept_ra.patch index 9e1bb13..a8d6106 100644 --- a/debian/patches/upstream/0001-add-ipv6-slaac-support-inet6-auto-accept_ra.patch +++ b/debian/patches/upstream/0001-add-ipv6-slaac-support-inet6-auto-accept_ra.patch @@ -1,7 +1,7 @@ -From 76721af329cab107e339fef5bc783dacb32132dc Mon Sep 17 00:00:00 2001 +From fd844b0557337e714a7e11ed6c39bc8164709a46 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Tue, 9 May 2023 17:48:14 +0200 -Subject: [PATCH] add ipv6 slaac support (inet6 auto && accept_ra) +Subject: add ipv6 slaac support (inet6 auto && accept_ra) This should fix a lot of users request in the forum, and also fix upgrade from ifupdown1 to ifupdown2 if user have "inet6 auto" in configuration. @@ -13,7 +13,7 @@ https://github.com/CumulusNetworks/ifupdown2/pull/259 Signed-off-by: Alexandre Derumier --- etc/network/ifupdown2/addons.conf | 2 + - ifupdown2/addons/address.py | 109 +++++++++++++-- + ifupdown2/addons/address.py | 108 +++++++++++++-- ifupdown2/addons/auto.py | 168 ++++++++++++++++++++++++ ifupdown2/addons/dhcp.py | 18 +-- ifupdown2/ifupdown/iface.py | 4 + @@ -21,11 +21,11 @@ Signed-off-by: Alexandre Derumier ifupdown2/lib/nlcache.py | 63 ++++++++- ifupdown2/man/interfaces.5.rst | 9 ++ ifupdown2/nlmanager/nlpacket.py | 24 +++- - 9 files changed, 373 insertions(+), 26 deletions(-) + 9 files changed, 372 insertions(+), 26 deletions(-) create mode 100644 ifupdown2/addons/auto.py diff --git a/etc/network/ifupdown2/addons.conf b/etc/network/ifupdown2/addons.conf -index 726d63a..67de25f 100644 +index a8f2317..5a3964d 100644 --- a/etc/network/ifupdown2/addons.conf +++ b/etc/network/ifupdown2/addons.conf @@ -15,6 +15,7 @@ pre-up,mstpctl @@ -36,7 +36,7 @@ index 726d63a..67de25f 100644 pre-up,address up,dhcp up,address -@@ -28,6 +29,7 @@ pre-down,usercmds +@@ -30,6 +31,7 @@ pre-down,usercmds pre-down,vxrd pre-down,dhcp down,ppp @@ -45,7 +45,7 @@ index 726d63a..67de25f 100644 down,address down,usercmds diff --git a/ifupdown2/addons/address.py b/ifupdown2/addons/address.py -index e71a26f..473a089 100644 +index e71a26f..bb5589e 100644 --- a/ifupdown2/addons/address.py +++ b/ifupdown2/addons/address.py @@ -188,6 +188,19 @@ class address(AddonWithIpBlackList, moduleBase): @@ -177,15 +177,7 @@ index e71a26f..473a089 100644 def _sysctl_config(self, ifaceobj): setting_default_value = False mpls_enable = ifaceobj.get_attr_value_first('mpls-enable'); -@@ -912,6 +984,7 @@ class address(AddonWithIpBlackList, moduleBase): - - if (ifaceobj.link_kind & ifaceLinkKind.BRIDGE): - self._set_bridge_forwarding(ifaceobj) -+ self._sysctl_slaac(ifaceobj) - return - if not self.syntax_check_sysctls(ifaceobj): - return -@@ -979,6 +1052,8 @@ class address(AddonWithIpBlackList, moduleBase): +@@ -979,6 +1051,8 @@ class address(AddonWithIpBlackList, moduleBase): ifaceobj.status = ifaceStatus.ERROR self.logger.error('%s: %s' %(ifaceobj.name, str(e))) @@ -194,7 +186,7 @@ index e71a26f..473a089 100644 def process_mtu(self, ifaceobj, ifaceobj_getfunc): if ifaceobj.link_privflags & ifaceLinkPrivFlags.OPENVSWITCH: -@@ -1016,7 +1091,7 @@ class address(AddonWithIpBlackList, moduleBase): +@@ -1016,7 +1090,7 @@ class address(AddonWithIpBlackList, moduleBase): # no need to go further during perfmode (boot) return @@ -203,7 +195,7 @@ index e71a26f..473a089 100644 return if not user_configured_ipv6_addrgen: -@@ -1213,7 +1288,7 @@ class address(AddonWithIpBlackList, moduleBase): +@@ -1213,7 +1287,7 @@ class address(AddonWithIpBlackList, moduleBase): if not self.cache.link_exists(ifaceobj.name): return addr_method = ifaceobj.addr_method @@ -212,7 +204,7 @@ index e71a26f..473a089 100644 if ifaceobj.get_attr_value_first('address-purge')=='no': addrlist = ifaceobj.get_attr_value('address') for addr in addrlist or []: -@@ -1326,6 +1401,22 @@ class address(AddonWithIpBlackList, moduleBase): +@@ -1326,6 +1400,22 @@ class address(AddonWithIpBlackList, moduleBase): ifaceobjcurr.update_config_with_status('mpls-enable', running_mpls_enable, mpls_enable != running_mpls_enable) @@ -235,7 +227,7 @@ index e71a26f..473a089 100644 return def query_check_ipv6_addrgen(self, ifaceobj, ifaceobjcurr): -@@ -1380,7 +1471,7 @@ class address(AddonWithIpBlackList, moduleBase): +@@ -1380,7 +1470,7 @@ class address(AddonWithIpBlackList, moduleBase): def _query_check_address(self, ifaceobj, ifaceobjcurr, ifaceobj_getfunc): """ ifquery-check: attribute: "address" """ -- 2.39.2