diff options
author | Neale Ranns <nranns@cisco.com> | 2019-12-23 04:10:25 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-12-23 21:39:23 +0000 |
commit | 4a56f4e48f39f9e0560833115f85270c0c04b57f (patch) | |
tree | da9d30b72cf953008bd3e15140219ba1240b5ba4 /test/test_ipsec_tun_if_esp.py | |
parent | 1de7167e7a12a80cc5996959aeb1fbe4b2853ccb (diff) |
ipsec: Test and fix IPSec worker hand-off
Type: fix
Change-Id: I5cb9a3845ddbc5f4de4eb4e9c481f606fe5cec9a
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/test_ipsec_tun_if_esp.py')
-rw-r--r-- | test/test_ipsec_tun_if_esp.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/test/test_ipsec_tun_if_esp.py b/test/test_ipsec_tun_if_esp.py index 68d6b588b3c..eefd477c71d 100644 --- a/test/test_ipsec_tun_if_esp.py +++ b/test/test_ipsec_tun_if_esp.py @@ -9,7 +9,8 @@ from scapy.layers.inet import IP, UDP from scapy.layers.inet6 import IPv6 from framework import VppTestRunner from template_ipsec import TemplateIpsec, IpsecTun4Tests, IpsecTun6Tests, \ - IpsecTun4, IpsecTun6, IpsecTcpTests, mk_scapy_crypt_key + IpsecTun4, IpsecTun6, IpsecTcpTests, mk_scapy_crypt_key, \ + IpsecTun6HandoffTests, IpsecTun4HandoffTests from vpp_ipsec_tun_interface import VppIpsecTunInterface from vpp_gre_interface import VppGreInterface from vpp_ipip_tun_interface import VppIpIpTunInterface @@ -243,7 +244,8 @@ class TemplateIpsec6TunIfEsp(TemplateIpsec): super(TemplateIpsec6TunIfEsp, self).tearDown() -class TestIpsec6TunIfEsp1(TemplateIpsec6TunIfEsp, IpsecTun6Tests): +class TestIpsec6TunIfEsp1(TemplateIpsec6TunIfEsp, + IpsecTun6Tests): """ Ipsec ESP - TUN tests """ tun6_encrypt_node_name = "esp6-encrypt-tun" tun6_decrypt_node_name = "esp6-decrypt-tun" @@ -259,6 +261,20 @@ class TestIpsec6TunIfEsp1(TemplateIpsec6TunIfEsp, IpsecTun6Tests): self.verify_tun_46(self.params[socket.AF_INET6], count=257) +class TestIpsec6TunIfEspHandoff(TemplateIpsec6TunIfEsp, + IpsecTun6HandoffTests): + """ Ipsec ESP 6 Handoff tests """ + tun6_encrypt_node_name = "esp6-encrypt-tun" + tun6_decrypt_node_name = "esp6-decrypt-tun" + + +class TestIpsec4TunIfEspHandoff(TemplateIpsec4TunIfEsp, + IpsecTun4HandoffTests): + """ Ipsec ESP 4 Handoff tests """ + tun4_encrypt_node_name = "esp4-encrypt-tun" + tun4_decrypt_node_name = "esp4-decrypt-tun" + + class TestIpsec4MultiTunIfEsp(TemplateIpsec, IpsecTun4): """ IPsec IPv4 Multi Tunnel interface """ |