option to renumber to existing interface address

This commit is contained in:
Oliver Gorwits
2022-07-26 22:32:58 +01:00
parent b52b24dd9b
commit 5ecb09dcb7
3 changed files with 14 additions and 4 deletions

View File

@@ -30,9 +30,14 @@ ajax '/ajax/content/device/details' => require_login sub {
= schema('netdisco')->resultset('DevicePower')
->search( { 'me.ip' => $device->ip } )->with_poestats->hri->all;
my @interfaces
= schema('netdisco')->resultset('Device')
->find($device->ip)
->device_ips->hri->all;
content_type('text/html');
template 'ajax/device/details.tt', {
d => $results[0], p => \@power
d => $results[0], p => \@power, interfaces => \@interfaces,
}, { layout => undef };
};