From 241b5da61f1fc39366aad11656d6d26eb1b40fb7 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 31 Mar 2019 15:54:39 +0200 Subject: [PATCH] + test for ping4 --- p4app/test.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/p4app/test.py b/p4app/test.py index 7ef1112..a934567 100755 --- a/p4app/test.py +++ b/p4app/test.py @@ -25,6 +25,15 @@ class TestStuff(object): return cmd + def test_ping4_switch(self): + host = "h3" + dst = ipaddress.ip_address("10.0.0.66") + + log.info("Trying to reach {} from {}".format(dst, host)) + cmd = "mx h1 ping -c1 {}".format(dst).split(" ") + + return cmd + def test_v6_static_mapping(self): host = "h1" nat64_prefix = ipaddress.ip_network("2001:db8:1::/96")