#271 update os_ver for Alcatel-Lucent (stromsoe)
This commit is contained in:
@@ -112,15 +112,13 @@ sub vendor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub os_ver {
|
sub os_ver {
|
||||||
my $alu = shift;
|
my $alu = shift;
|
||||||
|
|
||||||
my $descr = $alu->description();
|
my $descr = $alu->description();
|
||||||
if ( $descr =~ m/^(\S+)/ ) {
|
return $1 if $descr =~ m/\b(\d[\.\d]+R\d+) (?:GA|Service Release), /;
|
||||||
return $1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# No clue what this will try but hey
|
# No clue what this will try but hey
|
||||||
return $alu->SUPER::os_ver();
|
return $alu->SUPER::os_ver();
|
||||||
}
|
}
|
||||||
|
|
||||||
# ps1_type, ps1_status, ps2_type, ps2_status:
|
# ps1_type, ps1_status, ps2_type, ps2_status:
|
||||||
|
|||||||
Reference in New Issue
Block a user