mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Added better BGP support for Arista (#6046)
* feature: Added better BGP support for Arista
This commit is contained in:
@@ -41,7 +41,7 @@ echo ' | Prefixes: ';
|
||||
|
||||
if ($vars['view'] == 'prefixes_ipv4unicast') {
|
||||
echo "<span class='pagemenu-selected'>";
|
||||
$extra_sql = " AND `bgpLocalAddr` NOT LIKE '%:%'";
|
||||
$extra_sql = " AND `bgpPeerIdentifier` NOT LIKE '%:%'";
|
||||
}
|
||||
|
||||
echo generate_link('IPv4', $link_array, array('view' => 'prefixes_ipv4unicast'));
|
||||
@@ -64,7 +64,7 @@ echo ' | ';
|
||||
|
||||
if ($vars['view'] == 'prefixes_ipv6unicast') {
|
||||
echo "<span class='pagemenu-selected'>";
|
||||
$extra_sql = " AND `bgpLocalAddr` LIKE '%:%'";
|
||||
$extra_sql = " AND `bgpPeerIdentifier` LIKE '%:%'";
|
||||
}
|
||||
|
||||
echo generate_link('IPv6', $link_array, array('view' => 'prefixes_ipv6unicast'));
|
||||
@@ -96,7 +96,7 @@ if ($vars['view'] == 'macaccounting_pkts') {
|
||||
print_optionbar_end();
|
||||
|
||||
echo '<table border="0" cellspacing="0" cellpadding="5" width="100%">';
|
||||
echo '<tr style="height: 30px"><td width=1></td><th></th><th>Peer address</th><th>Type</th><th>Remote AS</th><th>State</th><th>Uptime</th></tr>';
|
||||
echo '<tr style="height: 30px"><th>Peer address</th><th>Type</th><th>Remote AS</th><th>State</th><th>Uptime</th></tr>';
|
||||
|
||||
$i = '1';
|
||||
|
||||
@@ -218,7 +218,7 @@ foreach (dbFetchRows("SELECT * FROM `bgpPeers` WHERE `device_id` = ? $extra_sql
|
||||
echo '<tr bgcolor="'.$bg_colour.'"'.($peer['alert'] ? ' bordercolor="#cc0000"' : '').($peer['disabled'] ? ' bordercolor="#cccccc"' : '').'>
|
||||
';
|
||||
|
||||
echo ' <td width=20><span class=list-large>'.$i.'</span></td>
|
||||
echo '
|
||||
<td>'.$peeraddresslink.'<br />'.$peername."</td>
|
||||
<td>$peer_type</td>
|
||||
<td style='font-size: 10px; font-weight: bold; line-height: 10px;'>".(isset($peer['afi']) ? $peer['afi'] : '').'</td>
|
||||
|
@@ -107,7 +107,7 @@ if ($_SESSION['userlevel'] < '5') {
|
||||
echo ' | Prefixes: Unicast (';
|
||||
if ($vars['graph'] == 'prefixes_ipv4unicast') {
|
||||
echo "<span class='pagemenu-selected'>";
|
||||
$extra_sql = " AND `bgpLocalAddr` NOT LIKE '%:%'";
|
||||
$extra_sql = " AND `bgpPeerIdentifier` NOT LIKE '%:%'";
|
||||
}
|
||||
|
||||
echo generate_link('IPv4', $vars, array('view' => 'graphs', 'graph' => 'prefixes_ipv4unicast'));
|
||||
@@ -119,7 +119,7 @@ if ($_SESSION['userlevel'] < '5') {
|
||||
|
||||
if ($vars['graph'] == 'prefixes_ipv6unicast') {
|
||||
echo "<span class='pagemenu-selected'>";
|
||||
$extra_sql = " AND `bgpLocalAddr` LIKE '%:%'";
|
||||
$extra_sql = " AND `bgpPeerIdentifier` LIKE '%:%'";
|
||||
}
|
||||
|
||||
echo generate_link('IPv6', $vars, array('view' => 'graphs', 'graph' => 'prefixes_ipv6unicast'));
|
||||
|
Reference in New Issue
Block a user