[pve-devel] [PATCH storage v2] esxi: use mac address when static, generated and vpx

Aaron Lauterer a.lauterer at proxmox.com
Tue Mar 26 13:05:11 CET 2024


please ignore this one

On  2024-03-26  13:04, Aaron Lauterer wrote:
> static -> defined manually
> generated -> by ESXi
> vpx -> generated by vCenter
> 
> Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
> ---
>   src/PVE/Storage/ESXiPlugin.pm | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/src/PVE/Storage/ESXiPlugin.pm b/src/PVE/Storage/ESXiPlugin.pm
> index 77fb6c0..c5ddfea 100644
> --- a/src/PVE/Storage/ESXiPlugin.pm
> +++ b/src/PVE/Storage/ESXiPlugin.pm
> @@ -793,7 +793,10 @@ sub for_each_netdev {
>   
>   	my $ty = $dev->{addressType};
>   	my $mac = $dev->{address};
> -	if ($ty && fc($ty) eq fc('generated')) {
> +	if ($ty && (fc($ty) eq fc('static')
> +		|| fc($ty) eq fc('generated')
> +		|| fc($ty) eq fc('vpx') # vCenter generated
> +	    )) {
>   	    $mac = $dev->{generatedAddress} // $mac;
>   	}
>   




More information about the pve-devel mailing list