I reply to myself: sub setVlan { my ($this, $ifIndex, $newVlan, $switch_locker_ref, $presentPCMac) = @_; my $logger = Log::Log4perl::get_logger( ref($this) );
if ( !$this->isProductionMode() ) { # write in database the entry locationlog_synchronize($this->{_ip}, $ifIndex, $newVlan, $presentPCMac, $NO_VOIP, $WIRED_SNMP_TRAPS); $logger->warn( "Should set ifIndex $ifIndex to VLAN $newVlan but the switch is not in production -> Do nothing" ); return 1; } .... Pasqu ----- Messaggio originale ----- > Hi all, I'm new to PacketFence and I'm trying to setup a demo lab > here in my office using Cisco equipment. > I saw that the locationlog for switch,port and vlan is updated for a > mac only when the switch is in production mode but I think is useful > also in registration mode to know where a mac/host is placed. > > Do you think I can make this change? If yes which is the interested > file/code part? > > Thanks > > Pasqu. > -- > -- > Pasqualotto Enrico > cell. +39 3473292620 > skype://epasqualotto :: http://www.linkedin.com/in/epasqualotto > http://www.netspin.it :: e.pasqualo...@netspin.it > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > PacketFence-devel mailing list > PacketFence-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/packetfence-devel > -- -- Pasqualotto Enrico cell. +39 3473292620 skype://epasqualotto :: http://www.linkedin.com/in/epasqualotto http://www.netspin.it :: e.pasqualo...@netspin.it ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ PacketFence-devel mailing list PacketFence-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/packetfence-devel