summaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_provider.py
diff options
context:
space:
mode:
authorPavel Kotucek <pkotucek@cisco.com>2016-11-04 09:58:01 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-15 17:49:14 +0000
commitf6e3dc4778ef910d4ae6114783bd8f50887e6d0d (patch)
tree0782a31c7c5e6d16c349278744264e90875245fa /test/vpp_papi_provider.py
parent7c8eda16d4bc10bf779200b23369e2ee12843dc1 (diff)
span: add feature (rx only) (VPP-185)
Change-Id: I0f7cbf06b5a5acd745d13c9f5c761ea18132107b Signed-off-by: marek <mazavods@gmail.com> Signed-off-by: Damjan Marion <damarion@cisco.com> Signed-off-by: Pavel Kotucek <pkotucek@cisco.com> Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r--test/vpp_papi_provider.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 5721b6b92ad..2148e94b2a8 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -401,3 +401,13 @@ class VppPapiProvider(object):
dst_address
)
)
+
+ def sw_interface_span_enable_disable(self, sw_if_index_from, sw_if_index_to, enable=1):
+ """
+
+ :param sw_if_index_from:
+ :param sw_if_index_to:
+ :param enable
+
+ """
+ return self.api(vpp_papi.sw_interface_span_enable_disable, (sw_if_index_from, sw_if_index_to, enable ))