From be16020c5034bc69df25a8ecd7081aec9898d93c Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Thu, 8 Nov 2018 13:25:49 +0100 Subject: add ipsecmb plugin Change-Id: I99c0737dfeeec2db267773625ddc9b55324fd237 Signed-off-by: Klement Sekera --- test/test_ipsecmb_ah.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/test_ipsecmb_ah.py (limited to 'test/test_ipsecmb_ah.py') diff --git a/test/test_ipsecmb_ah.py b/test/test_ipsecmb_ah.py new file mode 100644 index 00000000000..294d5ceeb89 --- /dev/null +++ b/test/test_ipsecmb_ah.py @@ -0,0 +1,31 @@ +from test_ipsec_ah import TemplateIpsecAh +from template_ipsec import IpsecTraTests, IpsecTunTests, IpsecTcpTests + + +class TestIpsecMBAh1(TemplateIpsecAh, IpsecTraTests, IpsecTunTests): + """ IpsecMB AH - TUN & TRA tests """ + extra_vpp_plugin_config = [ + "plugin", "ipsecmb_plugin.so", "{", "enable", "}"] + + tra4_encrypt_node_name = "ah4-encrypt-ipsecmb" + tra4_decrypt_node_name = "ah4-decrypt-ipsecmb" + tra6_encrypt_node_name = "ah6-encrypt-ipsecmb" + tra6_decrypt_node_name = "ah6-decrypt-ipsecmb" + tun4_encrypt_node_name = "ah4-encrypt-ipsecmb" + tun4_decrypt_node_name = "ah4-decrypt-ipsecmb" + tun6_encrypt_node_name = "ah6-encrypt-ipsecmb" + tun6_decrypt_node_name = "ah6-decrypt-ipsecmb" + + @classmethod + def ipsec_select_backend(cls): + cls.vapi.ipsec_select_backend(protocol=cls.vpp_ah_protocol, index=1) + + +class TestIpsecMBAh2(TemplateIpsecAh, IpsecTcpTests): + """ IpsecMB AH - TCP tests """ + extra_vpp_plugin_config = [ + "plugin", "ipsecmb_plugin.so", "{", "enable", "}"] + + @classmethod + def ipsec_select_backend(cls): + cls.vapi.ipsec_select_backend(protocol=cls.vpp_ah_protocol, index=1) -- cgit 1.2.3-korg