> >>> I've upgraded our 2.1.0 setup to 2.2.0, since then I've noticed that
> >>> the getNormalVlan in custom.pm isn't being called any more. I've put
> >>> logger statements in and they don't appear when a vlan is assigned.
> >>> The logger statements in vlan.pm do appear in packetfence.log.
> >>
> >> I'm surprised to be honest. I've seen upgrades with pf::vlan::custom
> >> modules work.
> >>
> > I may be unfairly blaming the upgrade. Looking in my logs, I can't see it
> actually working before on this system.
> >
>
> If it never worked, let's take another direction.
>
> In lib/pf/vlan.pm's getNormalVlan, add:
>
> $logger->info("NOT-CUSTOM");
>
> and in lib/pf/vlan/custom.pm's getNormalVlan, add:
>
> $logger->info("CUSTOM");
>
> Restart packetfence, then do another test and check what path did the code
> take (you'll see in logs/packetfence.log).
>
> Also, is this a fairly recent install (IOW you first intalled after
> 1.8.3) or is it a setup that has been ugpraded since the dawn of times?
Sorry, I should have posted an update before now.
This was freshly installed as 2.1.0
I was trying to be clever and use Perl's switch module rather than repeated if
statements. I had the logger statements in, and could see it calling the
not-custom version when I was using switch. Having converted it to a dozen if
statements to cover all my categories, it goes through the custom.pm path as
I'd expect it to.
Thanks.
--
James Turner
IT Systems Administrator
Wadham College
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users