'device', 'device' => $device['device_id'], 'tab' => 'routing', 'proto' => 'bgp', ]; if (! isset($vars['view'])) { $vars['view'] = 'basic'; } print_optionbar_start(); echo 'Local AS : ' . $device['bgpLocalAs'] . ' '; echo "BGP » "; if ($vars['view'] == 'basic') { echo "'; } echo ' | '; if ($vars['view'] == 'updates') { echo "'; } echo ' | Prefixes: '; if ($vars['view'] == 'prefixes_ipv4unicast') { echo "'; } echo ' | '; if ($vars['view'] == 'prefixes_ipv4vpn') { echo "'; } echo ' | '; if ($vars['view'] == 'prefixes_ipv6unicast') { echo "'; } echo ' | '; if ($vars['view'] == 'prefixes_ipv6vpn') { echo "'; } echo ' | Traffic: '; if ($vars['view'] == 'macaccounting_bits') { echo "'; } echo ' | '; if ($vars['view'] == 'macaccounting_pkts') { echo "'; } print_optionbar_end(); echo '
| Peer address | Type | Family | Remote AS | Peer description | State | Last error | Uptime |
|---|---|---|---|---|---|---|---|
| ' . $peeraddresslink . ' ' . ($peername ?? '') . " |
$peer_type | " . (isset($peer['afi']) ? $peer['afi'] : '') . ' | AS' . $peer['bgpPeerRemoteAs'] . ' ' . $peer['astext'] . ' |
' . $peer['bgpPeerDescr'] . " | " . $peer['bgpPeerAdminStatus'] . " " . $peer['bgpPeerState'] . ' |
' . $last_error . ' | ' . \LibreNMS\Util\Time::formatInterval($peer['bgpPeerFsmEstablishedTime']) . " Updates " . $peer['bgpPeerInUpdates'] . " " . $peer['bgpPeerOutUpdates'] . ' |
| '; include 'includes/html/print-graphrow.inc.php'; echo ' | |||||||