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

@@ -8,6 +8,10 @@ version 3.09 ()
L3::IBMGbTor L3::IBMGbTor
* [] set_i_untagged combines both set_i_vlan and set_i_pvid in one method * [] set_i_untagged combines both set_i_vlan and set_i_pvid in one method
[ENHANCEMENTS]
* Remove "Switch" from model name in L3::Foundry
[BUG FIXES] [BUG FIXES]
* Modify _xos_i_vlan_membership() in L3::Extreme to only include tagged * Modify _xos_i_vlan_membership() in L3::Extreme to only include tagged

View File

@@ -163,6 +163,7 @@ sub model {
return $id unless defined $model; return $id unless defined $model;
$model =~ s/^sn//; $model =~ s/^sn//;
$model =~ s/Switch//;
return $model; return $model;
} }
@@ -866,7 +867,8 @@ These are methods that return scalar value from SNMP
=item $foundry->model() =item $foundry->model()
Returns model type. Checks $foundry->id() against the F<FOUNDRY-SN-ROOT-MIB> 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() =item $foundry->vendor()