Test sending oversized ICMP packages over floating IP

Change-Id: Ib233e847791357dde74f209b0f510205d320da4a
This commit is contained in:
Federico Ressi
2019-04-02 14:18:56 +02:00
parent 3af05eec8a
commit 5423c0969c
4 changed files with 50 additions and 23 deletions

View File

@@ -24,8 +24,9 @@ class PingFailed(exceptions.TobikoException,
message = "Failed pinging %(destination)r: %(reason)s"
def assert_ping(ip, should_fail=False, mtu=None, fragmentation=True):
success = net_utils.ping_ip_address(ip, mtu=mtu,
def assert_ping(ip, should_fail=False, fragmentation=True,
packet_size=None):
success = net_utils.ping_ip_address(ip, mtu=packet_size,
fragmentation=fragmentation)
if success:
if should_fail: