diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ipsec_ah.py | 12 | ||||
-rw-r--r-- | test/test_ipsec_esp.py | 20 | ||||
-rw-r--r-- | test/test_ipsec_nat.py | 4 | ||||
-rw-r--r-- | test/vpp_ipsec.py | 2 | ||||
-rw-r--r-- | test/vpp_papi_provider.py | 4 |
5 files changed, 21 insertions, 21 deletions
diff --git a/test/test_ipsec_ah.py b/test/test_ipsec_ah.py index 190bde78f56..b23dd3f84f9 100644 --- a/test/test_ipsec_ah.py +++ b/test/test_ipsec_ah.py @@ -213,7 +213,7 @@ class ConfigIpsecAH(TemplateIpsec): remote_tun_if_host, self.pg1.remote_addr[addr_type], self.pg1.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, priority=10, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=0, @@ -226,7 +226,7 @@ class ConfigIpsecAH(TemplateIpsec): self.pg1.remote_addr[addr_type], remote_tun_if_host, remote_tun_if_host, - 0, + socket.IPPROTO_RAW, policy=e.IPSEC_API_SPD_ACTION_PROTECT, priority=10, ) @@ -238,7 +238,7 @@ class ConfigIpsecAH(TemplateIpsec): remote_tun_if_host, self.pg0.local_addr[addr_type], self.pg0.local_addr[addr_type], - 0, + socket.IPPROTO_RAW, priority=20, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=0, @@ -251,7 +251,7 @@ class ConfigIpsecAH(TemplateIpsec): self.pg0.local_addr[addr_type], remote_tun_if_host, remote_tun_if_host, - 0, + socket.IPPROTO_RAW, policy=e.IPSEC_API_SPD_ACTION_PROTECT, priority=20, ) @@ -341,7 +341,7 @@ class ConfigIpsecAH(TemplateIpsec): self.tra_if.local_addr[addr_type], self.tra_if.remote_addr[addr_type], self.tra_if.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, priority=10, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=0, @@ -356,7 +356,7 @@ class ConfigIpsecAH(TemplateIpsec): self.tra_if.local_addr[addr_type], self.tra_if.remote_addr[addr_type], self.tra_if.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, policy=e.IPSEC_API_SPD_ACTION_PROTECT, priority=10, ) diff --git a/test/test_ipsec_esp.py b/test/test_ipsec_esp.py index 54b877112e9..90f013f8010 100644 --- a/test/test_ipsec_esp.py +++ b/test/test_ipsec_esp.py @@ -206,7 +206,7 @@ class ConfigIpsecESP(TemplateIpsec): remote_tun_if_host, self.pg1.remote_addr[addr_type], self.pg1.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, priority=10, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=0, @@ -221,7 +221,7 @@ class ConfigIpsecESP(TemplateIpsec): self.pg1.remote_addr[addr_type], remote_tun_if_host, remote_tun_if_host, - 0, + socket.IPPROTO_RAW, policy=e.IPSEC_API_SPD_ACTION_PROTECT, priority=10, ) @@ -235,7 +235,7 @@ class ConfigIpsecESP(TemplateIpsec): remote_tun_if_host, self.pg0.local_addr[addr_type], self.pg0.local_addr[addr_type], - 0, + socket.IPPROTO_RAW, priority=20, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=0, @@ -250,7 +250,7 @@ class ConfigIpsecESP(TemplateIpsec): self.pg0.local_addr[addr_type], remote_tun_if_host, remote_tun_if_host, - 0, + socket.IPPROTO_RAW, policy=e.IPSEC_API_SPD_ACTION_PROTECT, priority=20, ) @@ -337,7 +337,7 @@ class ConfigIpsecESP(TemplateIpsec): self.tra_if.local_addr[addr_type], self.tra_if.remote_addr[addr_type], self.tra_if.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, priority=10, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=0, @@ -352,7 +352,7 @@ class ConfigIpsecESP(TemplateIpsec): self.tra_if.local_addr[addr_type], self.tra_if.remote_addr[addr_type], self.tra_if.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, policy=e.IPSEC_API_SPD_ACTION_PROTECT, priority=10, ) @@ -452,7 +452,7 @@ class TestIpsecEsp1( self.pg1.remote_addr[p4.addr_type], p6.remote_tun_if_host4, p6.remote_tun_if_host4, - 0, + socket.IPPROTO_RAW, priority=10, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=1, @@ -487,7 +487,7 @@ class TestIpsecEsp1( self.pg1.remote_addr[p6.addr_type], p4.remote_tun_if_host6, p4.remote_tun_if_host6, - 0, + socket.IPPROTO_RAW, priority=10, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=1, @@ -648,7 +648,7 @@ class TestIpsecEspAsync(TemplateIpsecEsp): self.pg1.remote_addr[self.p_sync.addr_type], self.p_sync.remote_tun_if_host, self.p_sync.remote_tun_if_host, - 0, + socket.IPPROTO_RAW, priority=1, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=1, @@ -707,7 +707,7 @@ class TestIpsecEspAsync(TemplateIpsecEsp): self.pg1.remote_addr[self.p_async.addr_type], self.p_async.remote_tun_if_host, self.p_async.remote_tun_if_host, - 0, + socket.IPPROTO_RAW, priority=2, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=1, diff --git a/test/test_ipsec_nat.py b/test/test_ipsec_nat.py index 64a2725dda6..881b5a7596c 100644 --- a/test/test_ipsec_nat.py +++ b/test/test_ipsec_nat.py @@ -275,7 +275,7 @@ class IPSecNATTestCase(TemplateIpsec): self.tun_if.remote_addr[addr_type], self.pg1.remote_addr[addr_type], self.pg1.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, priority=10, policy=e.IPSEC_API_SPD_ACTION_PROTECT, is_outbound=0, @@ -288,7 +288,7 @@ class IPSecNATTestCase(TemplateIpsec): self.pg1.remote_addr[addr_type], self.tun_if.remote_addr[addr_type], self.tun_if.remote_addr[addr_type], - 0, + socket.IPPROTO_RAW, policy=e.IPSEC_API_SPD_ACTION_PROTECT, priority=10, ).add_vpp_config() diff --git a/test/vpp_ipsec.py b/test/vpp_ipsec.py index 1db7f853e72..eb0209fc57a 100644 --- a/test/vpp_ipsec.py +++ b/test/vpp_ipsec.py @@ -85,7 +85,7 @@ class VppIpsecSpdEntry(VppObject): local_stop, remote_start, remote_stop, - proto, + proto=socket.IPPROTO_RAW, priority=100, policy=None, is_outbound=1, diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index a4a3799f916..db2b32e1d38 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -980,7 +980,7 @@ class VppPapiProvider(object): local_port_stop=65535, remote_port_start=0, remote_port_stop=65535, - protocol=0, + protocol=socket.IPPROTO_RAW, policy=0, priority=100, is_outbound=1, @@ -1010,7 +1010,7 @@ class VppPapiProvider(object): :param is_add: (Default value = 1) """ return self.api( - self.papi.ipsec_spd_entry_add_del, + self.papi.ipsec_spd_entry_add_del_v2, { "is_add": is_add, "entry": { |