- def _sw_interface_vhost_user_dump(node):
- """Get the Vhost-user dump on the given node.
-
- :param node: Given node to get Vhost dump from.
- :type node: dict
- :returns: List of Vhost-user interfaces data extracted from Papi
- response.
- :rtype: list
- """
- cmd = "sw_interface_vhost_user_dump"
- with PapiSocketExecutor(node) as papi_exec:
- details = papi_exec.add(cmd).get_details()
-
- for vhost in details:
- vhost["interface_name"] = vhost["interface_name"].rstrip('\x00')
- vhost["sock_filename"] = vhost["sock_filename"].rstrip('\x00')
-
- logger.debug("VhostUser details:\n{details}".format(details=details))
-
- return details
-
- @staticmethod
- def vpp_create_vhost_user_interface(node, socket):
+ def vpp_create_vhost_user_interface(
+ node, socket, is_server=False, enable_gso=False):