mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
test-network: add test for global IPv6PrivacyExtensions= setting
This commit is contained in:
parent
932ef6ecd4
commit
856a247e19
@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
[Network]
|
||||
IPv6PrivacyExtensions=prefer-public
|
@ -3,11 +3,10 @@
|
||||
Name=dummy98
|
||||
|
||||
[Network]
|
||||
IPForward=true
|
||||
IPv6PrivacyExtensions=true
|
||||
IPForward=yes
|
||||
IPv6DuplicateAddressDetection=3
|
||||
IPv6HopLimit=5
|
||||
IPv4ProxyARP=true
|
||||
IPv6ProxyNDP=true
|
||||
IPv4ProxyARP=yes
|
||||
IPv6ProxyNDP=yes
|
||||
IPv6AcceptRA=no
|
||||
IPv4AcceptLocal=yes
|
||||
|
@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
[Network]
|
||||
IPv6PrivacyExtensions=yes
|
@ -3121,12 +3121,13 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
|
||||
self.assertRegex(output, 'inet6 .* scope link')
|
||||
|
||||
def test_sysctl(self):
|
||||
copy_network_unit('25-sysctl.network', '12-dummy.netdev')
|
||||
copy_networkd_conf_dropin('25-global-ipv6-privacy-extensions.conf')
|
||||
copy_network_unit('25-sysctl.network', '12-dummy.netdev', copy_dropins=False)
|
||||
start_networkd()
|
||||
self.wait_online(['dummy98:degraded'])
|
||||
|
||||
self.check_ipv6_sysctl_attr('dummy98', 'forwarding', '1')
|
||||
self.check_ipv6_sysctl_attr('dummy98', 'use_tempaddr', '2')
|
||||
self.check_ipv6_sysctl_attr('dummy98', 'use_tempaddr', '1')
|
||||
self.check_ipv6_sysctl_attr('dummy98', 'dad_transmits', '3')
|
||||
self.check_ipv6_sysctl_attr('dummy98', 'hop_limit', '5')
|
||||
self.check_ipv6_sysctl_attr('dummy98', 'proxy_ndp', '1')
|
||||
@ -3134,6 +3135,12 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
|
||||
self.check_ipv4_sysctl_attr('dummy98', 'proxy_arp', '1')
|
||||
self.check_ipv4_sysctl_attr('dummy98', 'accept_local', '1')
|
||||
|
||||
copy_network_unit('25-sysctl.network.d/25-ipv6-privacy-extensions.conf')
|
||||
networkctl_reload()
|
||||
self.wait_online(['dummy98:degraded'])
|
||||
|
||||
self.check_ipv6_sysctl_attr('dummy98', 'use_tempaddr', '2')
|
||||
|
||||
def test_sysctl_disable_ipv6(self):
|
||||
copy_network_unit('25-sysctl-disable-ipv6.network', '12-dummy.netdev')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user