Re: [netconf] RESTCONF support in private candidates draft

Andy Bierman <andy@yumaworks.com> Tue, 06 February 2024 17:35 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5519FC151081 for <netconf@ietfa.amsl.com>; Tue, 6 Feb 2024 09:35:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sBBhnDrAtCx9 for <netconf@ietfa.amsl.com>; Tue, 6 Feb 2024 09:35:51 -0800 (PST)
Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 86254C14F5FC for <netconf@ietf.org>; Tue, 6 Feb 2024 09:35:51 -0800 (PST)
Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-295c8b795e2so4377261a91.0 for <netconf@ietf.org>; Tue, 06 Feb 2024 09:35:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1707240950; x=1707845750; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=k1+N8Q9t2NKDgZuyHcB6NYcljpgHjwG9Orf1bD9wV3U=; b=lDBvKVMeg6DTt7aYHye49sZFhw8MSZDu/Qtrnoa+tj672XyCqxAo/jPypx20vEzMeW 0AiQKR5/0weh3QMDf62tWRv9aGmiYFmWEGozmoKIBxRa4mYG/sFwRVAsNz0d2p6bFzLU BUFxZ+612JSGgiHIPXAgSvFTx0OTKPfeaWLDh9CHnnY/WTzZHMsh+xmww+vM7RSoqLqc oQZnMjelMaO8oObkPcq307Dk+RrVP/NME8qDXHK7b/cYrYKvfK6PWGfgAHNB5vFwoofV 8sMYWsI78bSZ2vmMD2NecXG1iD+G4aXobiTF5TPASrLCRRO2sVDfW/XKZ0keP04nJsM8 v1gA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707240950; x=1707845750; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k1+N8Q9t2NKDgZuyHcB6NYcljpgHjwG9Orf1bD9wV3U=; b=HlFKUo9x5ty9C7a1a1im44z/KDoSvHF1cNFHKJ3NzH/NmUon3EHJF4wAANsJg0WaPV Kk9RFMP3F6OLqBTV2KCOppTs7PNXWu9Dy9PYMt7jiOlpQKGIDm6YTYSGpecz5xR1EB2H YbQxBi50cTOKGWLIJYI8BOuqAk4v0uMZsX7pLnHvZBerV2fqI/jCPQY3ZXkrxWjgso+L mlkcBE2AGRJisGg38xl38cmDzIU26YS9RJGXB965kO9aiEXXwJ8TsCjBI6O6ryOpZgzI bpBcPddk5QEeJ9z4jCJMP4KfY3CTyqZGCDC03Fy4kkmvHWkI20DWrRNAT11/ww3HHLdw DlVg==
X-Gm-Message-State: AOJu0YwgE1ZSejWDozvfUhYop1S68RWh4iL+boIOLGluu/QIuYZuRCgJ nObAm0dC3IiSRI/2RVzGqMhYNT0UpZ36YASDZvsh4vj7nuhq2VogeGAnPDvc3KuP18UCANg2m8u B0QqPF7PrbMDpQZGmdlcCAKDZ/El+d9+mdGCyYj0Su2QW2OYv
X-Google-Smtp-Source: AGHT+IFftLZCdAzmpZL1CskjXoRfW87gsw1bfdn5MsLv0RZIWB8Cr4BDKNnnHlRnbPof1YD9IS+ruUCrRYTjTmUxJL0=
X-Received: by 2002:a17:90b:4b48:b0:296:1979:cc61 with SMTP id mi8-20020a17090b4b4800b002961979cc61mr265525pjb.0.1707240950316; Tue, 06 Feb 2024 09:35:50 -0800 (PST)
MIME-Version: 1.0
References: <58EBA620-2449-4A0C-8A53-41DB5113D9D5@cisco.com>
In-Reply-To: <58EBA620-2449-4A0C-8A53-41DB5113D9D5@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 06 Feb 2024 09:35:39 -0800
Message-ID: <CABCOCHTCftFmvK8p1zQBR74Hs5QauakX_LeG8CASxdzxqt+Q0g@mail.gmail.com>
To: "Robert Wills (rowills)" <rowills=40cisco.com@dmarc.ietf.org>
Cc: "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000063d3b70610ba02ec"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Z9E_FA_mbUdO588ujJCTYXM6oO0>
Subject: Re: [netconf] RESTCONF support in private candidates draft
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Feb 2024 17:35:56 -0000

On Mon, Feb 5, 2024 at 4:32 AM Robert Wills (rowills) <rowills=
40cisco.com@dmarc.ietf.org> wrote:

> Hi Netconf Working Group,
>
>
>
> After James and I presented an update on draft-ietf-netconf-privcand-01 at
> IETF 118, Kent asked about RESTCONF support in the draft, and specifically
> about the lifecycle of a private candidate when using RESTCONF. This email
> is to follow up on that question, and to ask the Working Group whether
> RESTCONF support should be kept in this draft.
>
>
>
> Currently, the draft states that
>
>
>
> "When a private candidate is used by RESTCONF, it exists only for the
> duration of the RESTCONF request." (draft-ietf-netconf-privcand-01 Section
> 2.3).
>
>
>
> Later, the draft expands on this by stating that changes made to a private
> candidate will be committed as part of the same request:
>
>
>
> "When the server advertises the :private-candidate capability and the
> client does not explicitly reference a datastore in their request, all
> edits are made to a new private candidate, and the private candidate is
> committed. This is analagous to the behavior of RESTCONF when the
> :candidate capability is specified by the server.
>
>
>
> "When the private-candidate datastore is explicitly referenced, edits are
> made to a new private candidate and the private candidate is committed."
>
>
>
> (draft-ietf-netconf-privcand-01 Section 4.4.3)
>
>
>
> This wording is intended to preserve the high-level goal of private
> candidates, namely allowing multiple clients to make independent
> configuration changes, and to behave similarly to RESTCONF's current
> behavior for the (shared) candidate. (RESTCONF RFC 8040 Section 1.4: "The
> candidate MUST be automatically committed to running immediately after each
> successful edit").
>
>
>
> As far as I'm aware, RESTCONF doesn't currently have a mechanism for
> editing a datastore and then committing the changes in a separate request.
> The authors wanted to avoid having to specify such a mechanism, partly
> because neither of us are RESTCONF experts, and partly because it could
> also apply to other datastores (such as the “shared” candidate).
>
>
>
> If more work is needed on the RESTCONF support for the private candidate
> datastore, I think it would be better to remove RESTCONF from this draft
> and address it in a separate draft later, with an author who's a RESTCONF
> expert.
>
>
>
> Thoughts and comments are very welcome.
>


A candidate datastore that can only accept one edit and then automatically
commit is not useful.
I agree RESTCONF should be removed from this draft.



>
>
> Robert.
>
> co-author, privcand
>

Andy


> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>