summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2017-06-15 23:17:07 +0200
committerGitHub <noreply@github.com>2017-06-15 23:17:07 +0200
commitad863464292eb6b77eb386c6a72cff9a6ba55b88 (patch)
treeae2e36d5c032b237f27d97195ef1928d70d932f1
parent3192c105afad5be3d0ef8459a56a4898ef98e4f4 (diff)
parentc085f4028c479e673ae5eb04ff4c12f73b4c6182 (diff)
Merge pull request #17 from smiles1969/master
IOS-XR uses the "count" argument to repeat ping requests.
-rw-r--r--routers/cisco_iosxr.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/cisco_iosxr.php b/routers/cisco_iosxr.php
index b381368..bd08614 100644
--- a/routers/cisco_iosxr.php
+++ b/routers/cisco_iosxr.php
@@ -28,7 +28,7 @@ final class IOSXR extends Router {
if (match_ipv6($destination) || match_ipv4($destination) ||
(match_hostname($destination) && !$this->has_source_interface_id())) {
- $ping = 'ping '.$destination. ' repeat 10';
+ $ping = 'ping '.$destination. ' count 10';
} else if (match_hostname($destination)) {
$hostname = $destination;
$destination = hostname_to_ip_address($hostname, $this->config);