mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
e8dd72e8db
* feature: support fdb table on generic devices refactored code to use snmpwalk_group refactored ajax table code to use joins and reduce extra queries add indexes for device_id and port_id, drop primary index Make all columns sortable Fix a few other small issues * Add index for vlan_id since that field can be searched by the user * fix whitespace * Rename 197.sql to 198.sql * set row count for table
30 lines
648 B
PHP
30 lines
648 B
PHP
<?php
|
|
$no_refresh = true;
|
|
?>
|
|
<table id="port-fdb" class="table table-condensed table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th data-column-id="mac_address">MAC address</th>
|
|
<th data-column-id="ipv4_address">IPv4 Address</th>
|
|
<th data-column-id="interface">Port</th>
|
|
<th data-column-id="vlan">Vlan</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<script>
|
|
|
|
var grid = $("#port-fdb").bootgrid({
|
|
ajax: true,
|
|
post: function ()
|
|
{
|
|
return {
|
|
id: "fdb-search",
|
|
port_id: "<?php echo $port['port_id']; ?>"
|
|
};
|
|
},
|
|
url: "ajax_table.php"
|
|
});
|
|
</script>
|
|
|