$entry) { [$vlan_num, $phyifIndex] = explode('.', $index); $ifIndex = $entry['cviRoutedVlanIfIndex']; $trunk = 'routed'; $vlan_rows[] = [$ifIndex, $vlan_num, $trunk]; // Set Vlan and Trunk if (isset($port_stats[$ifIndex]) && !is_numeric($port_stats[$ifIndex]['ifVlan'])) { $port_stats[$ifIndex]['ifVlan'] = $vlan_num; $port_stats[$ifIndex]['ifTrunk'] = $trunk; } } } $headers = ['%WifIndex%n', '%WVlan%n', '%WTrunk%n']; print_cli_table($vlan_rows, $headers); //$process_port_functions[$port_module] = $GLOBALS['snmp_status']; // Additional db fields for update //$process_port_db[$port_module][] = 'ifVlan'; //$process_port_db[$port_module][] = 'ifTrunk'; // EOF