Fix/Dlink DES3526

Improved support fixes bugs with recent firmwares.

Should fix 1766: http://packetfence.org/bugs/view.php?id=1766
Can you merge you changes with this pull request please?


On Fri, Jul 25, 2014 at 12:45 PM, Julien Semaan <notifications@github.com>
wrote:

> In lib/pf/Switch/Dlink/DES_3526.pm:
>
> > +            $ifIndex = hex $ifIndex;
> > +            $trapHashRef->{'trapIfIndex'} = $ifIndex;
> > +
> > +            $trapHashRef->{'trapVlan'} = $this->getVlan( $ifIndex );
> > +            next PARSETRAP;
> > +        }
> > +
> > +
> > +        # linkup/linkdown
> > +        if ( !defined $ifIndex && $field =~ $linkstatus_re ) {
> > +            ( $ifIndex, $op ) = ( $1, $2 );
> > +            $trapHashRef->{'trapType'} = 'mac';
> > +            $trapHashRef->{'trapIfIndex'} = $ifIndex;
> > +
> > +            if ( $op == 1 ) {
> > +                $trapHashRef->{'trapOperation'} = 'up';
>
> trapType has to be used. same for the other up/down
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/inverse-inc/packetfence/pull/201/files#r15411126>.
>