#271 update os_ver for Alcatel-Lucent (stromsoe)

This commit is contained in:
Oliver Gorwits
2018-11-21 10:47:47 +00:00
parent 94ab114cd3
commit 6405ebfc3e

View File

@@ -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: