self.assertRegex(output, 'okey 0.0.0.106')
self.assertRegex(output, 'iseq')
self.assertRegex(output, 'oseq')
+ self.assertIn('nopmtudisc', output)
+ self.assertIn('ignore-df', output)
output = check_output('ip -d link show gretap98')
print(output)
self.assertRegex(output, 'gretap remote 10.65.223.239 local any dev dummy98')
self.assertNotIn('erspan_hwid 1f', output)
self.assertIn('ikey 0.0.0.101', output)
self.assertIn('iseq', output)
+ self.assertIn('nopmtudisc', output)
+ self.assertIn('ignore-df', output)
output = check_output('ip -d link show erspan98')
print(output)
self.assertIn('erspan remote 172.16.1.100 local any', output)
self.wait_online(['test1:degraded', 'veth99:routable', 'veth-peer:degraded',
'vxlan99:degraded', 'vxlan98:degraded', 'vxlan97:degraded', 'vxlan-slaac:degraded'])
- output = check_output('ip -d link show vxlan99')
+ output = check_output('ip -d -d link show vxlan99')
print(output)
self.assertIn('999', output)
self.assertIn('5555', output)
self.assertIn('l2miss', output)
self.assertIn('l3miss', output)
- self.assertIn('udpcsum', output)
- self.assertIn('udp6zerocsumtx', output)
- self.assertIn('udp6zerocsumrx', output)
- self.assertIn('remcsumtx', output)
- self.assertIn('remcsumrx', output)
self.assertIn('gbp', output)
+ # Since [0] some of the options use slightly different names and some
+ # options with default values are shown only if the -d(etails) setting
+ # is repeated
+ # [0] https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=1215e9d3862387353d8672296cb4c6c16e8cbb72
+ self.assertRegex(output, '(udpcsum|udp_csum)')
+ self.assertRegex(output, '(udp6zerocsumtx|udp_zero_csum6_tx)')
+ self.assertRegex(output, '(udp6zerocsumrx|udp_zero_csum6_rx)')
+ self.assertRegex(output, '(remcsumtx|remcsum_tx)')
+ self.assertRegex(output, '(remcsumrx|remcsum_rx)')
output = check_output('bridge fdb show dev vxlan99')
print(output)
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')
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')