feature: Support fdb table on generic devices (#6902)

* 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
This commit is contained in:
Tony Murray
2017-06-29 15:03:56 -05:00
committed by Neil Lathwood
parent bda5a4343e
commit e8dd72e8db
12 changed files with 162 additions and 145 deletions

4
sql-schema/198.sql Normal file
View File

@@ -0,0 +1,4 @@
ALTER TABLE `ports_fdb` DROP `ports_fdb_id`;
CREATE INDEX `ports_fdb_port_id_index` ON `ports_fdb` (`port_id`);
CREATE INDEX `ports_fdb_device_id_index` ON `ports_fdb` (`device_id`);
CREATE INDEX `ports_fdb_vlan_id_index` ON `ports_fdb` (`vlan_id`);