$mib_tables) { print_cli_data_field("$mib", 2); foreach ($mib_tables as $table_name => $table_def) { // Compat with old table format if (!isset($table_def['mib'])) { $table_def['mib'] = $mib; } // Polling NG (with tables and indexed) $graphs_ng = FALSE && is_numeric($table_name); // WiP if ($graphs_ng) { // WIP. echo("NEW GRAPHS polling "); collect_table_ng($device, $table_def, $graphs); } else { // CLEANME. remove after migrating to collect_table_ng() echo("$table_name "); collect_table($device, $table_def, $graphs); } // Poll same in vrfs if possible if ($vrf_contexts) { // Keep original device array $device_original = $device; foreach ($vrf_contexts as $vrf_name => $snmp_virtual) { echo("[Virtual Routing $vrf_name] "); $device = snmp_virtual_device($device_original, $snmp_virtual); //$device['snmp_context'] = $snmp_context; if ($graphs_ng) { echo("NEW GRAPHS polling "); collect_table_ng($device, $table_def, $graphs); } else { // CLEANME. remove after migrating to collect_table_ng() collect_table($device, $table_def, $graphs); } } // Clean $device = $device_original; unset($device_original); } } echo PHP_EOL; } // EOF