Notes |
|
|
Thanks for the report! Targeted for 2.0.1.
As for the 'only gets updated after packetfence gets restarted', this is by current design. Config files are parsed and merged in the class tables (class, trigger, ...) only on the reload of a major packetfence daemon.
I know it's a hassle and it shouldn't be that way but it's not a bug. Please open an issue with feature severity and explain the behavior you would like to have. |
|
|
(0001985)
|
fgaudreault
|
2011-03-23 17:03
(edited on: 2011-03-23 17:26) |
|
Here is a patch I made to support those formats. Apply on vanilla 2.1.0 :
### (only numbers), we consider that it's in seconds
###s (numbers + trailing s), seconds
###m (numbers + trailing m), minutes
###h (numbers + trailing h), hours
###w (numbers + trailing m), months
###y (numbers + trailing y), years
If we have an unsupported grace timer (ie. 111patate), PF will break at start time.
Let me know what you think.
NB. Theres a bunch of code in lib/pf/pfcmd/checkup.pm that will overlap the patch from ticket 000992
|
|
|
(0001986)
|
fgaudreault
|
2011-03-23 17:27
|
|
Uploaded a new patch. I now use our global normalize_time sub instead of my own stuff. |
|
|
|
fix committed. Note that I have *not* committed the checkup portion because an empty grace would have generated an error. |
|