From 4afbd37cbd141b4fbcd05ecb4fa9bbb8b9882be8 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Mon, 12 Feb 2018 22:15:38 +0000 Subject: [PATCH] fix #222 #238 #239 handle BayStack switches with port index 128 (zoeloe) --- Changes | 6 ++++++ lib/SNMP/Info/Layer2/Baystack.pm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ec0ba7b8..37362d1b 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +version 3.45 () + + [BUG FIXES] + + * #222 #238 #239 handle BayStack switches with port index 128 (zoeloe) + version 3.44 (2018-02-12) [ENHANCEMENTS] diff --git a/lib/SNMP/Info/Layer2/Baystack.pm b/lib/SNMP/Info/Layer2/Baystack.pm index 628bc573..c212cf26 100644 --- a/lib/SNMP/Info/Layer2/Baystack.pm +++ b/lib/SNMP/Info/Layer2/Baystack.pm @@ -229,7 +229,7 @@ sub index_factor { if ( ( $model =~ /(470)/ ) or ( $os =~ m/(boss|bes)/ ) and ( $op_mode eq 'pure' ) ); $index_factor = 128 - if ( ( $model =~ /(5[56]\d\d)|VSP/ ) + if ( ( $model =~ /(5[56]\d\d)|VSP|4950|59100/ ) and ( $os_ver >= 6 ) ); return $index_factor;