Show filtered node in red

This commit is contained in:
chimp1984 2020-10-31 13:36:15 -05:00
parent 3d24a204e4
commit ae365e2dcd
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -154,7 +154,14 @@ public class InventoryWebServer {
sb.append("Operator: ").append(operator).append("<br/>");
String address = nodeAddress.getFullAddress();
sb.append("Node address: ").append(address).append("<br/>");
String filteredSeeds = requestInfo != null ? requestInfo.getValue(InventoryItem.filteredSeeds) : null;
if (filteredSeeds != null && filteredSeeds.contains(address)) {
sb.append(getColorTagByDeviationSeverity(DeviationSeverity.ALERT)).append("Node address: ")
.append(address).append(" (is filtered!)").append(CLOSE_TAG);
} else {
sb.append("Node address: ").append(address).append("<br/>");
}
if (requestInfo != null) {
sb.append("Version: ").append(requestInfo.getDisplayValue(InventoryItem.version)).append("<br/>");