From 6f37def5793457ebe6e46f84df8ed52e2a96606e Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 17 Aug 2022 06:38:23 -0400 Subject: [PATCH] extended vlan ranges --- lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm b/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm index 3f11371b..369a8746 100644 --- a/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm +++ b/lib/App/Netdisco/Web/Plugin/Report/PortVLANMismatch.pm @@ -37,8 +37,8 @@ get '/ajax/content/report/portvlanmismatch' => require_login sub { map { push @{ $new{$_} }, ( (2 == scalar @{ $cmp{$vlan} }) ? $vlan : "$vlan" ) } @{ $cmp{$vlan} }; } - $res->{left_vlans} = join ', ', sort_by { (my $a = $_) =~ s/\D//g; sprintf "%04d", $a } @{ $new{0} }; - $res->{right_vlans} = join ', ', sort_by { (my $a = $_) =~ s/\D//g; sprintf "%04d", $a } @{ $new{1} }; + $res->{left_vlans} = join ', ', sort_by { (my $a = $_) =~ s/\D//g; sprintf "%05d", $a } @{ $new{0} }; + $res->{right_vlans} = join ', ', sort_by { (my $a = $_) =~ s/\D//g; sprintf "%05d", $a } @{ $new{1} }; } if (request->is_ajax) {