: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!")
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.