it seems that some guest-agents format an non-existant mac adress
differently (e.g. macos, see [0]) so filter that also out

0: https://forum.proxmox.com/threads/macos-vm-optischer-makel.76263/

Signed-off-by: Dominik Csapak <[email protected]>
---
 www/manager6/qemu/AgentIPView.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/AgentIPView.js b/www/manager6/qemu/AgentIPView.js
index fb423c98..32e8b08d 100644
--- a/www/manager6/qemu/AgentIPView.js
+++ b/www/manager6/qemu/AgentIPView.js
@@ -104,7 +104,8 @@ Ext.define('PVE.qemu.AgentIPView', {
        var ips = [];
        nics.forEach(function(nic) {
            if (nic['hardware-address'] &&
-               nic['hardware-address'] != '00:00:00:00:00:00') {
+               nic['hardware-address'] != '00:00:00:00:00:00' &&
+               nic['hardware-address'] != '0:0:0:0:0:0') {
 
                var nic_ips = nic['ip-addresses'] || [];
                nic_ips.forEach(function(ip) {
-- 
2.20.1



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to