mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Simplify
This commit is contained in:
		@@ -251,12 +251,8 @@ foreach ($ports as $port)
 | 
			
		||||
    echo("VLAN == ".$this_port['ifVlan']);
 | 
			
		||||
 | 
			
		||||
    // Update IF-MIB data
 | 
			
		||||
    $brk = false;
 | 
			
		||||
    foreach ($data_oids as $oid)
 | 
			
		||||
    {
 | 
			
		||||
      if( $brk === true ) {
 | 
			
		||||
        break;
 | 
			
		||||
      }
 | 
			
		||||
      if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]))
 | 
			
		||||
      {
 | 
			
		||||
        $port['update'][$oid] = array('NULL');
 | 
			
		||||
@@ -268,7 +264,7 @@ foreach ($ports as $port)
 | 
			
		||||
        if ($debug) { echo($oid . ": ".$port[$oid]." -> " . $this_port[$oid]." "); } else { echo($oid . " "); }
 | 
			
		||||
      }
 | 
			
		||||
      if( ( $oid == 'ifOperStatus' || $oid == 'ifAdminStatus' ) && $this_port[$oid] == 'down' ) {
 | 
			
		||||
        $brk = true;
 | 
			
		||||
        break;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user