diff options
author | 2025-02-19 14:16:33 +0100 | |
---|---|---|
committer | 2025-02-20 11:39:43 +0100 | |
commit | 006e5cc5b4ba1972d6e0f9ff9f3a5332336bad85 (patch) | |
tree | 069b420661fbce16372cae6f86f048776b04bb84 /resources/libraries/python/topology.py | |
parent | 10e9ea0af978882da73800c948b9141d37c8fde3 (diff) |
feat(core): octeon plugin introduction
Signed-off-by: Peter Mikus <peter.mikus@icloud.com>
Change-Id: I9f1193894e531a6eb946bef116d65788abb3de31
Diffstat (limited to 'resources/libraries/python/topology.py')
-rw-r--r-- | resources/libraries/python/topology.py | 28 |
1 files changed, 28 insertions, 0 deletions
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 @@ -1050,6 +1050,34 @@ class Topology: 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. |