From 6bbabdf2adaec1f6fa05926d373020e99e1a6ccd Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 8 Jun 2021 14:27:14 +0200 Subject: remote: import is_ipv6 from vyos.template --- python/vyos/remote.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'python') 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') -- cgit v1.2.3