rename Core to Worker and move other packages around
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package App::Netdisco::Backend::Worker::Interactive::DeviceActions;
|
||||
|
||||
use App::Netdisco::Core::Transport::SNMP;
|
||||
use App::Netdisco::Transport::SNMP;
|
||||
use App::Netdisco::Util::Device 'get_device';
|
||||
use App::Netdisco::Backend::Util ':all';
|
||||
|
||||
@@ -22,7 +22,7 @@ sub _set_device_generic {
|
||||
$data ||= '';
|
||||
|
||||
# snmp connect using rw community
|
||||
my $info = App::Netdisco::Core::Transport::SNMP->writer_for($ip)
|
||||
my $info = App::Netdisco::Transport::SNMP->writer_for($ip)
|
||||
or return job_defer("Failed to connect to device [$ip] to update $slot");
|
||||
|
||||
my $method = 'set_'. $slot;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package App::Netdisco::Backend::Worker::Interactive::PortActions;
|
||||
|
||||
use App::Netdisco::Util::Port ':all';
|
||||
use App::Netdisco::Core::Transport::SNMP;
|
||||
use App::Netdisco::Transport::SNMP;
|
||||
use App::Netdisco::Util::Device 'get_device';
|
||||
use App::Netdisco::Backend::Util ':all';
|
||||
|
||||
@@ -74,7 +74,7 @@ sub _set_port_generic {
|
||||
|
||||
if ($device->vendor ne 'netdisco') {
|
||||
# snmp connect using rw community
|
||||
my $info = App::Netdisco::Core::Transport::SNMP->writer_for($ip)
|
||||
my $info = App::Netdisco::Transport::SNMP->writer_for($ip)
|
||||
or return job_defer("Failed to connect to device [$ip] to control port");
|
||||
|
||||
my $iid = get_iid($info, $port)
|
||||
@@ -127,7 +127,7 @@ sub power {
|
||||
$data = 'false' if $data =~ m/^(off|no|down)$/;
|
||||
|
||||
# snmp connect using rw community
|
||||
my $info = App::Netdisco::Core::Transport::SNMP->writer_for($ip)
|
||||
my $info = App::Netdisco::Transport::SNMP->writer_for($ip)
|
||||
or return job_defer("Failed to connect to device [$ip] to control power");
|
||||
|
||||
my $powerid = get_powerid($info, $port)
|
||||
|
||||
Reference in New Issue
Block a user