aboutsummaryrefslogtreecommitdiffstats
path: root/resources/traffic_scripts
diff options
context:
space:
mode:
authorPatrik Hrnciar <phrnciar@cisco.com>2016-06-10 08:09:56 +0200
committerDave Wallace <dwallacelf@gmail.com>2016-06-30 19:09:11 +0000
commit7d2ae8ca0427b2646327ba42bffdebaac21cd9bc (patch)
tree5db80e723df61c1d0522192c8331d37b4f18926a /resources/traffic_scripts
parent83d5183aba7a35777ee4363b989bb22e22e8a2ef (diff)
CSIT-24 Proxy ARP test
Change-Id: Ia41af7e29dcb8c41d58c07134a385428ac1b285c Signed-off-by: Patrik Hrnciar <phrnciar@cisco.com>
Diffstat (limited to 'resources/traffic_scripts')
-rwxr-xr-xresources/traffic_scripts/arp_request.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/traffic_scripts/arp_request.py b/resources/traffic_scripts/arp_request.py
index 94d5deabe7..8c5b9c7c47 100755
--- a/resources/traffic_scripts/arp_request.py
+++ b/resources/traffic_scripts/arp_request.py
@@ -47,6 +47,7 @@ def arp_request_test():
"""Send ARP request, expect a reply and verify its fields.
returns: test status
+ :raises RuntimeError: ARP reply timeout.
"""
test_passed = False
(src_if, src_mac, dst_mac, src_ip, dst_ip) = parse_arguments()
@@ -65,6 +66,9 @@ def arp_request_test():
# wait for APR reply
ether = interface.recv_pkt()
+ if not ether:
+ raise RuntimeError("ARP reply timeout")
+
# verify received packet
if not ether.haslayer(ARP):