From 3a8a9028cf1f43f8294a9b4b79089e877bc25c20 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 5 Mar 2016 05:14:20 -0600 Subject: Add track6 DHCP6 IPs back to interface when applying changes. Ticket #5945 --- src/usr/local/www/interfaces.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/usr/local/www/interfaces.php') diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index 6eeb934..0ff4ce2 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -452,6 +452,15 @@ if ($_POST['apply']) { if (isset($config['interfaces'][$ifapply]['enable'])) { interface_bring_down($ifapply, false, $ifcfgo); interface_configure($ifapply, true); + if ($config['interfaces'][$ifapply]['ipaddrv6'] == "track6") { + /* call interface_track6_configure with linkup true so + IPv6 IPs are added back. dhcp6c needs a HUP. Can't + just call interface_configure with linkup true as + that skips bridge membership addition. + */ + $wancfg = $config['interfaces'][$ifapply]; + interface_track6_configure($ifapply, $wancfg, true); + } } else { interface_bring_down($ifapply, true, $ifcfgo); if (isset($config['dhcpd'][$ifapply]['enable']) || -- cgit v1.1