device_ignore table to track devices to skip in polling

This commit is contained in:
Oliver Gorwits
2017-05-21 14:52:33 +01:00
parent 47a5f40efe
commit ed193356f8
6 changed files with 65 additions and 8 deletions

View File

@@ -114,4 +114,17 @@ between the date stamp and time stamp. That is:
sub finished_stamp { return (shift)->get_column('finished_stamp') }
=head1 RELATIONSHIPS
=head2 ignored
Retuns the set of C<device_ignore> entries which may apply to this job. They
match the device IP and job action, and may refer to one or more backends.
=cut
__PACKAGE__->has_many( ignored => 'App::Netdisco::DB::Result::DeviceIgnore',
{ 'foreign.device' => 'self.device', 'foreign.action' => 'self.action' },
);
1;