@staticmethod
def _create_ports_per_numa(node, interfaces):
    """
        Create a dictionary or ports per numa node
        :param node: Node dictionary
        :param interfaces: All the interfaces to be used by vpp
        :type node: dict
        :type interfaces: dict
        :returns: The ports per numa dictionary
        :rtype: dict
        """
    ports_per_numa = {}
    for item in interfaces.items():
        i = item[1]
        if i['numa_node'] not in ports_per_numa:
            ports_per_numa[i['numa_node']] = {'interfaces': []}
            ports_per_numa[i['numa_node']]['interfaces'].append(i)
        else:
            ports_per_numa[i['numa_node']]['interfaces'].append(i)
    node['cpu']['ports_per_numa'] = ports_per_numa
    return ports_per_numa
