Browse Source

bugfix: Switches were "forgotten" when processing the device macro. Fixed

root 2 tháng trước cách đây
mục cha
commit
0e6b64d043
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/fetch_new_arp.pl

+ 1 - 1
scripts/fetch_new_arp.pl

@@ -258,7 +258,7 @@ foreach my $unknown (@unknown_list) {
 }
 
 # Fetch all SNMP-enabled devices (switches, routers, etc.) for FDB discovery
-my @device_list = get_records_sql($dbh,"SELECT * FROM devices WHERE deleted = 0 AND (device_type = 2 OR device_type = 0) AND discovery = 1 AND snmp_version > 0");
+my @device_list = get_records_sql($dbh,"SELECT * FROM devices WHERE deleted = 0 AND device_type <= 2 AND discovery = 1 AND snmp_version > 0");
 my @fdb_array = ();
 
 # Initialize parallel manager for FDB (forwarding database) collection