From fcac6e87396437a6473992543c7828a238b007ff Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Tue, 29 Mar 2016 23:58:42 -0500 Subject: Bring back radvd start/stop to carpmaster/backup. Ticket #6043 --- src/etc/rc.carpmaster | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/etc/rc.carpmaster') diff --git a/src/etc/rc.carpmaster b/src/etc/rc.carpmaster index a9e779e..248b5bb 100755 --- a/src/etc/rc.carpmaster +++ b/src/etc/rc.carpmaster @@ -97,6 +97,22 @@ if (is_array($config['openvpn']) && is_array($config['openvpn']['openvpn-server' } } +/* Reconfigure radvd when necessary */ +if (isset($config['dhcpdv6']) && is_array($config['dhcpdv6'])) { + $rafound = false; + foreach ($config['dhcpdv6'] as $dhcpv6if => $dhcpv6ifconf) { + foreach ($vips as $vip) { + if ($dhcpv6ifconf['rainterface'] == "_vip{$vip['uniqid']}") { + log_error("Starting radvd instance on {$friendly_descr} because of transition to CARP master."); + $rafound = true; + } + } + } + if ($rafound) { + services_radvd_configure(); + } +} + $pluginparams = array(); $pluginparams['type'] = 'carp'; $pluginparams['event'] = 'rc.carpmaster'; -- cgit v1.1