X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fport.pm;h=c26ca85d4c72b18bb8a4a0a0ee3afc8ae44577fa;hp=13455ca894879fe2083189e79a0e08e432225474;hb=a36e0f8a0f69349dafaa16d1d2d57dfb6e5dbc85;hpb=e43ee826fe789a3cd046537576e29b990fe70356 diff --git a/FS/FS/port.pm b/FS/FS/port.pm index 13455ca89..c26ca85d4 100644 --- a/FS/FS/port.pm +++ b/FS/FS/port.pm @@ -52,7 +52,7 @@ from FS::Record. The following fields are currently supported: =item new HASHREF -Creates a new port. To add the example to the database, see L<"insert">. +Creates a new port. To add the port to the database, see L<"insert">. Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the I method. @@ -91,7 +91,7 @@ returns the error, otherwise returns false. =item check -Checks all fields to make sure this is a valid example. If there is +Checks all fields to make sure this is a valid port. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods. @@ -113,7 +113,7 @@ sub check { unless $self->ip || $self->nasport; return "Unknown nasnum" unless qsearchs('nas', { 'nasnum' => $self->nasnum } ); - ''; #no error + $self->SUPER::check; } =item session @@ -131,14 +131,8 @@ sub session { =back -=head1 VERSION - -$Id: port.pm,v 1.5 2001-02-14 04:33:06 ivan Exp $ - =head1 BUGS -The author forgot to customize this manpage. - The session method won't deal well if you have multiple open sessions on a port, for example if your RADIUS server drops B records. Suggestions for how to deal with this sort of lossage welcome; should we close the session