aboutsummaryrefslogtreecommitdiffstats
path: root/resources/traffic_scripts
diff options
context:
space:
mode:
authorMatej Klotton <mklotton@cisco.com>2016-03-02 13:05:13 +0100
committerStefan Kobza <skobza@cisco.com>2016-03-07 16:03:26 +0000
commit4fc12a553db78ff2ad293e7a87845b365a53d736 (patch)
treefedabd8ddc2ed68331cfb86b15012d67cc2056ef /resources/traffic_scripts
parent799c246c1783b534df0ce7731c9078463be33bdd (diff)
Move Send and receive L2 traffic KWs to standalone file.
Change-Id: I3c919a15d5fdbf91ff493d64b768fb69b8c21b65 Signed-off-by: Matej Klotton <mklotton@cisco.com>
Diffstat (limited to 'resources/traffic_scripts')
-rwxr-xr-xresources/traffic_scripts/send_ip_icmp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/traffic_scripts/send_ip_icmp.py b/resources/traffic_scripts/send_ip_icmp.py
index 5e365ebc38..f797bda163 100755
--- a/resources/traffic_scripts/send_ip_icmp.py
+++ b/resources/traffic_scripts/send_ip_icmp.py
@@ -40,8 +40,8 @@ def main():
# Create empty ip ICMP packet and add padding before sending
pkt_raw = Ether(src=src_mac, dst=dst_mac) / \
- IP(src=src_ip, dst=dst_ip) / \
- ICMP()
+ IP(src=src_ip, dst=dst_ip) / \
+ ICMP()
# Send created packet on one interface and receive on the other
sent_packets.append(pkt_raw)
@@ -51,7 +51,7 @@ def main():
# Check whether received packet contains layers Ether, IP and ICMP
if ether is None:
- raise RuntimeError('ICMPv6 echo reply Rx timeout')
+ raise RuntimeError('ICMP echo Rx timeout')
if not ether.haslayer(IP):
raise RuntimeError(