diff options
author | Klement Sekera <ksekera@cisco.com> | 2018-04-17 18:04:57 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-09 21:54:10 +0000 |
commit | 4b089f27b3eda69be2fc8a9ef9f74d39cd00fc7f (patch) | |
tree | 1cd816a7fcdc0b68d5471c7729c5f882f947d1e0 /test/test_ipsec_esp.py | |
parent | 8e43d04ca4f4496aaefc4f5e2b6e1c0951624099 (diff) |
ipsec: support UDP encap/decap for NAT traversal
Change-Id: I65c12617ad49e4d5ef242e53988782f0cefa5684
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/test_ipsec_esp.py')
-rw-r--r-- | test/test_ipsec_esp.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_ipsec_esp.py b/test/test_ipsec_esp.py index f6782749148..15ce4a96878 100644 --- a/test/test_ipsec_esp.py +++ b/test/test_ipsec_esp.py @@ -31,11 +31,11 @@ class TestIpsecEsp(VppTestCase): TUNNEL MODE: --- encrypt --- plain --- - |pg0| -------> |VPP| ------> |pg1| + |pg0| <------- |VPP| <------ |pg1| --- --- --- --- decrypt --- plain --- - |pg0| <------- |VPP| <------ |pg1| + |pg0| -------> |VPP| ------> |pg1| --- --- --- Note : IPv6 is not covered @@ -103,14 +103,14 @@ class TestIpsecEsp(VppTestCase): l_stopaddr, r_startaddr, r_stopaddr, - protocol=50) + protocol=socket.IPPROTO_ESP) cls.vapi.ipsec_spd_add_del_entry( spd_id, l_startaddr, l_stopaddr, r_startaddr, r_stopaddr, - protocol=50, + protocol=socket.IPPROTO_ESP, is_outbound=0) l_startaddr = l_stopaddr = socket.inet_pton( socket.AF_INET, cls.remote_pg0_lb_addr) @@ -172,14 +172,14 @@ class TestIpsecEsp(VppTestCase): l_stopaddr, r_startaddr, r_stopaddr, - protocol=50) + protocol=socket.IPPROTO_ESP) cls.vapi.ipsec_spd_add_del_entry( spd_id, l_startaddr, l_stopaddr, r_startaddr, r_stopaddr, - protocol=50, + protocol=socket.IPPROTO_ESP, is_outbound=0) l_startaddr = l_stopaddr = cls.pg2.local_ip4n r_startaddr = r_stopaddr = cls.pg2.remote_ip4n |