Correct port indexing of VSP 4K in L3::Passport

This commit is contained in:
Eric A. Miller
2015-06-11 18:23:23 -04:00
parent e7b06a0b06
commit 036cb4556e
2 changed files with 7 additions and 0 deletions

View File

@@ -8,6 +8,10 @@ version 3.28 (TBD)
* Modified generic Layer3::Cisco class: use community based indexing if
the device returns a value for vtpVersion
[BUG FIXES]
* Correct port indexing of VSP 4K in L3::Passport
version 3.27 (2015-05-05)
[ENHANCEMENTS]

View File

@@ -573,6 +573,9 @@ sub index_factor {
# Older Accelar models use base 16 instead of 64
$index_factor = 16
if ( defined $model and $model =~ /^1[012][05]0/ );
# Newer VSP 4K uses 192?
$index_factor = 192
if ( defined $model and $model =~ /^VSP4/ );
return $index_factor;
}