diff options
author | Jan Gelety <jgelety@cisco.com> | 2016-08-29 11:02:37 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2016-09-12 15:07:07 +0000 |
commit | b4224131bb93d12c953739bb31b87165a375cba2 (patch) | |
tree | ba55c9dc800dfbf864279b58d58b556e49cfeb0b /resources/traffic_scripts | |
parent | a2dccaa0fe388b685a787fe10902a5fb01c873da (diff) |
CSIT-383: IPSEC IPv4 negative test cases
- use integrity and/or encryption key(s) different from
integrity and encryption keys stored on VPP node to create
tx packet on TG
Change-Id: I38bf7e1dd6f488e605bad991c7a7f4d1ff226e8c
Signed-off-by: Jan Gelety <jgelety@cisco.com>
(cherry picked from commit cdfe60613521e492157153bbe097fdc05193a593)
Diffstat (limited to 'resources/traffic_scripts')
-rwxr-xr-x | resources/traffic_scripts/ipsec.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/resources/traffic_scripts/ipsec.py b/resources/traffic_scripts/ipsec.py index ff869ed2a0..13d44b8a51 100755 --- a/resources/traffic_scripts/ipsec.py +++ b/resources/traffic_scripts/ipsec.py @@ -174,8 +174,6 @@ def main(): sent_packets = [] - ip_pkt = None - if is_ipv4: ip_pkt = IP(src=src_ip, dst=dst_ip) / \ ICMP() @@ -195,7 +193,7 @@ def main(): pkt_recv = rxq.recv(2, sent_packets) if pkt_recv is None: - raise RuntimeError('Rx timeout') + raise RuntimeError('ESP packet Rx timeout') if is_ipv4: check_ipv4(pkt_recv, src_tun, dst_ip, src_ip, sa_in) |