diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2018-09-19 13:36:16 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-27 18:31:53 +0000 |
commit | b1be2a0bb8d9a72bf0b868befaf5e966b9c26edb (patch) | |
tree | a877e70fa54db94fb4eb072d20e3c6b2932ea9b4 /test/vpp_papi_provider.py | |
parent | 10a690bee9091136e2a4e21e8501ec7a61bd2b5f (diff) |
memif: Memif Test Case
Change-Id: Ic0d5fc6ccbd496afcc870b908ef799af7c804c30
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r-- | test/vpp_papi_provider.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index b814da27b33..f63ca6a4180 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -3824,3 +3824,44 @@ class VppPapiProvider(object): def pipe_dump(self): return self.api(self.papi.pipe_dump, {}) + + def memif_create( + self, + role, + mode, + rx_queues=None, + tx_queues=None, + _id=None, + socket_id=None, + secret=None, + ring_size=None, + buffer_size=None, + hw_addr=None): + return self.api(self.papi.memif_create, + {'role': role, + 'mode': mode, + 'rx_queues': rx_queues, + 'tx_queues': tx_queues, + 'id': _id, + 'socket_id': socket_id, + 'secret': secret, + 'ring_size': ring_size, + 'buffer_size': buffer_size, + 'hw_addr': hw_addr}) + + def memif_delete(self, sw_if_index): + return self.api(self.papi.memif_delete, {'sw_if_index': sw_if_index}) + + def memif_dump(self): + return self.api(self.papi.memif_dump, {}) + + def memif_socket_filename_add_del( + self, is_add, socket_id, socket_filename): + return self.api( + self.papi.memif_socket_filename_add_del, + {'is_add': is_add, + 'socket_id': socket_id, + 'socket_filename': socket_filename}) + + def memif_socket_filename_dump(self): + return self.api(self.papi.memif_socket_filename_dump, {}) |