diff options
author | vinay Tripathi <vinayx.tripathi@intel.com> | 2023-10-20 05:20:47 +0000 |
---|---|---|
committer | Fan Zhang <fanzhang.oss@gmail.com> | 2023-10-31 10:33:13 +0000 |
commit | bc5f5305997e3b8f624b64bcc2d68687f31d515a (patch) | |
tree | d7fe0ff7b8881d26936568696353a9ff98faecfc /test/asf | |
parent | 75069cee95039172e8d2a3af58e4a8ed0a411d3a (diff) |
ipsec: modify IPsec related tests to send and verify UDP-encapsulated ESP traffics
In this patch, IPsec related test files have been modified to send UDP-encapsulated
ESP packets,and validate against Inbound and Outbound policies that are configured
with Bypass, Discard and Protect action.
Type: test
Change-Id: I4b8da18270fd177868223bfe1389dc9c50e86cc5
Signed-off-by: vinay Tripathi <vinayx.tripathi@intel.com>
Diffstat (limited to 'test/asf')
-rw-r--r-- | test/asf/test_ipsec_default.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/asf/test_ipsec_default.py b/test/asf/test_ipsec_default.py index e97e2ef6b50..2fefb771c48 100644 --- a/test/asf/test_ipsec_default.py +++ b/test/asf/test_ipsec_default.py @@ -3,7 +3,7 @@ import unittest from util import ppp from asfframework import VppTestRunner -from template_ipsec import IPSecIPv4Fwd +from template_ipsec import IpsecDefaultTemplate """ When an IPSec SPD is configured on an interface, any inbound packets @@ -32,7 +32,7 @@ packets are dropped as expected. """ -class IPSecInboundDefaultDrop(IPSecIPv4Fwd): +class IPSecInboundDefaultDrop(IpsecDefaultTemplate): """IPSec: inbound packets drop by default with no matching rule""" def test_ipsec_inbound_default_drop(self): @@ -114,7 +114,7 @@ class IPSecInboundDefaultDrop(IPSecIPv4Fwd): self.verify_policy_match(pkt_count, inbound_policy) -class IPSecOutboundDefaultDrop(IPSecIPv4Fwd): +class IPSecOutboundDefaultDrop(IpsecDefaultTemplate): """IPSec: outbound packets drop by default with no matching rule""" def test_ipsec_inbound_default_drop(self): |