rename CLI Transport to SSH

This commit is contained in:
Oliver Gorwits
2019-03-13 22:23:02 +00:00
parent 76f8ec961c
commit 9b39d1e452
3 changed files with 5 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
package App::Netdisco::Transport::CLI;
package App::Netdisco::Transport::SSH;
use Dancer qw/:syntax :script/;
@@ -11,14 +11,14 @@ use base 'Dancer::Object::Singleton';
=head1 NAME
App::Netdisco::Transport::CLI
App::Netdisco::Transport::SSH
=head1 DESCRIPTION
Returns an object which has an active SSH connection which can be used
for some actions such as arpnip.
my $cli = App::Netdisco::Transport::CLI->session_for( ... );
my $cli = App::Netdisco::Transport::SSH->session_for( ... );
=cut

View File

@@ -3,7 +3,7 @@ package App::Netdisco::Worker::Plugin::Arpnip::Nodes;
use Dancer ':syntax';
use App::Netdisco::Worker::Plugin;
use aliased 'App::Netdisco::Worker::Status';
use App::Netdisco::Transport::CLI ();
use App::Netdisco::Transport::SSH ();
use App::Netdisco::Transport::SNMP ();
use App::Netdisco::Util::Node qw/check_mac store_arp/;
use App::Netdisco::Util::FastResolver 'hostnames_resolve_async';
@@ -67,7 +67,7 @@ register_worker({ phase => 'main', driver => 'cli' }, sub {
my ($job, $workerconf) = @_;
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");
# should be both v4 and v6

View File

@@ -415,7 +415,6 @@ worker_plugins:
- 'Vlan::Core'
extra_worker_plugins: []
# - Discover::ConfigBackup::CLI
driver_priority:
restconf: 500