def _get_or_create_ospf_processes(node_dict, node):
    """
    Get the OSPF processes dict under the specified node.

    If it or any of its parents does not already exist, create them.
    """
    return node_dict.setdefault(node, {}).setdefault('OSPF', {}).setdefault(
        'Processes', {})
