minor changes to logging and comments

This commit is contained in:
2021-12-04 13:51:04 -05:00
parent f9377d153a
commit b397b52a1e

View File

@@ -68,13 +68,13 @@ echo_write_log("Name of static WAN Gateway: " . $gatewayName);
$intf_details = legacy_interfaces_details();
$intf = get_real_interface($wanInterface);
echo_write_log("Real WAN Interface: " . $intf);
echo_write_log("Looping through VIP Carp Interfaces...");
# loop through carp addresses and update the wan ip address
echo_write_log("Looping through VIP CARP Interfaces...");
# loop through CARP addresses and update the wan ip address
foreach ($config['virtualip']['vip'] as $i => $vip) {
if ($vip['interface'] == $wanInterface) {
echo_write_log("VIP Carp WAN Interface and vhid: " . convert_friendly_interface_to_friendly_descr($vip['interface']) . "@{$vip['vhid']}");
echo_write_log("VIP CARP WAN Interface and vhid: " . convert_friendly_interface_to_friendly_descr($vip['interface']) . "@{$vip['vhid']}");
$carpStatus = $intf_details[$intf]['carp'][$vip['vhid']]['status'];
echo_write_log("VIP Carp WAN Status: " . $carpStatus);
echo_write_log("VIP CARP WAN Status: " . $carpStatus);
if ($carpStatus == "BACKUP") {
$description = $config['virtualip']['vip'][$i]['descr'];
echo_write_log("Description from VIP WAN: " . $description);
@@ -100,7 +100,7 @@ foreach ($config['virtualip']['vip'] as $i => $vip) {
echo_write_log("Gateway IP is not a valid IP address");
}
} else {
echo_write_log("Router is currently Carp master, not updating");
echo_write_log("Router is currently CARP master, not updating");
}
}
}