Merge "Fix incorrect masquerade rules in multivip LBs" into stable/2023.2
This commit is contained in:
commit
fc6618b118
@ -356,11 +356,10 @@ class InterfaceController(object):
|
||||
**rule)
|
||||
|
||||
def _scripts_up(self, interface, current_state):
|
||||
if current_state == consts.IFACE_DOWN:
|
||||
for script in interface.scripts[consts.IFACE_UP]:
|
||||
LOG.debug("%s: Running command '%s'",
|
||||
interface.name, script[consts.COMMAND])
|
||||
subprocess.check_output(script[consts.COMMAND].split())
|
||||
for script in interface.scripts[consts.IFACE_UP]:
|
||||
LOG.debug("%s: Running command '%s'",
|
||||
interface.name, script[consts.COMMAND])
|
||||
subprocess.check_output(script[consts.COMMAND].split())
|
||||
|
||||
def down(self, interface):
|
||||
LOG.info("Setting interface %s down", interface.name)
|
||||
|
@ -714,7 +714,9 @@ class TestInterface(base.TestCase):
|
||||
table=254,
|
||||
family=socket.AF_INET)])
|
||||
|
||||
mock_check_output.assert_not_called()
|
||||
mock_check_output.assert_has_calls([
|
||||
mock.call(["post-up", "eth1"])
|
||||
])
|
||||
|
||||
@mock.patch('pyroute2.IPRoute.rule')
|
||||
@mock.patch('pyroute2.IPRoute.route')
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixed an issue when using UDP listeners in dual-stack (IPv4 and IPv6) load
|
||||
balancers, some masquerade rules needed by UDP were not correctly set on the
|
||||
member interfaces.
|
Loading…
Reference in New Issue
Block a user