Project

General

Profile

« Previous | Next » 

Revision 7b47bd4c

Added by Ermal LUÇI over 13 years ago

Make vips vhid be unique per parent interface!

View differences:

usr/local/www/carp_status.php
84 84
						sleep(1);
85 85
					break;
86 86
					case "ipalias":
87
						if (substr($vip['interface'], 0, 3) == "vip")
87
						if (strstr($vip['interface'], "_vip"))
88 88
							interface_ipalias_configure($vip);
89 89
					break;
90 90
                                }
......
159 159
						$vhid = $carp['vhid'];
160 160
						$advskew = $carp['advskew'];
161 161
						$advbase = $carp['advbase'];
162
						$carp_int = "vip{$vhid}";
162
						$carp_int = "{$carp['interface']}_vip{$vhid}";
163 163
						$status = get_carp_interface_status($carp_int);
164 164
						echo "<tr>";
165 165
						$align = "valign='middle'";

Also available in: Unified diff