From 006e5cc5b4ba1972d6e0f9ff9f3a5332336bad85 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Wed, 19 Feb 2025 14:16:33 +0100 Subject: feat(core): octeon plugin introduction Signed-off-by: Peter Mikus Change-Id: I9f1193894e531a6eb946bef116d65788abb3de31 --- resources/libraries/python/topology.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'resources/libraries/python/topology.py') diff --git a/resources/libraries/python/topology.py b/resources/libraries/python/topology.py index aacc277ecb..838ec3701a 100644 --- a/resources/libraries/python/topology.py +++ b/resources/libraries/python/topology.py @@ -1049,6 +1049,34 @@ class Topology: except KeyError: return None + @staticmethod + def get_num_rx_queues(node): + """Return num_rx_queues configuration of the node. + + :param node: Node created from topology. + :type node: dict + :returns: num_rx_queues configuration string. + :rtype: str + """ + try: + return node["num_rx_queues"] + except KeyError: + return None + + @staticmethod + def get_num_tx_queues(node): + """Return num_tx_queues configuration of the node. + + :param node: Node created from topology. + :type node: dict + :returns: num_tx_queues configuration string. + :rtype: str + """ + try: + return node["num_tx_queues"] + except KeyError: + return None + @staticmethod def set_interface_numa_node(node, iface_key, numa_node_id): """Set interface numa_node location. -- cgit