On Sep 12, 2013, at 8:02 AM, Alberto Losada <[email protected]> wrote:
> Hi all,
>
> I am seeing this kind of error from time to time which makes packetfence not
> able to set the correct vlan of an already registered device into the switch:
>
> Sep 12 13:02:43 httpd.admin(0) ERROR: invalid MAC: (pf::util::valid_mac)
The problem is here.. $mac is invalid because it's nonexistent..
> Perl code shows:
>
> $mac = clean_mac($mac);
> if ( $mac =~ /^ff:ff:ff:ff:ff:ff$/
> || $mac =~ /^00:00:00:00:00:00$/
> || $mac !~ /^([0-9a-f]{2}(:|$)){6}$/i )
> {
> $logger->error("invalid MAC: $mac");
This logger line is what outputs the above error. Notice that $mac isn't shown
in the error. I suspect that whatever clean_mac() does, it's returning an
empty value.
I'm not in a position to look at the code right this moment, but I'd start
there.
- Friz
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users