Skip to content

Commit

Permalink
Merge pull request #12 from mirceaulinic/patch-1
Browse files Browse the repository at this point in the history
Add vrf arg to ping
  • Loading branch information
mirceaulinic authored Feb 8, 2017
2 parents b397bb2 + 4494880 commit fcdcfb7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion napalm_vyos/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fcdcfb7

Please sign in to comment.