PacketFence - BTS - PacketFence
View Issue Details
0001091PacketFenceerror-handlingpublic2010-10-20 09:262015-02-13 15:39
obilodeau 
 
normalminoralways
closedopen 
 
 
0001091: Warnings on up traps trying to verify if MAC is a floating device
Here's the error:

Oct 19 15:29:29 pfsetvlan(3) INFO: up trap received on 192.168.249.116 ifIndex 24 (main::handleTrap)

Oct 19 15:29:29 pfsetvlan(3) INFO: setting 192.168.249.116 port 24 to MAC detection VLAN (main::handleTrap)

Oct 19 15:29:29 pfsetvlan(3) INFO: Should set 192.168.249.116 ifIndex 24 to VLAN 4 but it is already 
in this VLAN -> Do nothing (pf::SNMP::setVlan)
Use of uninitialized value in exists at /usr/local/pf/sbin/pfsetvlan line 1412 (0000001)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in.  Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program.  For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.



Here's the line:
if ($valid_locationlog_entry && (exists($ConfigFloatingDevices{$locationlog_switchport[0]->{mac}}))) {

We need to reproduce and test if:
- Is it $ConfigFloatingDevices that is empty?
- using exists instead of defined to verify $ConfigFloatingDevices
- or ->{mac} reference does necessarily exists for a node configured to rely on linkup/linkdown
No tags attached.
Issue History
2010-10-20 09:26obilodeauNew Issue
2010-11-19 14:24obilodeauTarget Version1.9.2 => 2.0.0
2011-01-18 09:47obilodeauTarget Version2.0.0 => 2.0.1
2011-01-26 15:30obilodeauTarget Version2.0.1 => 2.0.2
2011-03-03 15:19obilodeauTarget Version2.0.2 => +1
2015-02-13 15:39lmunroNote Added: 0003778
2015-02-13 15:39lmunroStatusnew => closed

Notes
(0003778)
lmunro   
2015-02-13 15:39   
Closing old bugs.
If we haven't fixed them in four years they are either not a bug, no longer relevant or not worth it.