add ipsecmb plugin
[vpp.git] / test / test_ipsecmb_esp.py
1 from test_ipsec_esp import TemplateIpsecEsp
2 from template_ipsec import IpsecTraTests, IpsecTunTests, IpsecTcpTests
3
4
5 class TestIpsecMBEsp1(TemplateIpsecEsp, IpsecTraTests, IpsecTunTests):
6     """ IpsecMB ESP - TUN & TRA tests """
7     extra_vpp_plugin_config = [
8         "plugin", "ipsecmb_plugin.so", "{", "enable", "}"]
9     tra4_encrypt_node_name = "esp4-encrypt-ipsecmb"
10     tra4_decrypt_node_name = "esp4-decrypt-ipsecmb"
11     tra6_encrypt_node_name = "esp6-encrypt-ipsecmb"
12     tra6_decrypt_node_name = "esp6-decrypt-ipsecmb"
13     tun4_encrypt_node_name = "esp4-encrypt-ipsecmb"
14     tun4_decrypt_node_name = "esp4-decrypt-ipsecmb"
15     tun6_encrypt_node_name = "esp6-encrypt-ipsecmb"
16     tun6_decrypt_node_name = "esp6-decrypt-ipsecmb"
17
18     @classmethod
19     def ipsec_select_backend(cls):
20         cls.vapi.ipsec_select_backend(protocol=cls.vpp_esp_protocol, index=1)
21
22
23 class TestIpsecMBEsp2(TemplateIpsecEsp, IpsecTcpTests):
24     """ IpsecMB ESP - TCP tests """
25     extra_vpp_plugin_config = [
26         "plugin", "ipsecmb_plugin.so", "{", "enable", "}"]
27
28     @classmethod
29     def ipsec_select_backend(cls):
30         cls.vapi.ipsec_select_backend(protocol=cls.vpp_esp_protocol, index=1)