mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	rename cbgp_prefixes to prefixes, as this will be used for more than cisco-bgp-mib now, and link directly to the bgp tab from the general bgp overview when you click on the device. overloaded generate_device_link, the day/time attributes were never used in any page yet
git-svn-id: http://www.observium.org/svn/observer/trunk@1740 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -40,7 +40,7 @@ else
 | 
			
		||||
 | 
			
		||||
    echo("<tr bgcolor=$bg_colour background=$bg_image>
 | 
			
		||||
            <td></td>
 | 
			
		||||
            <td width=150><span class=list-large>" . $peer['bgpLocalAddr'] . "</span><br />".generate_device_link($peer, shorthost($peer['hostname']))."</td>
 | 
			
		||||
            <td width=150><span class=list-large>" . $peer['bgpLocalAddr'] . "</span><br />".generate_device_link($peer, shorthost($peer['hostname']), 'bgp/')."</td>
 | 
			
		||||
	     <td width=30>-></td>
 | 
			
		||||
            <td width=150><span class=list-large>" . $peer['bgpPeerIdentifier'] . "</span><br />".$peername."</td>
 | 
			
		||||
	     <td width=50><b>$peer_type</b></td>
 | 
			
		||||
 
 | 
			
		||||
@@ -10,9 +10,9 @@ echo("
 | 
			
		||||
  <div style='margin: auto; text-align: left; padding-left: 11px; clear: both; display:block; height:20px;'>
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/'>No Graphs</a> |
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/updates/'>Updates</a> | Prefixes:
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/cbgp_prefixes/ipv4.unicast/'>IPv4</a> |
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/cbgp_prefixes/ipv4.vpn/'>VPNv4</a> |
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/cbgp_prefixes/ipv6.unicast/'>IPv6</a>
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/prefixes/ipv4.unicast/'>IPv4</a> |
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/prefixes/ipv4.vpn/'>VPNv4</a> |
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/prefixes/ipv6.unicast/'>IPv6</a>
 | 
			
		||||
  | Traffic:
 | 
			
		||||
  <a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/macaccounting/'>Mac Accounting</a>
 | 
			
		||||
</div>
 | 
			
		||||
@@ -84,7 +84,7 @@ print_optionbar_end();
 | 
			
		||||
 | 
			
		||||
  if (isset($_GET['opta']) && $_GET['opta'] != "macaccounting") {
 | 
			
		||||
    foreach(explode(" ", $_GET['opta']) as $graph_type) {        
 | 
			
		||||
      if($graph_type == "cbgp_prefixes") { list($afi, $safi) = explode(".", $_GET['optb']); $afisafi = "&afi=$afi&safi=$safi"; }
 | 
			
		||||
      if($graph_type == "prefixes") { list($afi, $safi) = explode(".", $_GET['optb']); $afisafi = "&afi=$afi&safi=$safi"; }
 | 
			
		||||
      if($graph_type == "updates" || $valid_afi_safi[$afi][$safi]) {
 | 
			
		||||
        $daily_traffic   = $config['base_url'] . "/graph.php?id=" . $peer['bgpPeer_id'] . "&type=bgp_$graph_type&from=$day&to=$now&width=210&height=100$afisafi";
 | 
			
		||||
        $daily_url       = $config['base_url'] . "/graph.php?id=" . $peer['bgpPeer_id'] . "&type=bgp_$graph_type&from=$day&to=$now&width=500&height=150$afisafi";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user