Add ping4 test from ipv4 host
This commit is contained in:
parent
771c12ccb7
commit
fc5e56e809
2 changed files with 43 additions and 25 deletions
|
|
@ -45,6 +45,15 @@ class TestStuff(object):
|
|||
|
||||
return cmd
|
||||
|
||||
def test_v4_static_mapping(self):
|
||||
host = "h3"
|
||||
dst_ipv4 = ipaddress.ip_address("10.1.1.1")
|
||||
|
||||
log.info("Trying to reach {} from {}".format(dst_ipv4, host))
|
||||
cmd = "mx {} ping -c1 {}".format(host, dst_ipv4).split(" ")
|
||||
|
||||
return cmd
|
||||
|
||||
|
||||
def commandline(self):
|
||||
parser = argparse.ArgumentParser(description='controller++')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue