X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FCpuUtils.py;h=5805ba7787d5efc8953dd05518c04fa8a7f34a6a;hp=f556c518144c3dbfdbc4ddf07961b1b298ab48a4;hb=b6606e7625e308a66bdfb9d5a9c065b58e429a99;hpb=a275fa0062158d712152f542b7bc9ec40b5c5f31 diff --git a/resources/libraries/python/CpuUtils.py b/resources/libraries/python/CpuUtils.py index f556c51814..5805ba7787 100644 --- a/resources/libraries/python/CpuUtils.py +++ b/resources/libraries/python/CpuUtils.py @@ -268,7 +268,7 @@ class CpuUtils: :returns: List of CPUs allocated to NF. :rtype: list :raises RuntimeError: If we require more cpus than available or if - placement is not possible due to wrong parameters. + placement is not possible due to wrong parameters. """ if not 1 <= nf_chain <= nf_chains: raise RuntimeError(u"ChainID is out of range!") @@ -500,9 +500,9 @@ class CpuUtils: return cpu_idle_list @staticmethod - def get_affinity_vpp_vswitch( + def get_affinity_vswitch( nodes, node, phy_cores, rx_queues=None, rxd=None, txd=None): - """Get affinity or VPP switch. + """Get affinity for vswitch. :param nodes: Topology nodes. :param node: Topology node string.