From 1a4efca83c79da69b7f82934daa76d651fdb0f25 Mon Sep 17 00:00:00 2001 From: Carl Buchmann Date: Fri, 26 Jan 2018 11:52:23 -0500 Subject: [PATCH] fix when using vrf option (#35118) ping did not include "vrf" keyword in command and would fail. --- lib/ansible/modules/network/ios/ios_ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/ios/ios_ping.py b/lib/ansible/modules/network/ios/ios_ping.py index cee79a02dfd..920092bfe83 100644 --- a/lib/ansible/modules/network/ios/ios_ping.py +++ b/lib/ansible/modules/network/ios/ios_ping.py @@ -176,7 +176,7 @@ def build_ping(dest, count=None, source=None, vrf=None): to execute. All args come from the module's unique params. """ if vrf is not None: - cmd = "ping {0} {1}".format(vrf, dest) + cmd = "ping vrf {0} {1}".format(vrf, dest) else: cmd = "ping {0}".format(dest)