Add new Plugin tab in Ports like a "public function"?

Thank you @electrocret
I don’t know how to make a new hook properly, I modified directly the file /librenms/includes/html/pages/device/ports.inc.php

line 96
*//START ADD CODE *

  • echo ’ | ';*
  • echo generate_link(‘BIER’, $link_array, [‘view’ => ‘bier’]);*

print_optionbar_end();
// If Bier is clicked
if ($vars[‘view’] == “bier”) {

  • include ‘html/plugins/BIER/print-interface-bier.inc.php’;*
    }
    //END ADD CODE

The result of the plugin can be found here
https://community.librenms.org/t/view-ports-customize-basic-mini/21413/5?u=lynch4fr

:slight_smile: