After posting this problem I upgraded to 1.9.0 for the new node category 
feature (VLAN-assignment-by-category) and now see different behavior when 
editing (using the GUI) a node's VLAN field which in snapshot 1.9.0 is now 
called "Alternate dest. VLAN".  Originally when editing the snapshot 1.8.8 node 
VLAN field of a single registered node, both registered nodes (that's all I got 
in testing now!) were updated (I assume all registered nodes were actually 
updated.)  I just edited the "Alternate dest. VLAN" of this same node under 
1.9.0 and my only other registered node did NOT get the change as I assume 
would have mistakenly happened under 1.8.8.

Regarding my original post below about my apparent not understanding of how 
custom_getCorrectVlan is suppose to work, I see this subroutine has been moved 
out of custom.pm and into vlan.pm, in addition it's parameters have changed 
according the 1.9.0 UPGRADE documentation.  I also see the example code for 
this subroutine in vlan.pm utilizes the new 1.9.0 node category feature.  So, 
bottom line, my posting below is no longer valid.  I just need to figure out 
the example code and give it a try.

Thanks everyone!
________________________________________
From: Steve Wittstruck
Sent: Wednesday, June 09, 2010 2:05 PM
To: Steve Wittstruck
Cc: [email protected]
Subject: Re: [Packetfence-users] Multiple Normal VLANs on same switch

p.s. (my apology for the double post), I should have also explained below that 
the VLAN defined in the registered node's VLAN field was not put on the node's 
switch port, the 'normal' VLAN was assigned.

On Jun 9, 2010, at 1:48 PM, Stephen Wittstruck wrote:

Remon, et al:

I'm apparently not following things here.

When I used PF's GUI to change the VLAN field of a registered node, the VLAN 
field of my only other registered node is also changed (I only have 2 
registered nodes in my test lab)?

Isn't this discussion, and Remon's script below, about having PF assign a 
node's VLAN per the VLAN field for each node?

Thanks!
Steve Wittstruck
Colorado School of Mines

On Apr 29, 2010, at 7:09 AM, Remon Varkevisser wrote:

Yes you can, but you have to use the custom.pm and set the vlan per node. 
Here's a script we use in /usr/local/pf/lib/pf/vlan/custom.pm

=cut
sub custom_getCorrectVlan {
my ( $this, $switch_ip, $ifIndex, $mac, $status, $vlan, $pid ) = @_;
my $switchFactory = new pf::SwitchFactory(-configFile => 
"/usr/local/pf/conf/switches.conf");
my %Config = %{$switchFactory->{_config}};

return ($vlan || $Config{'default'}{'normalVlan'});
}





Greets,
Remon Varkevisser



________________________________

  Van: Mark Wood [mailto:[email protected]]
Verzonden: donderdag 29 april 2010 14:54
Aan: 
[email protected]<mailto:[email protected]>
Onderwerp: [Packetfence-users] Multiple Normal VLANs on same switch

Hi, is it possible to define multiple normal VLANs for the same switch? I've 
been reading the documentation and it seems to be possible to have a different 
normal VLAN per switch using the switches.conf file, but can I have more than a 
single normal VLAN on the same switch?

e.g. in normal operation, ports 1 to 8 need to be in the Engineering VLAN and 
ports 9 to 24 need to be in the Finance VLAN.

Many thanks for any help
Mark

________________________________
Get a new e-mail account with Hotmail - Free. Sign-up 
now.<http://clk.atdmt.com/UKM/go/197222280/direct/01/> 
------------------------------------------------------------------------------
_______________________________________________
Packetfence-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to