From 1ab5bbfb2ecbb3991bba412d7b458f554fdb623d Mon Sep 17 00:00:00 2001 From: Ronald van Zantvoort Date: Wed, 21 Jun 2017 11:59:39 +0200 Subject: [PATCH 1/3] NXOS protocol param to standarized 'transport' param --- napalm_nxos/nxos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/napalm_nxos/nxos.py b/napalm_nxos/nxos.py index daf7b36..34c18a6 100644 --- a/napalm_nxos/nxos.py +++ b/napalm_nxos/nxos.py @@ -61,7 +61,8 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None) if optional_args is None: optional_args = {} - self.transport = optional_args.get('nxos_protocol', 'http') + # nxos_protocol is there for backwards compatibility, transport is the preferred method + self.transport = optional_args.get('transport', optional_args.get('nxos_protocol', 'http')) if self.transport == 'https': self.port = optional_args.get('port', 443) From b1764f8aec687dbcf25976f9c37fc783a85d0486 Mon Sep 17 00:00:00 2001 From: Ronald van Zantvoort Date: Mon, 26 Jun 2017 21:54:36 +0200 Subject: [PATCH 2/3] switch default to HTTPS (closes #36) --- napalm_nxos/nxos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_nxos/nxos.py b/napalm_nxos/nxos.py index 34c18a6..de3479f 100644 --- a/napalm_nxos/nxos.py +++ b/napalm_nxos/nxos.py @@ -62,7 +62,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None) optional_args = {} # nxos_protocol is there for backwards compatibility, transport is the preferred method - self.transport = optional_args.get('transport', optional_args.get('nxos_protocol', 'http')) + self.transport = optional_args.get('transport', optional_args.get('nxos_protocol', 'https')) if self.transport == 'https': self.port = optional_args.get('port', 443) From 60aacfe175d4cb704e16088a237f95ad48776d86 Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Tue, 27 Jun 2017 11:12:40 +0100 Subject: [PATCH 3/3] Version 0.6.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d1e3ae3..5dc51aa 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="napalm-nxos", - version="0.5.3", + version="0.6.0", packages=find_packages(exclude=["test", "test.*"]), author="David Barroso", author_email="dbarrosop@dravetech.com",