aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd/openbgpd_status.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/openbgpd/openbgpd_status.php')
-rw-r--r--config/openbgpd/openbgpd_status.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php
index f5930db0..245ed1c9 100644
--- a/config/openbgpd/openbgpd_status.php
+++ b/config/openbgpd/openbgpd_status.php
@@ -41,6 +41,12 @@ defCmdT("nexthops", "OpenBGPD Nexthops", "bgpctl show nexthop");
defCmdT("ip", "OpenBGPD IP", "bgpctl show ip bgp");
defCmdT("neighbors", "OpenBGPD Neighbors", "bgpctl show neighbor");
+if (isset($_REQUEST['isAjax'])) {
+ if (isset($_REQUEST['cmd']) && isset($commands[$_REQUEST['cmd']]))
+ echo htmlspecialchars_decode(doCmdT($commands[$_REQUEST['cmd']][1], $_REQUEST['limit']. $_REQUEST['filter']));
+ exit;
+}
+
if ($config['version'] >= 6)
$pgtitle = array("OpenBGPD", "Status");
else