summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/__init__.py
diff options
context:
space:
mode:
authorPeter Sprygada <privateip@users.noreply.github.com>2016-11-28 12:49:40 -0500
committerGitHub <noreply@github.com>2016-11-28 12:49:40 -0500
commit9aa85470162e518c56fff930f7f12e65c7eb020c (patch)
tree288a7058d0586825c61af0494e1edad523df8d47 /lib/ansible/plugins/__init__.py
parent54c5ea29bbb31edb3d524b7cc9b433f02b61158a (diff)
downloadansible-9aa85470162e518c56fff930f7f12e65c7eb020c.tar.gz
adds two new plugins that use ansible-connection for persistence (#18572)
* adds new connection plugin `network_cli` which builds on paramiko * adds new plugin `terminal` used for manipulating network_cli terminals * adds new field to play_context `network_os` settable as ansible_network_os This commit adds the plugins necesary to establish a persistent cli connection to network devices of ssh. It builds on the paramiko connection plugin to create a shell environment that will persistent through ansible-connection. The `newtork_cli` plugin then uses the network_os in the instance of PlayContext to load the appropriate network OS environment plugin for handling opening and closing of shells as well as privilege escalation.
Diffstat (limited to 'lib/ansible/plugins/__init__.py')
-rw-r--r--lib/ansible/plugins/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py
index 9e2229e8c9..e457e7e02d 100644
--- a/lib/ansible/plugins/__init__.py
+++ b/lib/ansible/plugins/__init__.py
@@ -509,3 +509,11 @@ strategy_loader = PluginLoader(
'strategy_plugins',
required_base_class='StrategyBase',
)
+
+terminal_loader = PluginLoader(
+ 'TerminalModule',
+ 'ansible.plugins.terminal',
+ 'terminal_plugins',
+ 'terminal_plugins'
+)
+