Add ping4 test from ipv4 host

This commit is contained in:
Nico Schottelius 2019-04-03 12:50:19 +02:00
commit fc5e56e809
2 changed files with 43 additions and 25 deletions

View file

@ -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++')