WIP. Qtech - more wide model mask for group enterprises.27514.1.3*
This commit is contained in:
@@ -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]+)$/;
|
||||
|
||||
Reference in New Issue
Block a user