Author: scottmf
Date: 2010-05-24 17:22:54 -0700 (Mon, 24 May 2010)
New Revision: 14617
URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=14617
Modified:
trunk/plugins/vsphere/src/org/hyperic/hq/plugin/vsphere/VCenterPlatformDetector.java
Log:
[HPD-283] ignore any platform that has a nic with the macaddr of 00:00:00:00:00:00 since it is a transient state. The intention is to ignore them until this state is resolved
Modified: trunk/plugins/vsphere/src/org/hyperic/hq/plugin/vsphere/VCenterPlatformDetector.java
===================================================================
--- trunk/plugins/vsphere/src/org/hyperic/hq/plugin/vsphere/VCenterPlatformDetector.java 2010-05-24 18:41:49 UTC (rev 14616)
+++ trunk/plugins/vsphere/src/org/hyperic/hq/plugin/vsphere/VCenterPlatformDetector.java 2010-05-25 00:22:54 UTC (rev 14617)
@@ -268,6 +268,14 @@
if (nics != null) {
for (int i=0; i<nics.length; i++) {
String mac = nics[i].getMacAddress();
+ if (mac.equals("00:00:00:00:00:00")) {
+ log.info("UUID=" + info.getUuid() +
+ " and NIC=" + nics[i].getIpAddress() +
+ " has macaddr=" + mac +
+ ". Ignoring entire platform since macaddr is invalid. " +
+ "Platform will be picked up when the macaddr is valid");
+ return null;
+ }
String[] ips = nics[i].getIpAddress();
if ((mac != null) && (ips != null) && (ips.length != 0)) {
cprops.setValue("macAddress", mac);
|