From a5b3820cec9c80d6c8f9112a42e183a6dd59b561 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 22 Feb 2024 13:11:02 +0100 Subject: [PATCH] address: allow ip|ip6-forward on bridge Currently, a bridge always have forward enabled if an ip exist, or disabled if not ip is present. we can't use ip-forward on|off to override it because of this return. --- ifupdown2/addons/address.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifupdown2/addons/address.py b/ifupdown2/addons/address.py index e71a26f..6ae8b40 100644 --- a/ifupdown2/addons/address.py +++ b/ifupdown2/addons/address.py @@ -912,7 +912,7 @@ class address(AddonWithIpBlackList, moduleBase): if (ifaceobj.link_kind & ifaceLinkKind.BRIDGE): self._set_bridge_forwarding(ifaceobj) - return + if not self.syntax_check_sysctls(ifaceobj): return if not self.syntax_check_l3_svi_ip_forward(ifaceobj):