rename CLI Transport to SSH
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package App::Netdisco::Transport::CLI;
|
package App::Netdisco::Transport::SSH;
|
||||||
|
|
||||||
use Dancer qw/:syntax :script/;
|
use Dancer qw/:syntax :script/;
|
||||||
|
|
||||||
@@ -11,14 +11,14 @@ use base 'Dancer::Object::Singleton';
|
|||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
||||||
App::Netdisco::Transport::CLI
|
App::Netdisco::Transport::SSH
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Returns an object which has an active SSH connection which can be used
|
Returns an object which has an active SSH connection which can be used
|
||||||
for some actions such as arpnip.
|
for some actions such as arpnip.
|
||||||
|
|
||||||
my $cli = App::Netdisco::Transport::CLI->session_for( ... );
|
my $cli = App::Netdisco::Transport::SSH->session_for( ... );
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@ package App::Netdisco::Worker::Plugin::Arpnip::Nodes;
|
|||||||
use Dancer ':syntax';
|
use Dancer ':syntax';
|
||||||
use App::Netdisco::Worker::Plugin;
|
use App::Netdisco::Worker::Plugin;
|
||||||
use aliased 'App::Netdisco::Worker::Status';
|
use aliased 'App::Netdisco::Worker::Status';
|
||||||
use App::Netdisco::Transport::CLI ();
|
use App::Netdisco::Transport::SSH ();
|
||||||
use App::Netdisco::Transport::SNMP ();
|
use App::Netdisco::Transport::SNMP ();
|
||||||
use App::Netdisco::Util::Node qw/check_mac store_arp/;
|
use App::Netdisco::Util::Node qw/check_mac store_arp/;
|
||||||
use App::Netdisco::Util::FastResolver 'hostnames_resolve_async';
|
use App::Netdisco::Util::FastResolver 'hostnames_resolve_async';
|
||||||
@@ -67,7 +67,7 @@ register_worker({ phase => 'main', driver => 'cli' }, sub {
|
|||||||
my ($job, $workerconf) = @_;
|
my ($job, $workerconf) = @_;
|
||||||
|
|
||||||
my $device = $job->device;
|
my $device = $job->device;
|
||||||
my $cli = App::Netdisco::Transport::CLI->session_for($device)
|
my $cli = App::Netdisco::Transport::SSH->session_for($device)
|
||||||
or return Status->defer("arpnip failed: could not SSH connect to $device");
|
or return Status->defer("arpnip failed: could not SSH connect to $device");
|
||||||
|
|
||||||
# should be both v4 and v6
|
# should be both v4 and v6
|
||||||
|
|||||||
@@ -415,7 +415,6 @@ worker_plugins:
|
|||||||
- 'Vlan::Core'
|
- 'Vlan::Core'
|
||||||
|
|
||||||
extra_worker_plugins: []
|
extra_worker_plugins: []
|
||||||
# - Discover::ConfigBackup::CLI
|
|
||||||
|
|
||||||
driver_priority:
|
driver_priority:
|
||||||
restconf: 500
|
restconf: 500
|
||||||
|
|||||||
Reference in New Issue
Block a user