Hello there
Was wondering if anyone has experience of using ansible with Huawei
successfully?
We are using Huawei at our IX and I am able to use ad-hoc commands with
Huawei but playbooks based on documentation fail with a ncclient related
error. We do have nc client as well as netconf installed on the machine.
Our sample playbook (IP and access details are removed)
---
- hosts: ###hidden###
connection: local
gather_facts: no
vars:
cli:
host: ###hidden###
port: ###hidden###
username: ###hidden###
password: ###hidden###
transport: cli
tasks:
- name: Test port
ce_switchport:
interface: XGigabitEthernet0/0/44
mode: access
access_vlan: 100
provider: '{{ cli }}'
state: present
and this throws the following error during execution:
The full traceback is:
Traceback (most recent call last):
File "/usr/local/bin/ansible-connection", line 106, in start
self.connection._connect()
File
"/Library/Python/2.7/site-packages/ansible/plugins/connection/netconf.py",
line 288, in _connect
ssh_config=ssh_config
File "/Library/Python/2.7/site-packages/ncclient/manager.py", line 163,
in connect
return connect_ssh(*args, **kwds)
File "/Library/Python/2.7/site-packages/ncclient/manager.py", line 128,
in connect_ssh
session.connect(*args, **kwds)
File "/Library/Python/2.7/site-packages/ncclient/transport/ssh.py", line
485, in connect
raise SSHError("Could not open connection, possibly due to unacceptable"
SSHError: Could not open connection, possibly due to unacceptable SSH
subsystem name.
fatal: [$Host]: FAILED! => {
"msg": "Could not open connection, possibly due to unacceptable SSH
subsystem name."
}
Anyone with ideas on what could be wrong?
Thanks!
--
Anurag Bhatia
anuragbhatia.com
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAJ0%2BaXamgJZsedo8JcytLzLHh4dSu6BCnjLSLa68St-QwqA1XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.