Use get_ports method in dashboard template.