From c689ab965cf6eadc777fb54a9709a4f60a7cc4ee Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Thu, 16 Jul 2015 11:41:37 +0200 Subject: [PATCH] MT#13919 Strip dashes in mac during bootstrap Change-Id: Iee4acec4fade699f3ab34542dcd7629ca907fb21 --- lib/NGCP/Panel/Controller/Device.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index 3fbee50d40..6af835691d 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -1408,6 +1408,7 @@ sub dev_field_bootstrap :Chained('/') :PathPart('device/autoprov/bootstrap') :Ar $did =~ s/^([^\=]+)\=0$/$1/; $did = lc $did; $did =~ s/\-[a-z]+$//; + $id =~ s/\-//g; if($did =~ /^[0-9a-f]{12}$/) { $c->log->debug("identified bootstrap path part '$did' as valid device id"); $id = $did;