Clean up more model names in L2::Baystack
This commit is contained in:
@@ -26,6 +26,7 @@ version 3.08 ()
|
|||||||
summarize more standard class methods
|
summarize more standard class methods
|
||||||
* On EOS, the LLDP port ID is a dot1d port
|
* On EOS, the LLDP port ID is a dot1d port
|
||||||
* Use LLDP in Layer3::Aruba, for switches
|
* Use LLDP in Layer3::Aruba, for switches
|
||||||
|
* Clean up more model names in L2::Baystack
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ sub model {
|
|||||||
$model =~ s/^sreg-//;
|
$model =~ s/^sreg-//;
|
||||||
# Strip ES/ERS/BayStack etc. from those families
|
# Strip ES/ERS/BayStack etc. from those families
|
||||||
$model =~ s/^(E(R)?S|BayStack|Ethernet(Routing)?Switch)-?//;
|
$model =~ s/^(E(R)?S|BayStack|Ethernet(Routing)?Switch)-?//;
|
||||||
|
$model =~ s/-ethSwitchNMM//;
|
||||||
|
|
||||||
return $model;
|
return $model;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user