fix when using vrf option (#35118)

ping did not include "vrf" keyword in command and would fail.
pull/35401/head
Carl Buchmann 7 years ago 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. to execute. All args come from the module's unique params.
""" """
if vrf is not None: if vrf is not None:
cmd = "ping {0} {1}".format(vrf, dest) cmd = "ping vrf {0} {1}".format(vrf, dest)
else: else:
cmd = "ping {0}".format(dest) cmd = "ping {0}".format(dest)

Loading…
Cancel
Save