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

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 21 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::DevicePortProperties;
3  
4 use strict;
5 use warnings;
6  
7 use base 'App::Netdisco::DB::Result';
8 __PACKAGE__->table("device_port_properties");
9 __PACKAGE__->add_columns(
10 "ip",
11 { data_type => "inet", is_nullable => 0 },
12 "port",
13 { data_type => "text", is_nullable => 0 },
14 "error_disable_cause",
15 { data_type => "text", is_nullable => 1 },
16 "remote_is_discoverable",
17 { data_type => "boolean", default_value => \"true", is_nullable => 1 },
18 "remote_is_wap",
19 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
20 "remote_is_phone",
21 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
22 "remote_vendor",
23 { data_type => "text", is_nullable => 1 },
24 "remote_model",
25 { data_type => "text", is_nullable => 1 },
26 "remote_os_ver",
27 { data_type => "text", is_nullable => 1 },
28 "remote_serial",
29 { data_type => "text", is_nullable => 1 },
30 "remote_dns",
31 { data_type => "text", is_nullable => 1 },
32 "raw_speed",
33 { data_type => "bigint", default_value => 0, is_nullable => 1 },
34 "faststart",
35 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
36 "ifindex",
37 { data_type => "bigint", is_nullable => 1 },
38 "pae_authconfig_state",
39 { data_type => "text", is_nullable => 1 },
40 "pae_authconfig_port_control",
41 { data_type => "text", is_nullable => 1 },
42 "pae_authconfig_port_status",
43 { data_type => "text", is_nullable => 1 },
44 "pae_authsess_user",
45 { data_type => "text", is_nullable => 1 },
46 "pae_authsess_mab",
47 { data_type => "text", is_nullable => 1 },
48 "pae_last_eapol_frame_source",
49 { data_type => "text", is_nullable => 1 },
50 "pae_is_authenticator",
51 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
52 "pae_is_supplicant",
53 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
54  
55 );
56 __PACKAGE__->set_primary_key("port", "ip");
57  
58  
59 =head1 RELATIONSHIPS
60  
61 =head2 port
62  
63 Returns the entry from the C<port> table for which this Power entry applies.
64  
65 =cut
66  
67 __PACKAGE__->belongs_to( port => 'App::Netdisco::DB::Result::DevicePort', {
68 'foreign.ip' => 'self.ip', 'foreign.port' => 'self.port',
69 });
70  
71 1;