From 5d0136f09944b0d7ea9d1db5c368d4d0b36cedd2 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 12 May 2020 08:51:02 +0000 Subject: feature: Config end nodes are user specific Type: fix it is possible for a user to change the end node of a feature arc, but this change should only apply to that 'instnace' of the arc, not all arcs. for example, if a tunnel has its ipx-output end node changed to adj-midchain-tx, this shouldn't affect all ipx-output arcs. obviously... Signed-off-by: Neale Ranns Change-Id: I41daea7ba6907963e42140307d065c8bcfdcb585 --- test/test_ipsec_tun_if_esp.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/test_ipsec_tun_if_esp.py b/test/test_ipsec_tun_if_esp.py index 3ab0e73ff74..a59baf1dfbf 100644 --- a/test/test_ipsec_tun_if_esp.py +++ b/test/test_ipsec_tun_if_esp.py @@ -21,6 +21,7 @@ from vpp_sub_interface import L2_VTR_OP, VppDot1QSubint from vpp_teib import VppTeib from util import ppp from vpp_papi import VppEnum +from vpp_acl import AclRule, VppAcl, VppAclInterface def config_tun_params(p, encryption_type, tun_if): @@ -2027,6 +2028,17 @@ class TestIpsec4TunProtectTun(TemplateIpsec, self.config_sa_tun(p) self.config_protect(p) + # also add an output features on the tunnel and physical interface + # so we test they still work + r_all = AclRule(True, + src_prefix="0.0.0.0/0", + dst_prefix="0.0.0.0/0", + proto=0) + a = VppAcl(self, [r_all]).add_vpp_config() + + VppAclInterface(self, self.pg0.sw_if_index, [a]).add_vpp_config() + VppAclInterface(self, p.tun_if.sw_if_index, [a]).add_vpp_config() + self.verify_tun_44(p, count=127) c = p.tun_if.get_rx_stats() -- cgit 1.2.3-korg