basic implementation, rancid graph and nodemonitor missing

This commit is contained in:
Oliver Gorwits
2019-06-13 07:02:09 +01:00
parent 039527c26a
commit fed14bd810
6 changed files with 42 additions and 15 deletions

View File

@@ -166,11 +166,13 @@ ajax '/ajax/content/search/node' => require_login sub {
->search_by_ip({ip => $ip, @active, @times});
}
else {
$likeval .= setting('domain_suffix')
if index($node, setting('domain_suffix')) == -1;
$set = schema('netdisco')->resultset('NodeIp')
->search_by_dns({dns => $likeval, @active, @times});
->search_by_dns({
dns => $likeval,
suffix => setting('domain_suffix'),
@active,
@times,
});
# if the user selects Vendor search opt, then
# we'll try the OUI company name as a fallback