From d5700952eece79ecae7532ee1fbcf475a0bc63a0 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Mon, 28 Nov 2011 15:12:51 -0800 Subject: Use new naming convention for VRRP virtual mac interfaces. The new naming convention is: v where is the name of the underlying physical interface or VLAN and is the virtual router ID. For example: eth0v235, eth7.4000v199. --- scripts/keepalived/vyatta-keepalived.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl index e834745b..f419ac41 100755 --- a/scripts/keepalived/vyatta-keepalived.pl +++ b/scripts/keepalived/vyatta-keepalived.pl @@ -247,7 +247,9 @@ sub keepalived_get_values { $output .= "\tinterface $intf\n"; $output .= "\tvirtual_router_id $group\n"; if ($use_vmac) { - $output .= "\tuse_vmac\n"; + $output .= "\tuse_vmac $intf"; + $output .= "v"; + $output .= "$group\n"; } $output .= "\tpriority $priority\n"; if ( $preempt eq "false" ) { -- cgit v1.2.3