diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Addresses.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Addresses.pm index 83f5186e..e9b26dde 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Addresses.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Addresses.pm @@ -6,7 +6,7 @@ use Dancer::Plugin::Auth::Extensible; use App::Netdisco::Web::Plugin; -register_device_tab( { tag => 'addresses', label => 'Addresses' } ); +register_device_tab( { tag => 'addresses', label => 'Addresses', provides_csv => 1 } ); # device interface addresses get '/ajax/content/device/addresses' => require_login sub { diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Device.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Device.pm index 7e42246f..98dc6561 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Device.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Device.pm @@ -8,7 +8,7 @@ use List::MoreUtils (); use App::Netdisco::Web::Plugin; -register_search_tab({ tag => 'device', label => 'Device' }); +register_search_tab({ tag => 'device', label => 'Device', provides_csv => 1 }); my $headers = ['Device','Contact','Location','System Name','Model','OS Version','Management IP','Serial']; diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Port.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Port.pm index 986d87b9..1dda5c89 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Port.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Port.pm @@ -6,7 +6,7 @@ use Dancer::Plugin::Auth::Extensible; use App::Netdisco::Web::Plugin; -register_search_tab({ tag => 'port', label => 'Port' }); +register_search_tab({ tag => 'port', label => 'Port', provides_csv => 1 }); # device ports with a description (er, name) matching get '/ajax/content/search/port' => require_login sub { diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm index 5bbddd4f..8081dd8b 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/VLAN.pm @@ -6,7 +6,7 @@ use Dancer::Plugin::Auth::Extensible; use App::Netdisco::Web::Plugin; -register_search_tab( { tag => 'vlan', label => 'VLAN' } ); +register_search_tab( { tag => 'vlan', label => 'VLAN', provides_csv => 1 } ); # devices carrying vlan xxx get '/ajax/content/search/vlan' => require_login sub { diff --git a/Netdisco/share/views/device.tt b/Netdisco/share/views/device.tt index ce5c56fc..e70a2de7 100644 --- a/Netdisco/share/views/device.tt +++ b/Netdisco/share/views/device.tt @@ -46,8 +46,8 @@