'# IP forwarding and non-local bind',
'net.ipv4.ip_forward = 1',
'net.ipv4.ip_nonlocal_bind = 1',
+ 'net.ipv6.ip_nonlocal_bind = 1',
]
def container(self, ctx: CephadmContext) -> CephContainer:
'# IP forwarding and non-local bind',
'net.ipv4.ip_forward = 1',
'net.ipv4.ip_nonlocal_bind = 1',
+ 'net.ipv6.ip_nonlocal_bind = 1',
]
def uid_gid(self, ctx: CephadmContext) -> Tuple[int, int]:
SAMPLE_HAPROXY_IMAGE,
)
ss = hap.get_sysctl_settings()
- assert len(ss) == 3
+ assert ss == [
+ '# IP forwarding and non-local bind',
+ 'net.ipv4.ip_forward = 1',
+ 'net.ipv4.ip_nonlocal_bind = 1',
+ 'net.ipv6.ip_nonlocal_bind = 1',
+ ]
@pytest.mark.parametrize(
SAMPLE_KEEPALIVED_IMAGE,
)
ss = kad.get_sysctl_settings()
- assert len(ss) == 3
+ assert ss == [
+ '# IP forwarding and non-local bind',
+ 'net.ipv4.ip_forward = 1',
+ 'net.ipv4.ip_nonlocal_bind = 1',
+ 'net.ipv6.ip_nonlocal_bind = 1',
+ ]