mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Revert "Already doing this no need to duplicate" <- no, we aren't 100% duplicating this. This commit breaks fully reconfiguring assigned gif interfaces.
This reverts commit 87f0f42c32.
This commit is contained in:
parent
b733ce0d13
commit
90c386ba15
@ -112,6 +112,23 @@ if (!empty($grouptmp))
|
||||
/* reconfigure static routes (kernel may have deleted them) */
|
||||
system_routing_configure($interface);
|
||||
|
||||
/* Check Gif tunnels */
|
||||
foreach($config['gifs']['gif'] as $gif) {
|
||||
if($gif['if'] == $interface) {
|
||||
foreach($config['interfaces'] as $ifname => $ifparent) {
|
||||
// echo "interface $ifparent, ifname $ifname, gif {$gif['gifif']}\n";
|
||||
if(($ifparent['if'] == $gif['gifif']) && (isset($ifparent['enable']))) {
|
||||
// echo "Running routing configure for $ifname\n";
|
||||
$gif['gifif'] = interface_gif_configure($gif);
|
||||
$confif = convert_real_interface_to_friendly_interface_name($gif['gifif']);
|
||||
if ($confif <> "")
|
||||
interface_configure($confif);
|
||||
system_routing_configure($ifname);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* reconfigure our gateway monitor */
|
||||
setup_gateways_monitor();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user