Squashed commit of the following:
commit 9be20cd3e24b401d5bfeb2bcb40d61a7b33ffe2c Author: Eric A. Miller <emiller@cpan.org> Date: Sun Jan 19 10:13:41 2014 -0500 Re-organize part 2 commit 058fc6e000a27b8ffadf5857078e0ab1569d3fa2 Author: Eric A. Miller <emiller@cpan.org> Date: Sun Jan 19 10:08:31 2014 -0500 Re-organize commit 04f4602d6cf06f917bd4f19db737f877a46fd28e Author: Eric A. Miller <emiller@cpan.org> Date: Sun Jan 19 10:04:09 2014 -0500 Add MLT agg_ports() support for Avaya commit 2cdc3aed77f551e3c6d04f4cfe390a876010ebcb Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Jan 12 14:24:38 2014 +0000 implement LAG support for Foundry commit 7465816b53981f3211bdeb5a7a414d5a4e65c79f Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Jan 12 13:15:13 2014 +0000 implement LAG support for Arista commit 67e8f13f635f4fb450ab5df6e9145830ef72cf7b Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Jan 12 12:59:09 2014 +0000 update gitignore to ignore SNMP dir commit df4ca0eb44a4f0e5aa114630f0d22b5c9d7861f3 Author: Oliver Gorwits <oliver@cpan.org> Date: Sun Jan 12 12:49:53 2014 +0000 implement LAG support for Cisco
This commit is contained in:
@@ -583,6 +583,20 @@ sub bp_index {
|
||||
foreach my $iid ( keys %$if_index ) {
|
||||
$bp_index{$iid} = $iid;
|
||||
}
|
||||
|
||||
# If we have MLT's map them to the designated port
|
||||
my $trunks = $passport->rc_mlt_index;
|
||||
my $dps = $passport->rc_mlt_dp || {};
|
||||
|
||||
if ( ref {} eq ref $trunks and scalar keys %$trunks ) {
|
||||
foreach my $m ( keys %$trunks ) {
|
||||
my $m_idx = $trunks->{$m};
|
||||
next unless $m_idx;
|
||||
my $i_idx = $dps->{$m} ? $dps->{$m} : $m_idx;
|
||||
$bp_index{$m_idx} = $i_idx;
|
||||
}
|
||||
}
|
||||
|
||||
return \%bp_index;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user