mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 17:23:09 +00:00
fix when using vrf option (#35118)
ping did not include "vrf" keyword in command and would fail.
This commit is contained in:
committed by
Ganesh Nalawade
parent
44171b70c2
commit
1a4efca83c
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user