5 Commits
0.1.2 ... 0.1.3

Author SHA1 Message Date
Mircea Ulinic
347d6a6603 Merge pull request #14 from napalm-automation/develop
Release 0.1.3
2017-02-08 15:28:04 -05:00
Mircea Ulinic
cc98324b6d Merge pull request #13 from napalm-automation/rel-0.1.3
Version 0.1.3
2017-02-08 15:09:07 -05:00
Mircea Ulinic
fcdcfb719f Merge pull request #12 from mirceaulinic/patch-1
Add vrf arg to ping
2017-02-08 15:08:59 -05:00
Mircea Ulinic
673cb74593 Version 0.1.3 2017-02-07 01:06:01 -05:00
Mircea Ulinic
44948805bc Add vrf arg to ping
Looks like vyos doesn't know about VRF
so these changes should be reflected only
in the method header
2017-02-02 12:06:48 +00:00
2 changed files with 10 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ from netmiko import ConnectHandler
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 @@ class VyOSDriver(NetworkDriver):
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

View File

@@ -12,7 +12,7 @@ reqs = [str(ir.req) for ir in install_reqs]
setup(
name="napalm-vyos",
version="0.1.2",
version="0.1.3",
packages=find_packages(),
author="Piotr Pieprzycki",
author_email="piotr.pieprzycki@dreamlab.pl",