diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Ports.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Ports.pm index 46d0e652..15a63233 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Ports.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Device/Ports.pm @@ -63,7 +63,12 @@ get '/ajax/content/device/ports' => require_login sub { if (($prefer eq 'port') or not $prefer and $set->search({'me.port' => $f})->count) { - $set = $set->search({'me.port' => $f}); + $set = $set->search({ + -or => [ + 'me.port' => $f, + 'me.slave_of' => $f, + ], + }); } else { $set = $set->search({'me.name' => $f});