Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compare ieee mac against 6 iterations #611

Merged
merged 4 commits into from Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/App/Netdisco/Web/Plugin/Search/Node.pm
Expand Up @@ -26,7 +26,7 @@ ajax '/ajax/content/search/node' => require_login sub {
my $mac = NetAddr::MAC->new(mac => $node);
undef $mac if
($mac and $mac->as_ieee
and (($mac->as_ieee eq '00:00:00:00')
and (($mac->as_ieee eq '00:00:00:00:00:00')
or ($mac->as_ieee !~ m/$RE{net}{MAC}/)));

my @active = (param('archived') ? () : (-bool => 'active'));
Expand Down
2 changes: 1 addition & 1 deletion lib/App/Netdisco/Web/Search.pm
Expand Up @@ -43,7 +43,7 @@ get '/search' => require_login sub {

undef $mac if
($mac and $mac->as_ieee
and (($mac->as_ieee eq '00:00:00:00')
and (($mac->as_ieee eq '00:00:00:00:00:00')
or ($mac->as_ieee !~ m/$RE{net}{MAC}/)));

if ($nd and $nd->count) {
Expand Down