PHP Version of BGP Looking Glass script, based on the Perl sources: https://github.com/Cougar/lg
$_CONFIG['asn'] - Your AS number for display on the LG page.$_CONFIG['company'] - Your company for display on the LG page.$_CONFIG['logo'] - Your company logo for display on the LG page.$_CONFIG['color'] - Main color of design elements on the LG page.$_CONFIG['ipwhois'] - URL address of the IP whois service.$_CONFIG['aswhois'] - URL address of the AS whois service.
$_CONFIG['sshcommand'] - Type of command to make a SSH connection (you can use plink or sshpass as value).
$_CONFIG['plink'] - Path to plink command if you use it (for SSH connections).
$_CONFIG['sshpass'] - Path to sshpass command if you use it (for SSH connections).
Configuration of routers is specified as array in the parameter $_CONFIG['routers'] with following format:
$_CONFIG['routers'] = array
(
'router1' = array
(
// Router parameters
),
'router2' = array
(
// Router parameters
),
// etc.
);
url - URL address in format: [ssh|telnet]://[login]:[password]@[host]:[port].
pingtraceurl - URL address for ping and traceroute tools for Quagga routers (or FALSE).
description - Router description.
group - Router group name - AS number (of FALSE).
ipv6 - Router is supports IPv6 (TRUE or FALSE).
os - Router OS (ios, mikrotik, quagga, junos, openbgpd, huawei).
HSDN Looking Glass
Copyright (C) 2012-2018 Information Networks Ltd.
Copyright (C) 2000-2002 Cougar
Copyright (C) 2014 Regional Networks Ltd.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.