Enable RAs with gentoo when using dhcpv6-stateless
We need RAs when using dhcpv6-stateless interfaces but we had disabled them because they didn't match the slaac type. Update this to handle the dhcpv6-stateless case too. Change-Id: Id394a7b0fb5a04fe09d9b8ed709adc75ab2f2a33
This commit is contained in:
parent
2792c4b694
commit
57e263e5b1
@ -376,7 +376,8 @@ def _write_networkd_interface(name, interfaces, args, files_struct=dict()):
|
||||
else:
|
||||
files_struct[network_file]['[Network]'].append('DHCP=ipv6')
|
||||
# slaac can start dhcp6 if the associated RA option is sent to server
|
||||
if interface['type'] == 'ipv6_slaac':
|
||||
if (interface['type'] == 'ipv6_slaac' or
|
||||
interface['type'] == 'ipv6_dhcpv6-stateless'):
|
||||
# we are accepting slaac now, remove the disabling of slaac
|
||||
if 'IPv6AcceptRA=no' in files_struct[network_file]['[Network]']:
|
||||
files_struct[network_file]['[Network]'].remove(
|
||||
|
Loading…
Reference in New Issue
Block a user