diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2011-11-28 15:12:51 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2011-11-28 15:12:51 -0800 |
commit | d5700952eece79ecae7532ee1fbcf475a0bc63a0 (patch) | |
tree | 44de80221fb7f2410af24c3c8b9ea22ec35d4bd1 | |
parent | dcff7e2c90f21cc7eb7e08ca054c8779dc0b22fd (diff) | |
download | vyatta-cfg-quagga-d5700952eece79ecae7532ee1fbcf475a0bc63a0.tar.gz vyatta-cfg-quagga-d5700952eece79ecae7532ee1fbcf475a0bc63a0.zip |
Use new naming convention for VRRP virtual mac interfaces.
The new naming convention is: <ifname>v<VRID>
where <ifname> is the name of the underlying physical interface or
VLAN and <VRID> is the virtual router ID.
For example: eth0v235, eth7.4000v199.
-rwxr-xr-x | scripts/keepalived/vyatta-keepalived.pl | 4 |
1 files changed, 3 insertions, 1 deletions
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" ) { |