diff --git a/napalm_base/base.py b/napalm_base/base.py index 04ab9c19..01e1aa69 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. diff --git a/napalm_base/constants.py b/napalm_base/constants.py index 2382192f..bcfbff9e 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 = '' 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",