- $self->ut_numbern('nasnum')
- || $self->ut_text('nas')
- || $self->ut_ip('nasip')
- || $self->ut_domain('nasfqdn')
- || $self->ut_numbern('last')
- || $self->SUPER::check
- ;
+ my $error =
+ $self->ut_numbern('nasnum')
+ || $self->ut_text('nasname')
+ || $self->ut_textn('shortname')
+ || $self->ut_text('type')
+ || $self->ut_numbern('ports')
+ || $self->ut_text('secret')
+ || $self->ut_textn('server')
+ || $self->ut_textn('community')
+ || $self->ut_text('description')
+ || $self->ut_foreign_keyn('svcnum', 'svc_broadband', 'svcnum')
+ ;
+ return $error if $error;
+
+ $self->SUPER::check;