aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_ipsec.py
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-06-24 15:41:03 +0000
committerMatthew Smith <mgsmith@netgate.com>2021-06-30 14:05:55 +0000
commit53dd08c59eac0c2fe2f7c38ec242c57bfc3ea0ad (patch)
treea6a356d819aba12e37f51eab435c80e80060840c /test/vpp_ipsec.py
parent595724a49072b30356e365ce78a3cc815980d342 (diff)
ipsec: Derive the TUNNEL_V6 flag from the configured address types
Type: improvement There's no need for the user to set the TUNNEL_V6 flag, it can be derived from the tunnel's address type. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I073073dc970b8a3f2b2645bc697fc00db1adbb47
Diffstat (limited to 'test/vpp_ipsec.py')
-rw-r--r--test/vpp_ipsec.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/vpp_ipsec.py b/test/vpp_ipsec.py
index 57e5f02696c..f9b7bc43752 100644
--- a/test/vpp_ipsec.py
+++ b/test/vpp_ipsec.py
@@ -217,8 +217,6 @@ class VppIpsecSA(VppObject):
if (tun_src):
self.tun_src = ip_address(text_type(tun_src))
self.flags = self.flags | e.IPSEC_API_SAD_FLAG_IS_TUNNEL
- if (self.tun_src.version == 6):
- self.flags = self.flags | e.IPSEC_API_SAD_FLAG_IS_TUNNEL_V6
if (tun_dst):
self.tun_dst = ip_address(text_type(tun_dst))
self.udp_src = udp_src