From 28b33f38436069f8b15ea1c51099f2184f5dbef6 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Mon, 4 Aug 2014 00:20:22 +0200 Subject: Fix ping for Cisco. --- routers/cisco.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers') diff --git a/routers/cisco.php b/routers/cisco.php index cc601a7..d1b65b2 100644 --- a/routers/cisco.php +++ b/routers/cisco.php @@ -57,9 +57,9 @@ final class Cisco extends Router { case 'ping': if (match_ipv4($parameters)) { - $commands[] = 'ping '.$parameters.' count 10'; + $commands[] = 'ping '.$parameters.' repeat 10'; } else if (match_ipv6($parameters)) { - $commands[] = 'ping ipv6 '.$parameters.' count 10'; + $commands[] = 'ping ipv6 '.$parameters.' repeat 10'; } else { throw new Exception('The parameter is not an IPv4/IPv6 address.'); } -- cgit v1.2.3