move DBIC virtual tables into Virtual:: namespace
This commit is contained in:
		| @@ -96,7 +96,7 @@ __PACKAGE__->has_many( nodes => 'Netdisco::DB::Result::Node', | ||||
|   { join_type => 'LEFT' }, | ||||
| ); | ||||
|  | ||||
| __PACKAGE__->has_many( nodes_with_age => 'Netdisco::DB::Result::NodeWithAge', | ||||
| __PACKAGE__->has_many( nodes_with_age => 'Netdisco::DB::Result::Virtual::NodeWithAge', | ||||
|   { | ||||
|     'foreign.switch' => 'self.ip', | ||||
|     'foreign.port' => 'self.port', | ||||
| @@ -104,7 +104,7 @@ __PACKAGE__->has_many( nodes_with_age => 'Netdisco::DB::Result::NodeWithAge', | ||||
|   { join_type => 'LEFT' }, | ||||
| ); | ||||
|  | ||||
| __PACKAGE__->has_many( active_nodes => 'Netdisco::DB::Result::ActiveNode', | ||||
| __PACKAGE__->has_many( active_nodes => 'Netdisco::DB::Result::Virtual::ActiveNode', | ||||
|   { | ||||
|     'foreign.switch' => 'self.ip', | ||||
|     'foreign.port' => 'self.port', | ||||
| @@ -112,7 +112,7 @@ __PACKAGE__->has_many( active_nodes => 'Netdisco::DB::Result::ActiveNode', | ||||
|   { join_type => 'LEFT' }, | ||||
| ); | ||||
|  | ||||
| __PACKAGE__->has_many( active_nodes_with_age => 'Netdisco::DB::Result::ActiveNodeWithAge', | ||||
| __PACKAGE__->has_many( active_nodes_with_age => 'Netdisco::DB::Result::Virtual::ActiveNodeWithAge', | ||||
|   { | ||||
|     'foreign.switch' => 'self.ip', | ||||
|     'foreign.port' => 'self.port', | ||||
| @@ -144,7 +144,7 @@ port, where the VLANs are all tagged. | ||||
|  | ||||
| =cut | ||||
|  | ||||
| __PACKAGE__->has_many( port_vlans_tagged => 'Netdisco::DB::Result::DevicePortVlanTagged', | ||||
| __PACKAGE__->has_many( port_vlans_tagged => 'Netdisco::DB::Result::Virtual::DevicePortVlanTagged', | ||||
|   { | ||||
|     'foreign.ip' => 'self.ip', | ||||
|     'foreign.port' => 'self.port', | ||||
|   | ||||
| @@ -53,7 +53,7 @@ Link relationship for C<tagging_ports>, see below. | ||||
|  | ||||
| =cut | ||||
|  | ||||
| __PACKAGE__->has_many( port_vlans_tagged => 'Netdisco::DB::Result::DevicePortVlanTagged', | ||||
| __PACKAGE__->has_many( port_vlans_tagged => 'Netdisco::DB::Result::Virtual::DevicePortVlanTagged', | ||||
|     { 'foreign.ip' => 'self.ip', 'foreign.vlan' => 'self.vlan' }, | ||||
| ); | ||||
|  | ||||
| @@ -63,7 +63,7 @@ Link relationship to support C<native_ports>, see below. | ||||
|  | ||||
| =cut | ||||
|  | ||||
| __PACKAGE__->has_many( port_vlans_native => 'Netdisco::DB::Result::DevicePortVlanNative', | ||||
| __PACKAGE__->has_many( port_vlans_native => 'Netdisco::DB::Result::Virtual::DevicePortVlanNative', | ||||
|     { 'foreign.ip' => 'self.ip', 'foreign.vlan' => 'self.vlan' }, | ||||
| ); | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| use utf8; | ||||
| package Netdisco::DB::Result::ActiveNode; | ||||
| package Netdisco::DB::Result::Virtual::ActiveNode; | ||||
| 
 | ||||
| use strict; | ||||
| use warnings; | ||||
| @@ -1,10 +1,10 @@ | ||||
| use utf8; | ||||
| package Netdisco::DB::Result::ActiveNodeWithAge; | ||||
| package Netdisco::DB::Result::Virtual::ActiveNodeWithAge; | ||||
| 
 | ||||
| use strict; | ||||
| use warnings; | ||||
| 
 | ||||
| use base 'Netdisco::DB::Result::ActiveNode'; | ||||
| use base 'Netdisco::DB::Result::Virtual::ActiveNode'; | ||||
| 
 | ||||
| __PACKAGE__->load_components('Helper::Row::SubClass'); | ||||
| __PACKAGE__->subclass; | ||||
| @@ -1,5 +1,5 @@ | ||||
| use utf8; | ||||
| package Netdisco::DB::Result::DevicePortVlanNative; | ||||
| package Netdisco::DB::Result::Virtual::DevicePortVlanNative; | ||||
| 
 | ||||
| use strict; | ||||
| use warnings; | ||||
| @@ -1,5 +1,5 @@ | ||||
| use utf8; | ||||
| package Netdisco::DB::Result::DevicePortVlanTagged; | ||||
| package Netdisco::DB::Result::Virtual::DevicePortVlanTagged; | ||||
| 
 | ||||
| use strict; | ||||
| use warnings; | ||||
| @@ -1,5 +1,5 @@ | ||||
| use utf8; | ||||
| package Netdisco::DB::Result::NodeWithAge; | ||||
| package Netdisco::DB::Result::Virtual::NodeWithAge; | ||||
| 
 | ||||
| use strict; | ||||
| use warnings; | ||||
| @@ -121,7 +121,7 @@ sub with_vlan_count { | ||||
|     ->search({}, | ||||
|       { | ||||
|         '+columns' => { tagged_vlans_count => | ||||
|           $rs->result_source->schema->resultset('DevicePortVlanTagged') | ||||
|           $rs->result_source->schema->resultset('Virtual::DevicePortVlanTagged') | ||||
|             ->search( | ||||
|               { | ||||
|                 'dpvt.ip' => { -ident => 'me.ip' }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user