mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	merge $popgraph and $popdescr into $config['os'] as overgraph and overtext
merge ifalias/ifdescr/ifname/ifindex decision making about port names into $config['os'] git-svn-id: http://www.observium.org/svn/observer/trunk@1265 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -15,16 +15,16 @@ function ifLabel ($interface, $device = NULL) {
 | 
			
		||||
  if(!$device) { $device = device_array($interface['device_id']); }
 | 
			
		||||
  $os = strtolower($device['os']);
 | 
			
		||||
 | 
			
		||||
  if(isset($config['ifname'][$os])) {
 | 
			
		||||
  if (isset($config['os'][$os]['ifname'])) {
 | 
			
		||||
    $interface['label'] = $interface['ifName'];
 | 
			
		||||
  } elseif(isset($config['ifAlias'][$os])) {
 | 
			
		||||
  } elseif (isset($config['os'][$os]['ifalias'])) {
 | 
			
		||||
    $interface['label'] = $interface['ifAlias'];
 | 
			
		||||
  } else {
 | 
			
		||||
    $interface['label'] = $interface['ifDescr'];
 | 
			
		||||
    if(isset($config['appendifindex'][$os])) { $interface['label'] = $interface['label'] . " " . $interface['ifIndex']; }
 | 
			
		||||
    if (isset($config['os'][$os]['ifindex'])) { $interface['label'] = $interface['label'] . " " . $interface['ifIndex']; }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if($device['os'] == "speedtouch") {
 | 
			
		||||
  if ($device['os'] == "speedtouch") {
 | 
			
		||||
    list($interface['label']) = explode("thomson", $interface['label']);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user