Remove "Switch" from model name in L3::Foundry

This commit is contained in:
Eric A. Miller
2013-11-08 19:16:42 -05:00
parent 28bbe0ee19
commit 24f8a8fdba
2 changed files with 7 additions and 1 deletions

View File

@@ -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()