Remove "Switch" from model name in L3::Foundry
This commit is contained in:
@@ -163,6 +163,7 @@ sub model {
|
||||
return $id unless defined $model;
|
||||
|
||||
$model =~ s/^sn//;
|
||||
$model =~ s/Switch//;
|
||||
|
||||
return $model;
|
||||
}
|
||||
@@ -866,7 +867,8 @@ These are methods that return scalar value from SNMP
|
||||
=item $foundry->model()
|
||||
|
||||
Returns model type. Checks $foundry->id() against the F<FOUNDRY-SN-ROOT-MIB>
|
||||
and removes 'C<sn>'. EdgeIron models determined through F<ENTITY-MIB>.
|
||||
and removes 'C<sn>' and 'C<Switch>'. EdgeIron models determined
|
||||
through F<ENTITY-MIB>.
|
||||
|
||||
=item $foundry->vendor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user