From fe2bdaa4b29b12b4ccef17c1e6b5966245a9bfa5 Mon Sep 17 00:00:00 2001 From: Arzhel Younsi Date: Thu, 19 Jan 2017 19:15:20 +0800 Subject: [PATCH 1/5] Add support for VRF in base ping and traceroute --- napalm_base/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/napalm_base/base.py b/napalm_base/base.py index 9a512ece..e59a0f99 100644 --- a/napalm_base/base.py +++ b/napalm_base/base.py @@ -1111,7 +1111,7 @@ def get_probes_results(self): raise NotImplementedError def ping(self, destination, source=c.PING_SOURCE, ttl=c.PING_TTL, timeout=c.PING_TIMEOUT, - size=c.PING_SIZE, count=c.PING_COUNT): + size=c.PING_SIZE, count=c.PING_COUNT, vrf=c.PING_VRF): """ Executes ping on the device and returns a dictionary with the result @@ -1178,7 +1178,8 @@ def traceroute(self, destination, source=c.TRACEROUTE_SOURCE, ttl=c.TRACEROUTE_TTL, - timeout=c.TRACEROUTE_TIMEOUT): + timeout=c.TRACEROUTE_TIMEOUT, + vrf=C.TRACEROUTE_VRF): """ Executes traceroute on the device and returns a dictionary with the result. From e8948c9e0086a64f7d31764535c7b31915f4593d Mon Sep 17 00:00:00 2001 From: Arzhel Younsi Date: Thu, 19 Jan 2017 19:18:33 +0800 Subject: [PATCH 2/5] Add VRF constants for ping and traceroute --- napalm_base/constants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/napalm_base/constants.py b/napalm_base/constants.py index 2382192f..c47ce89c 100644 --- a/napalm_base/constants.py +++ b/napalm_base/constants.py @@ -56,6 +56,7 @@ TRACEROUTE_TIMEOUT = 2 TRACEROUTE_NULL_HOST_NAME = '*' TRACEROUTE_NULL_IP_ADDRESS = '*' +TRACEROUTE_VRF = '' OPTICS_NULL_LEVEL = '-Inf' @@ -64,3 +65,4 @@ PING_TIMEOUT = 2 PING_SIZE = 100 PING_COUNT = 5 +PING_VRF='' From c1779f12d77a9b95af0cf84eb87e57bca9a7e905 Mon Sep 17 00:00:00 2001 From: Arzhel Younsi Date: Thu, 19 Jan 2017 21:26:05 +0800 Subject: [PATCH 3/5] Fixed typo C -> c --- napalm_base/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_base/base.py b/napalm_base/base.py index e59a0f99..ea7d3a46 100644 --- a/napalm_base/base.py +++ b/napalm_base/base.py @@ -1179,7 +1179,7 @@ def traceroute(self, source=c.TRACEROUTE_SOURCE, ttl=c.TRACEROUTE_TTL, timeout=c.TRACEROUTE_TIMEOUT, - vrf=C.TRACEROUTE_VRF): + vrf=c.TRACEROUTE_VRF): """ Executes traceroute on the device and returns a dictionary with the result. From 588a159191e3839740b6a4a526d6d5ad67f505c0 Mon Sep 17 00:00:00 2001 From: Arzhel Younsi Date: Tue, 24 Jan 2017 01:04:21 +0800 Subject: [PATCH 4/5] Fix lint error --- napalm_base/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_base/constants.py b/napalm_base/constants.py index c47ce89c..bcfbff9e 100644 --- a/napalm_base/constants.py +++ b/napalm_base/constants.py @@ -65,4 +65,4 @@ PING_TIMEOUT = 2 PING_SIZE = 100 PING_COUNT = 5 -PING_VRF='' +PING_VRF = '' From d9630b179553ae3cfa4b65b461a3234ab69a3c26 Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Sun, 5 Feb 2017 13:57:54 +0000 Subject: [PATCH 5/5] Version 0.23.0 Preparing 0.23.0 for https://github.com/napalm-automation/napalm-base/pull/185 Although it's not a new method, I think we should cut a major release as this is still an API change. Does this make sense? --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6ca580cd..d1b8ff88 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="napalm-base", - version='0.22.0', + version='0.23.0', packages=find_packages(), author="David Barroso", author_email="dbarrosop@dravetech.com",