Fixes for buliding for 32bit targets:
[vpp.git] / test / test_ipsecmb_ah.py
1 from test_ipsec_ah import TemplateIpsecAh
2 from template_ipsec import IpsecTraTests, IpsecTunTests, IpsecTcpTests
3
4
5 class TestIpsecMBAh1(TemplateIpsecAh, IpsecTraTests, IpsecTunTests):
6     """ IpsecMB AH - TUN & TRA tests """
7     extra_vpp_plugin_config = [
8         "plugin", "ipsecmb_plugin.so", "{", "enable", "}"]
9
10     tra4_encrypt_node_name = "ah4-encrypt-ipsecmb"
11     tra4_decrypt_node_name = "ah4-decrypt-ipsecmb"
12     tra6_encrypt_node_name = "ah6-encrypt-ipsecmb"
13     tra6_decrypt_node_name = "ah6-decrypt-ipsecmb"
14     tun4_encrypt_node_name = "ah4-encrypt-ipsecmb"
15     tun4_decrypt_node_name = "ah4-decrypt-ipsecmb"
16     tun6_encrypt_node_name = "ah6-encrypt-ipsecmb"
17     tun6_decrypt_node_name = "ah6-decrypt-ipsecmb"
18
19     @classmethod
20     def ipsec_select_backend(cls):
21         cls.vapi.ipsec_select_backend(protocol=cls.vpp_ah_protocol, index=1)
22
23
24 class TestIpsecMBAh2(TemplateIpsecAh, IpsecTcpTests):
25     """ IpsecMB AH - TCP tests """
26     extra_vpp_plugin_config = [
27         "plugin", "ipsecmb_plugin.so", "{", "enable", "}"]
28
29     @classmethod
30     def ipsec_select_backend(cls):
31         cls.vapi.ipsec_select_backend(protocol=cls.vpp_ah_protocol, index=1)