TT#62952 Strip ALE autoprov pre/suffix in bootstrap

ALE terminals request config.$mac.xml, also strip them in the
bootstrap phase to determine the $mac.

Change-Id: I1a34ce5b0f0ffa4fd5f819b276344bff43a53d64
changes/75/31775/1
Andreas Granig 6 years ago
parent 29cab28924
commit 01cb479b78

@ -1479,8 +1479,8 @@ sub dev_field_bootstrap :Chained('/') :PathPart('device/autoprov/bootstrap') :Ar
foreach my $did (@id) {
$c->log->debug("checking bootstrap path part '$did'");
$did =~ s/\.cfg$//;
$did =~ s/\.ini$//;
$did =~ s/\.(cfg|ini|xml)$//;
$did =~ s/^config\.//;
$did =~ s/^([^\=]+)\=0$/$1/;
$did = lc $did;
$did =~ s/\-[a-z]+$//;

Loading…
Cancel
Save