Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for iosxe connection #144

Merged
merged 1 commit into from
Jul 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion ncclient/devices/iosxe.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

from .default import DefaultDeviceHandler

from ncclient.operations.third_party.iosxe.rpc import SaveConfig

def iosxe_unknown_host_cb(host, fingerprint):
#This will ignore the unknown host check when connecting to CSR devices
return True
Expand All @@ -35,7 +37,7 @@ def add_additional_operations(self):
def add_additional_ssh_connect_params(self, kwargs):
kwargs['allow_agent'] = False
kwargs['look_for_keys'] = False
kwargs['unknown_host_cb'] = csr_unknown_host_cb
kwargs['unknown_host_cb'] = iosxe_unknown_host_cb

def perform_qualify_check(self):
return False