From b29a8c3596587f84ec4412faea24b99fd49b73f8 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Tue, 26 Mar 2024 13:04:38 +0100 Subject: [PATCH] esxi: use mac address when static, generated and vpx static -> defined manually generated -> by ESXi vpx -> generated by vCenter Signed-off-by: Aaron Lauterer --- src/PVE/Storage/ESXiPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Storage/ESXiPlugin.pm b/src/PVE/Storage/ESXiPlugin.pm index 77fb6c0..9c9f680 100644 --- a/src/PVE/Storage/ESXiPlugin.pm +++ b/src/PVE/Storage/ESXiPlugin.pm @@ -793,7 +793,7 @@ sub for_each_netdev { my $ty = $dev->{addressType}; my $mac = $dev->{address}; - if ($ty && fc($ty) eq fc('generated')) { + if ($ty && fc($ty) =~ /^(static|generated|vpx)$/) { $mac = $dev->{generatedAddress} // $mac; }