Project

General

Profile

« Previous | Next » 

Revision 82f581d5

Added by Luiz Souza over 7 years ago

Improve the CARP description.

No functional change.

View differences:

src/etc/inc/interfaces.inc
5090 5090
						if ($vip['mode'] == "carp") {
5091 5091
							if ($interface == "_vip{$vip['uniqid']}") {
5092 5092
								$descr = $vip['subnet'];
5093
								$descr .= " (vhid {$vip['vhid']})";
5093 5094
								if (!empty($vip['descr'])) {
5094 5095
									$descr .= " - " .$vip['descr'];
5095 5096
								}
......
6565 6566
	$viplist = get_configured_vip_list($family, $type);
6566 6567
	foreach ($viplist as $vip => $address) {
6567 6568
		$interfaces[$vip] = $address;
6569
		if ($type = VIP_CARP) {
6570
			$vip = get_configured_vip($vipid);
6571
			if (isset($vip) && is_array($vip) ) {
6572
				$interfaces[$vipid] .= " - vhid {$vip['vhid']}";
6573
			}
6574
		}
6568 6575
		if (get_vip_descr($address)) {
6569 6576
			$interfaces[$vip] .= " (" . get_vip_descr($address) . ")";
6570 6577
		}

Also available in: Unified diff