WIP. Qtech - more wide model mask for group enterprises.27514.1.3*

This commit is contained in:
Andrey Pazychev
2020-05-20 16:53:05 +03:00
parent 02f667a05b
commit e756091565

View File

@@ -38,9 +38,10 @@ sub main {
#no strict 'refs';
my $obj = shift;
my $response = undef; my $serial = undef; my $model = undef; my $hw = undef; my $os_ver = undef; my $brom = undef;
if ( $obj->id() =~ /27514\.1\.3\.(13$)|(25\.2$)/ ) {
if ( $obj->id() =~ /27514\.1\.3\./ ) {
#QSW-2900 enterprises.27514.1.3.25.2
#QSW-2900-24T enterprises.27514.1.3.13
#QSW-3900 enterprises.27514.1.3.26.2 and other...
$response = $obj->session()->get('enterprises.27514.1.2.1.1.2.2.0');
$response =~ s/QTECH\s+//;
($model, $os_ver) = $response =~ /([\w,\d,-]+)\s([\w,\d]+)$/;