blib/lib/RackTables/Schema/Result/VLANSTRule.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/VLANIPv6.pm ↑ Summary blib/lib/RackTables/Schema/Result/VLANSwitch.pm »
1 package RackTables::Schema::Result::VLANSTRule;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::VLANSTRule
18  
19 =cut
20  
21 1 __PACKAGE__->table("VLANSTRule");
22  
23 =head1 ACCESSORS
24  
25 =head2 vst_id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_foreign_key: 1
30 is_nullable: 0
31  
32 =head2 rule_no
33  
34 data_type: 'integer'
35 extra: {unsigned => 1}
36 is_nullable: 0
37  
38 =head2 port_pcre
39  
40 data_type: 'char'
41 is_nullable: 0
42 size: 255
43  
44 =head2 port_role
45  
46 data_type: 'enum'
47 default_value: 'none'
48 extra: {list => ["access","trunk","anymode","uplink","downlink","none"]}
49 is_nullable: 0
50  
51 =head2 wrt_vlans
52  
53 data_type: 'char'
54 is_nullable: 1
55 size: 255
56  
57 =head2 description
58  
59 data_type: 'char'
60 is_nullable: 1
61 size: 255
62  
63 =cut
64  
65 1 __PACKAGE__->add_columns(
66 "vst_id",
67 {
68 data_type => "integer",
69 extra => { unsigned => 1 },
70 is_foreign_key => 1,
71 is_nullable => 0,
72 },
73 "rule_no",
74 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
75 "port_pcre",
76 { data_type => "char", is_nullable => 0, size => 255 },
77 "port_role",
78 {
79 data_type => "enum",
80 default_value => "none",
81 extra => {
82 list => ["access", "trunk", "anymode", "uplink", "downlink", "none"],
83 },
84 is_nullable => 0,
85 },
86 "wrt_vlans",
87 { data_type => "char", is_nullable => 1, size => 255 },
88 "description",
89 { data_type => "char", is_nullable => 1, size => 255 },
90 );
91 1 __PACKAGE__->add_unique_constraint("vst-rule", ["vst_id", "rule_no"]);
92  
93 =head1 RELATIONS
94  
95 =head2 vst
96  
97 Type: belongs_to
98  
99 Related object: L<RackTables::Schema::Result::VLANSwitchTemplate>
100  
101 =cut
102  
103 1 __PACKAGE__->belongs_to(
104 "vst",
105 "RackTables::Schema::Result::VLANSwitchTemplate",
106 { id => "vst_id" },
107 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
108 );
109  
110  
111 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
112 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uN+1jvXyo+rFKKhXNhsjMw
113  
114  
115 # You can replace this text with custom code or comments, and it will be preserved on regeneration
116 1 __PACKAGE__->meta->make_immutable;
117 1 1;
« blib/lib/RackTables/Schema/Result/VLANIPv6.pm ↑ Summary blib/lib/RackTables/Schema/Result/VLANSwitch.pm »