mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: bridge: enable forwarding on dhcp bridges (fixes: #179)
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@@ -775,7 +775,7 @@ class address(Addon, moduleBase):
|
||||
netconf_ipv4_forwarding = self.cache.get_netconf_forwarding(socket.AF_INET, ifname)
|
||||
netconf_ipv6_forwarding = self.cache.get_netconf_forwarding(socket.AF_INET6, ifname)
|
||||
|
||||
if not ifaceobj.upperifaces and not ifaceobj.get_attr_value('address'):
|
||||
if not ifaceobj.upperifaces and not ifaceobj.get_attr_value('address') and (ifaceobj.addr_method and "dhcp" not in ifaceobj.addr_method):
|
||||
if netconf_ipv4_forwarding:
|
||||
self.sysctl_write_forwarding_value_to_proc(ifname, "ipv4", 0)
|
||||
if netconf_ipv6_forwarding:
|
||||
|
Reference in New Issue
Block a user