next steps, use noaction to avoid clone3() and breaking ndp

This commit is contained in:
Nico Schottelius 2019-04-08 15:59:28 +02:00
commit 6c3393e941
3 changed files with 37 additions and 11 deletions

View file

@ -38,7 +38,7 @@ class TestStuff(object):
host = "h1"
nat64_prefix = ipaddress.ip_network("2001:db8:1::/96")
dst_ipv4 = ipaddress.ip_address("10.0.0.1")
translated_ipv4 = nat64_prefix[int(dst_ipv4)]
translated_ipv4 = nat64_prefix[int(dst_ipv4)] # '2001:db8:1::a00:1'
log.info("Trying to reach {} ({}) from {}".format(dst_ipv4, translated_ipv4, host))
cmd = "mx {} ping6 -c1 {}".format(host, translated_ipv4).split(" ")
@ -54,6 +54,30 @@ class TestStuff(object):
return cmd
def test_v6_udp_to_v4(self):
""" unfinished """
"""
"""
host = "h1"
dst_ipv6 = ipaddress.ip_address("2001:db8::42")
log.info("Trying to reach {} from {}".format(dst_ipv6, host))
cmd = "mx {} ping6 -c1 {}".format(host, dst_ipv6).split(" ")
return cmd
host = "h1"
nat64_prefix = ipaddress.ip_network("2001:db8:1::/96")
dst_ipv4 = ipaddress.ip_address("10.0.0.1")
translated_ipv4 = nat64_prefix[int(dst_ipv4)]
log.info("Trying to reach {} ({}) from {}".format(dst_ipv4, translated_ipv4, host))
cmd = "mx {} ping6 -c1 {}".format(host, translated_ipv4).split(" ")
return cmd
def commandline(self):
parser = argparse.ArgumentParser(description='controller++')