diff --git a/napalm_vyos/vyos.py b/napalm_vyos/vyos.py index fdf1c02..dd98e86 100644 --- a/napalm_vyos/vyos.py +++ b/napalm_vyos/vyos.py @@ -30,6 +30,7 @@ from netmiko import SCPConn # NAPALM base +import napalm_base.constants as C from napalm_base.utils import py23_compat from napalm_base.base import NetworkDriver from napalm_base.exceptions import ConnectionException, \ @@ -782,7 +783,14 @@ def get_users(self): return user_auth - def ping(self, destination, source='', ttl=255, timeout=2, size=100, count=5): + def ping(self, + destination, + source=C.PING_SOURCE, + ttl=C.PING_TTL, + timeout=C.PING_TIMEOUT, + size=C.PING_SIZE, + count=C.PING_COUNT, + vrf=C.PING_VRF): # does not support multiple destination yet deadline = timeout * count diff --git a/setup.py b/setup.py index d486e82..75910c9 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="napalm-vyos", - version="0.1.2", + version="0.1.3", packages=find_packages(), author="Piotr Pieprzycki", author_email="piotr.pieprzycki@dreamlab.pl",