pf::node - module for node management.
pf::node contains the functions necessary to manage node: creation, deletion, registration, expiration, read info, ...
Read the pf.conf configuration file.
TODO: This list is incomlete
Returns information about a given MAC address (node)
It's a simpler and faster version of node_view with fewer fields returned.
Returns information about a given MAC address (node) with the DHCP fingerprint class as a string.
It's a simpler and faster version of node_view_with_fingerprint with fewer fields returned.
Returning lots of information about a given MAC address (node)
DEPRECATED: This has been kept in case of regressions in the new node_view code. This code will disappear in 2013.
Returning lots of information about a given MAC address (node).
New implementation in 3.2.0.
Warning: The connection_type field is translated into its human form before return.
DEPRECATED: This has been kept in case of regressions in the new node_attributes_with_fingerprint code. This code will disappear in 2013.
called by pfmon daemon every 10 maintenance interval (usually each 10 minutes)
Returns a list of MACs which are registered and don't have any open violation. Since trap violations stay open, this has the intended effect of getting all MACs which should be allowed through.
Updates the bandwidth balance of a node and close the violations that use the bandwidth trigger.
Sub invoked each time a MAC as activity (eiher from dhcp or traps).
in: mac address
out: void
Is given MAC a VoIP Device or not?
in: mac address
Is given MAC registered or not?
in: mac address
expects category_id or category name in the form of category => 'name' or category_id => id
returns category_id, undef if no category was required or 0 if no category is found (which is a problem)
Performs the enforcement of the maximum number of registered nodes allowed per user for a specific role.
The MAC address is currently not used.
Return the last mac that has been register May be sometimes usefull for custom
Inverse inc. <info@inverse.ca>
Minor parts of this file may have been contributed. See CREDITS.
Copyright (C) 2005-2015 Inverse inc.
Copyright (C) 2005 Kevin Amorin
Copyright (C) 2005 David LaPorte
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.