% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::router - Object methods for router records
use FS::router;
$record = new FS::router \%hash;
$record = new FS::router { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::router record describes a broadband router, such as a DSLAM or a wireless access point. FS::router inherits from FS::Record. The following fields are currently supported:
Create a new record. To add the record to the database, see "insert".
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
If the pseudo-field 'blocknum' is set to an FS::addr_block number, then that address block will be assigned to this router. Currently only one block can be assigned this way.
Replaces OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.
Checks all fields to make sure this is a valid record. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Deallocate all address blocks from this router and delete it.
Returns a list of FS::addr_block objects (address blocks) associated with this object.
Returns a list of address blocks on which auto-assignment of IP addresses is enabled.
Returns a list of FS::part_svc_router objects associated with this object. This is unlikely to be useful for any purpose other than retrieving the associated FS::part_svc objects. See below.
Returns a list of FS::part_svc objects associated with this object.
Returns the agent associated with this router, if any.
Returns the cust_svc associated with this router, if any. This should be the service that provides connectivity to the router, not any service connected through the router.
FS::svc_broadband, FS::router, FS::addr_block, FS::part_svc, schema.html from the base documentation.