Project

General

Profile

« Previous | Next » 

Revision 8f5352df

Added by Pi Ba over 10 years ago

carp, don't show status icon from previous carp ip in case the ip is not present on the interface (test with ifconfig em0 1.2.3.4 delete)

View differences:

usr/local/www/carp_status.php
193 193
								$icon = "<img {$align} src=\"/themes/".$g['theme']."/images/icons/icon_pass_d.gif\" alt=\"backup\" />";
194 194
							} else if($status == "INIT") {
195 195
								$icon = "<img {$align} src=\"/themes/".$g['theme']."/images/icons/icon_log.gif\" alt=\"init\" />";
196
							}
196
							} else
197
								$icon = "";
197 198
						}
198 199
						echo "<td class=\"listlr\" align=\"center\">" . convert_friendly_interface_to_friendly_descr($carp['interface']) . "@{$vhid} &nbsp;</td>";
199 200
						echo "<td class=\"listlr\" align=\"center\">" . $ipaddress . "&nbsp;</td>";

Also available in: Unified diff