summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_gateways.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-01-06 14:10:47 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-01-06 14:11:14 -0200
commit81f1947666ebbe19f1f6579a1e5293c42c6d1c04 (patch)
treedf8d45ce2c8862eca85177a09c4f8df69c19f849 /usr/local/www/status_gateways.php
parent30e2adbc04d37bf66bd4e0cce675d12fd3120f5a (diff)
downloadpfsense-81f1947666ebbe19f1f6579a1e5293c42c6d1c04.zip
pfsense-81f1947666ebbe19f1f6579a1e5293c42c6d1c04.tar.gz
Add an option to force a gateway to be down, it fixes #2847
Diffstat (limited to 'usr/local/www/status_gateways.php')
-rwxr-xr-xusr/local/www/status_gateways.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php
index e7154a8..ffe1458 100755
--- a/usr/local/www/status_gateways.php
+++ b/usr/local/www/status_gateways.php
@@ -115,7 +115,10 @@ include("head.inc");
<?php
if ($gateways_status[$gname]) {
$status = $gateways_status[$gname];
- if (stristr($status['status'], "down")) {
+ if (stristr($status['status'], "force_down")) {
+ $online = gettext("Offline (forced)");
+ $bgcolor = "#F08080"; // lightcoral
+ } elseif (stristr($status['status'], "down")) {
$online = gettext("Offline");
$bgcolor = "#F08080"; // lightcoral
} elseif (stristr($status['status'], "loss")) {
OpenPOWER on IntegriCloud