Skip to content
This repository was archived by the owner on Jan 27, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: bool
help: Send multicasts over IPv6 instead of IPv4
default: true
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
multi:
type: ipv4,ipv4net
type: txt
help: Virtual address [REQUIRED]

syntax:expression: exec "
if [[ '$VAR(@)' == '*/' ]]; then /opt/vyatta/sbin/valid_address $VAR(@); fi"

val_help: ipv4; Virtual IP address (up to 20 per group)
val_help: ipv4net; Virtual IP address with prefix (up to 20 per group)
val_help: ipv6; Virtual IPv6 address (up to 20 per group)
val_help: ipv6net; Virtual IPv6 address with prefix (up to 20 per group)
8 changes: 8 additions & 0 deletions scripts/vyatta-keepalived.pl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ sub keepalived_get_values {
next;
}

my $multicast_on_ipv6 = 0;
if ($config->exists("multicast-on-ipv6")) {
$multicast_on_ipv6 = 1;
}

my $use_vmac = 0;
my $transition_intf = $intf;
if ( $config->exists("rfc3768-compatibility") ) {
Expand Down Expand Up @@ -275,6 +280,9 @@ sub keepalived_get_values {
$output .= "\tstate $init_state\n";
$output .= "\tinterface $intf\n";
$output .= "\tvirtual_router_id $group\n";
if ($multicast_on_ipv6) {
$output .= "\tnative_ipv6\n";
}
if ($use_vmac) {
$output .= "\tuse_vmac $intf";
$output .= "v";
Expand Down