[pve-devel] [PATCH manager] ui: qemu/AgentIPView: also filter out 0:0:0:0:0:0
Dominik Csapak
d.csapak at proxmox.com
Tue Sep 22 16:04:13 CEST 2020
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 <d.csapak at proxmox.com>
---
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
More information about the pve-devel
mailing list