From 224ed6e22283c50ab1be0ab0be04d81316a88af9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 25 May 2005 21:20:20 +0000 Subject: Convert friendly interface name to real interface --- etc/inc/interfaces.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e8692d1..a1ef042 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -307,7 +307,8 @@ function interfaces_carp_configure() { } $carpdev = ""; if($carp['interface'] <> "AUTO" and $carp['interface'] <> "") { - $carpdev = " carpdev {$carp['interface']} "; + $ci = filter_opt_interface_to_real($carp['interface']); + $carpdev = " carpdev {$ci} "; } mwexec("/sbin/ifconfig carp" . $carp_instances_counter . " " . $carp['ipaddress'] . "/" . $carp['netmask'] . " broadcast " . $broadcast_address . " vhid " . $carp['vhid'] . "{$carpdev} advskew " . $carp['advskew'] . $password); $carp_instances_counter++; -- cgit v1.1