interfaces: sync up these changes

Better push 'none' than '' down the code, it is more concise for debugging.
This commit is contained in:
Franco Fichtner 2023-02-13 09:02:33 +01:00
parent 54693d9153
commit e08a49332a
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ ifgroup_setup();
$cacheip_file = "/tmp/{$device}_oldip";
$cacheip = trim(@file_get_contents($cacheip_file));
$intf_ipaddr = $config['interfaces'][$interface]['ipaddr'] ?? '';
$intf_ipaddr = $config['interfaces'][$interface]['ipaddr'] ?? 'none';
if ($ip != $cacheip || (!is_ipaddr($intf_ipaddr) && $intf_ipaddr != 'dhcp')) {
system_routing_configure(false, $interface);

View File

@ -91,7 +91,7 @@ log_msg("IP renwal starting (new: {$ip}, old: ${cacheip}, interface: {$interface
interfaces_vips_configure($interface, 6);
if ($config['interfaces'][$interface]['ipaddrv6'] == 'slaac') {
if (($config['interfaces'][$interface]['ipaddrv6'] ?? 'none') == 'slaac') {
/* require immediate reconfiguration before reconfiguring clients */
plugins_configure('dhcp', false, ['inet6']);
}