Project

General

Profile

« Previous | Next » 

Revision 100b7219

Added by Ermal LUÇI over 14 years ago

Hanlde the case when advbase is not present especially on previous 2.0 setups.

View differences:

etc/inc/interfaces.inc
1795 1795
	get_interface_arr(true);
1796 1796

  
1797 1797
	$broadcast_address = gen_subnet_max($vip['subnet'], $vip['subnet_bits']);
1798
	mwexec("/sbin/ifconfig {$vipif} {$vip['subnet']}/{$vip['subnet_bits']} vhid {$vip['vhid']} advskew {$vip['advskew']} advbase {$vip['advbase']} {$password}");
1798
	$advbase = "";
1799
	if (!empty($vip['advbase']))
1800
		$advbase = "advbase {$vip['advbase']}";
1801
	mwexec("/sbin/ifconfig {$vipif} {$vip['subnet']}/{$vip['subnet_bits']} vhid {$vip['vhid']} advskew {$vip['advskew']} {$advbase} {$password}");
1799 1802

  
1800 1803
	interfaces_bring_up($vipif);
1801 1804
	

Also available in: Unified diff