[pve-devel] [PATCH container] fix #4164: use DHCP=yes instead of DHCP=both in systemd-networkd config

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Jul 19 13:52:37 CEST 2022


On July 19, 2022 1:24 pm, Oguz Bektas wrote:
> "both" option is deprecated, this gets rid of the warning in the journal
> 
> Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>

some notion which templates you tested this with, when the deprecation 
happened in systemd, whether we need a fallback to 'both' for older 
versions, etc.pp. would be nice to have..

AFAICT the deprecation was in systemd v219, so should probably be okay 
to switch unconditionally..

> ---
>  src/PVE/LXC/Setup/Base.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/LXC/Setup/Base.pm b/src/PVE/LXC/Setup/Base.pm
> index 8580bf0..cc12914 100644
> --- a/src/PVE/LXC/Setup/Base.pm
> +++ b/src/PVE/LXC/Setup/Base.pm
> @@ -261,7 +261,7 @@ DATA
>  	my ($has_ipv4, $has_ipv6);
>  
>  	# DHCP bitflags:
> -	my @DHCPMODES = ('no', 'v4', 'v6', 'both');
> +	my @DHCPMODES = ('no', 'v4', 'v6', 'yes');
>  	my ($NONE, $DHCP4, $DHCP6, $BOTH) = (0, 1, 2, 3);
>  	my $dhcp = $NONE;
>  	my $accept_ra = 'false';
> -- 
> 2.30.2
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 





More information about the pve-devel mailing list