blib/lib/App/Netdisco/DB/Result/L3DomainMember.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package App::Netdisco::DB::Result::L3DomainMember;
3  
4 use strict;
5 use warnings;
6  
7 use base 'App::Netdisco::DB::Result';
8 __PACKAGE__->table("l3_domain_member");
9 __PACKAGE__->add_columns(
10 "ip",
11 { data_type => "inet", is_nullable => 0 },
12 "vrf",
13 { data_type => "text", is_nullable => 0 },
14 "domain_id",
15 { data_type => "integer", is_nullable => 0 },
16 "reason",
17 { data_type => "text", is_nullable => 0 },
18 "source",
19 { data_type => "text", is_nullable => 0 },
20 );
21 __PACKAGE__->set_primary_key("ip", "vrf");
22  
23 =head1 NAME
24  
25 App::Netdisco::DB::Result::L3DomainMember
26  
27 =head1 DESCRIPTION
28  
29 Places one VRF instance of one device in an L3 domain. C<source> is
30 C<inferred> or C<manual>.
31  
32 =head1 RELATIONSHIPS
33  
34 =head2 device
35  
36 Returns the entry from the C<device> table holding this instance.
37  
38 =cut
39  
40 __PACKAGE__->belongs_to( device => 'App::Netdisco::DB::Result::Device', 'ip' );
41  
42 =head2 domain
43  
44 Returns the L3 domain this instance belongs to.
45  
46 =cut
47  
48 __PACKAGE__->belongs_to( domain => 'App::Netdisco::DB::Result::L3Domain',
49 { 'foreign.id' => 'self.domain_id' } );
50  
51 1;