PacketFence - BTS - PacketFence
View Issue Details
0001177PacketFenceerror-handlingpublic2011-02-04 14:302011-03-03 15:25
obilodeau 
obilodeau 
normalminoralways
closedfixed 
 
2.1.0 
726b4c076e11d43d0bb47f53144ca1e5de30836a
0001177: editing a node that never connected to the network generates an error
In the web UI:

Error: Problems executing 'PFCMD node edit aa:bb:cc:dd:ee:ff computername="test", pid="PF", 
category="", status="unreg", bypass_vlan="1", voip="no", detect_date="2010-01-18 
09:43:37", regdate="2010-04-12 16:20:23", unregdate="", last_arp="", 
last_dhcp="2010-11-09 16:20:34", lastskip="", notes=""'
    /usr/local/pf/bin/flip.pl line 49 (0000001)
    /usr/local/pf/bin/flip.pl line 57 (0000002)


Here's the log trace:

Feb 04 14:19:49 pfcmd(0) INFO: pfcmd calling node_modify for 00:11:5c:d9:c6:0c (main::command_param)

Feb 04 14:19:49 pfcmd(0) INFO: VLAN isolation is enabled and node_modify is part of adjustswitchportvlanreasons 
(main::vlan_reevaluation)
Feb 04 14:19:49 pfcmd(0) INFO: 00:11:5c:d9:c6:0c is currentlog connected at 192.168.1.72 ifIndex 48 in 
VLAN VoIP (main::vlan_reevaluation)
Feb 04 14:19:50 pfcmd(0) INFO: MAC: 00:11:5c:d9:c6:0c is of status unreg; belongs into registration VLAN 
(pf::vlan::getRegistrationVlan)
Feb 04 14:19:50 pfcmd(0) INFO: calling /usr/local/pf/bin/flip.pl for node 00:11:5c:d9:c6:0c (current 
VLAN = VoIP but should be in VLAN 102) (main::vlan_reevaluation)
Feb 04 14:19:50 flip.pl(0) INFO: flip.pl called with 00:11:5c:d9:c6:0c (main::)
Feb 04 14:19:50 flip.pl(0) INFO: switch port for 00:11:5c:d9:c6:0c is 192.168.1.72 ifIndex 48 connection 
type:  (main::)
Feb 04 14:19:50 flip.pl(0) WARN: unknown connection type! Will assume wired and send a reAssignVlan trap 
(main::)
Feb 04 14:19:50 flip.pl(0) ERROR: error sending SNMP trap: INTEGER value not defined (pf::SNMP::PacketFence::sendLocalReAssignVlanTrap)



We can avoid the ERROR and produce a more relevant warning.
No tags attached.
Issue History
2011-02-04 14:30obilodeauNew Issue
2011-02-04 14:30obilodeauStatusnew => assigned
2011-02-04 14:30obilodeauAssigned To => obilodeau
2011-02-04 15:19obilodeaumtn revision => 726b4c076e11d43d0bb47f53144ca1e5de30836a
2011-02-04 15:19obilodeauNote Added: 0001857
2011-02-04 15:19obilodeauStatusassigned => resolved
2011-02-04 15:19obilodeauFixed in Version => 2.0.2
2011-02-04 15:19obilodeauResolutionopen => fixed
2011-03-03 15:20obilodeauFixed in Version2.0.2 => 2.1.0
2011-03-03 15:25obilodeauStatusresolved => closed

Notes
(0001857)
obilodeau   
2011-02-04 15:19   
- warning avoidance in flip.pl
- Added a new UNKNOWN connection type to make it's handling cleaner