def METHOD_NAME(
    client, nfs_name, nfs_export_squash, original_squash_value, new_squash_value
):
    """Create rootsquash using conf file
    Args:
        client(obj): client object
        nfs_name(str): nfs server name
        nfs_export_squash(str): nfs squash export name
        original_squash_value(str): original squash value in conf file
        new_squash_value(str): new squash value in conf file
    """
    try:
        out = Ceph(client).nfs.export.get(nfs_name, nfs_export_squash)
        client.exec_command(sudo=True, cmd=f"echo '{out}' > export.conf")
        client.exec_command(
            sudo=True,
            cmd=f"sed -i 's/{original_squash_value}/{new_squash_value}/g' export.conf",
        )
        Ceph(client).nfs.export.apply(nfs_name, "export.conf")
    except Exception:
        raise OperationFailedError("failed to enable rootsquash using conf file")