From bc5f5305997e3b8f624b64bcc2d68687f31d515a Mon Sep 17 00:00:00 2001 From: vinay Tripathi Date: Fri, 20 Oct 2023 05:20:47 +0000 Subject: 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 --- test/asf/test_ipsec_default.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/asf') 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): -- cgit 1.2.3-korg