Notes |
|
(0000757)
|
rbalzard
|
2008-07-18 15:07
|
|
In the first version of this function, the intelligence is going to be very basic:
check if any PF service is running ("pfcmd control pf status")
if yes
tell the user to do "service PacketFence stop"
quit
end if
for each switch in production mode
read defaultVLAN (new parameter in switches.conf for every switch)
for each non uplink port
- setVlan to defaultVLAN
- shut the port
- no shut the port (this way, computer renew is IP)
end for
end for |
|
|
(0000759)
|
rbalzard
|
2008-07-18 15:21
|
|
In the next version:
if there is a connection to database
for each non uplink port
if a MAC is connected:
determine in which VLAN should be the port based on the MAC status
if port is already in this VLAN
do nothing
else
set port to VLAN
shut the port
no shut the port
end if
else
setport to defaultVLAN
end if
end for
else
... |
|
|
(0000763)
|
user4
|
2008-07-21 11:50
|
|
First version availalbe in mtn revision a773c6035eae542ae495c7ff4c0185139bfe06f5 |
|
|
(0000764)
|
user4
|
2008-07-21 11:50
|
|
The more elaborate version will go into PF 1.8 |
|
|
(0000765)
|
user4
|
2008-07-21 11:51
|
|
a773c6035eae542ae495c7ff4c0185139bfe06f5 |
|