summaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_provider.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-29 20:23:58 +0000
committerDamjan Marion <dmarion@me.com>2019-04-02 14:10:28 +0000
commitf05e732e4af604d37de5b665436594e8e2eee45d (patch)
tree015c62c1c60c22e6dcd8edc8ccf0bdca75cd2ac9 /test/vpp_papi_provider.py
parent2b5ba9501c3dda3645bf01eb53b2821471f2a946 (diff)
IPSEC-GRE; tests
failing test disabled on ARM Change-Id: I6b7535cd8f51fdaf9786ba77f9f61a7d8d049bbd Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r--test/vpp_papi_provider.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 91832b57e4f..260e6b28d0b 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -2498,6 +2498,19 @@ class VppPapiProvider(object):
'show_instance': show_instance
})
+ def ipsec_gre_tunnel_add_del(self, local_ip, remote_ip,
+ sa_out, sa_in, is_add=1):
+ return self.api(self.papi.ipsec_gre_tunnel_add_del,
+ {
+ 'is_add': is_add,
+ 'tunnel': {
+ 'src': local_ip,
+ 'dst': remote_ip,
+ 'local_sa_id': sa_out,
+ 'remote_sa_id': sa_in
+ }
+ })
+
def ipsec_select_backend(self, protocol, index):
return self.api(self.papi.ipsec_select_backend,
{'protocol': protocol, 'index': index})