diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-08 14:27:14 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-08 14:27:14 +0200 |
commit | 6bbabdf2adaec1f6fa05926d373020e99e1a6ccd (patch) | |
tree | 4c6040222315c048af74aac7ac6be3fb3ade97dd /python/vyos | |
parent | 600eedd550d902310b8623b44c0590750330a4a3 (diff) | |
download | vyos-1x-6bbabdf2adaec1f6fa05926d373020e99e1a6ccd.tar.gz vyos-1x-6bbabdf2adaec1f6fa05926d373020e99e1a6ccd.zip |
remote: import is_ipv6 from vyos.template
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/remote.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/vyos/remote.py b/python/vyos/remote.py index 81ea23c71..b11838ac0 100644 --- a/python/vyos/remote.py +++ b/python/vyos/remote.py @@ -23,11 +23,13 @@ import tempfile import urllib.parse import urllib.request as urlreq -from vyos.util import cmd, ask_yes_no -from vyos.validate import is_ipv6 +from vyos.util import cmd +from vyos.util import ask_yes_no +from vyos.template import is_ipv6 from vyos.version import get_version -from paramiko import SSHClient, SSHException, MissingHostKeyPolicy - +from paramiko import SSHClient +from paramiko import SSHException +from paramiko import MissingHostKeyPolicy # This is a hardcoded path and no environment variable can change it. KNOWN_HOSTS_FILE = os.path.expanduser('~/.ssh/known_hosts') |