mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-07 09:41:29 -07:00
Connection plugins network_cli and netconf (#32521)
* implements jsonrpc message passing for ansible-connection * implements more generic mechanism for persistent connections * starts persistent connection in task_executor if enabled and supported * supports using network_cli as top level connection plugin * enhances logging for persistent connection to stdout * Update action plugins * Fix Python3 RPC * Fix Junos bytes<-->str issues * supports using netconf as top level connection plugin * Error message when running netconf on an unsupported platform * Update tests * Fix `authorize: yes` for `connection: local` * Handle potentially JSON data in terminal * Add clarifying detail if possible on ConnectionError
This commit is contained in:
parent
897b31f249
commit
9c0275a879
26 changed files with 722 additions and 798 deletions
|
@ -37,6 +37,7 @@ from ansible.plugins.connection.paramiko_ssh import Connection as ParamikoConnec
|
|||
from ansible.plugins.connection.ssh import Connection as SSHConnection
|
||||
from ansible.plugins.connection.docker import Connection as DockerConnection
|
||||
# from ansible.plugins.connection.winrm import Connection as WinRmConnection
|
||||
from ansible.plugins.connection.netconf import Connection as NetconfConnection
|
||||
from ansible.plugins.connection.network_cli import Connection as NetworkCliConnection
|
||||
|
||||
|
||||
|
@ -140,7 +141,9 @@ class TestConnectionBaseClass(unittest.TestCase):
|
|||
|
||||
def test_network_cli_connection_module(self):
|
||||
self.assertIsInstance(NetworkCliConnection(self.play_context, self.in_stream), NetworkCliConnection)
|
||||
self.assertIsInstance(NetworkCliConnection(self.play_context, self.in_stream), ParamikoConnection)
|
||||
|
||||
def test_netconf_connection_module(self):
|
||||
self.assertIsInstance(NetconfConnection(self.play_context, self.in_stream), NetconfConnection)
|
||||
|
||||
def test_check_password_prompt(self):
|
||||
local = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue