Re: [netmod] Common etag, timestamp on all interfaces (draft-lindblad-netconf-transaction-id)

Andy Bierman <andy@yumaworks.com> Thu, 24 March 2022 00:04 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6ABC83A11AE for <netmod@ietfa.amsl.com>; Wed, 23 Mar 2022 17:04:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20210112.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pPWBBtxGgSLf for <netmod@ietfa.amsl.com>; Wed, 23 Mar 2022 17:04:42 -0700 (PDT)
Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC5BA3A11BA for <netmod@ietf.org>; Wed, 23 Mar 2022 17:04:08 -0700 (PDT)
Received: by mail-yb1-xb2a.google.com with SMTP id g24so5596820ybj.13 for <netmod@ietf.org>; Wed, 23 Mar 2022 17:04:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Frjiw2IUatwI+RhYv4KrckM4l8SxmREQsUxH4Rro33c=; b=Pbj8im9f/RjpeYRZ7rIOnde/dTpOaXbF9XhnYynOH6uWuNCjPm7jyrA92mRFnX1C86 MUbp2HGvlgGW1y2awc2YLQWRBXnmCwD27esV0RnNnJxmtQ+5G7H8GSkCoJz8irGDiIUF Gpb7Jhhlo+E6MyaL35HY7jsh4KFjtk9WG0IhqsbSA3k2Cs/cu1gzHTI+q1kYEiul4w/3 xA/33t1lK5S12D5vMn3aSqWAF3Im6uAuJd/2vEwo0eCrOYxzoDjsZxGThklXMqdpAsfn e5tZ8/Y9Ef7Cabuso6ZzKXllpjX3F0VQfhk9f3EZQsBez4hZM5QpQAYbIAF0hp0z0ak4 6QnA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Frjiw2IUatwI+RhYv4KrckM4l8SxmREQsUxH4Rro33c=; b=XzoYABEkHBMNPC5tJlVewAcKaGNcpOHZkcuUbaJn7KlSfjrtWgcghrt5kVRVLfEzqt ktj7hJ/gMkdjSXpqiJpgQqgNRYkLn9BG0/JCsTyPjGuQ2nBThdJG8CWDMUzPOTiJB2Rl tU/RDOKevDf43LahqFcniWCE7/nYJkw/zlg4MH0H6mqr1AFfl7RIWJQQhIdRM63LhhZf hHbITgA5RaS9upVaYdwDwXagb4u/n4fQJDg+vVc2zHIi6f47DGHkAFBXwBKBl3koSnbn C0U9207FQzsLmKmbqzyHhdtCligpkpPhIEWEuz54xw4O3EHo4eBTgbigtr3o1gp6dh/p 73bQ==
X-Gm-Message-State: AOAM531o+u2yoEaf4vocntSAG6V9+O5mqaQ2IsIFE4j+bCZ2k5E6/HWM lNqHmJETxlc0ezhrWR1laW6V4bx2DwF8KbN+IEmQ0g==
X-Google-Smtp-Source: ABdhPJxmhimXge0BMeG4FK8yntb/ZFV43RHNn5X5rNmNWyVy3DCO1YTqoUfXGTdw2WcXkyaMlgxqIlpaPmvIaD6ZWL4=
X-Received: by 2002:a25:a123:0:b0:633:a6b3:875b with SMTP id z32-20020a25a123000000b00633a6b3875bmr2562625ybh.430.1648080247477; Wed, 23 Mar 2022 17:04:07 -0700 (PDT)
MIME-Version: 1.0
References: <VI1PR0701MB2351D399AB78445A66E16DD1F0189@VI1PR0701MB2351.eurprd07.prod.outlook.com> <0100017fb906d433-172359f0-01a8-4a82-8e25-8079bdafef76-000000@email.amazonses.com> <VI1PR0701MB2351A58EB0EC5973DAD7454EF0189@VI1PR0701MB2351.eurprd07.prod.outlook.com>
In-Reply-To: <VI1PR0701MB2351A58EB0EC5973DAD7454EF0189@VI1PR0701MB2351.eurprd07.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 23 Mar 2022 17:03:56 -0700
Message-ID: <CABCOCHSBHUy4gdQ9vnxMEKGkB4azv5Hjw0shiorVV2-WW_Unrw@mail.gmail.com>
To: =?UTF-8?Q?Bal=C3=A1zs_Lengyel?= <balazs.lengyel=40ericsson.com@dmarc.ietf.org>
Cc: Kent Watsen <kent@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000b6692505daeb95a5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/nTp7cUas9t1bXvR7AoTaAmtEioQ>
Subject: Re: [netmod] Common etag, timestamp on all interfaces (draft-lindblad-netconf-transaction-id)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Mar 2022 00:04:49 -0000

On Wed, Mar 23, 2022 at 4:33 PM Balázs Lengyel <balazs.lengyel=
40ericsson.com@dmarc.ietf.org> wrote:

> *From:* Kent Watsen <kent@watsen.net>
> *Sent:* Thursday, 24 March, 2022 00:05
> *To:* Balázs Lengyel <balazs.lengyel@ericsson.com>
> *Cc:* netmod@ietf.org
> *Subject:* Re: [netmod] Common etag, timestamp on all interfaces
> (draft-lindblad-netconf-transaction-id)
>
>
>
>
>
>
>
> I assume that the etag defined in your I-D is the same as the one defined
> in Restconf. Does or should your draft include a statement like:
>
> “The etag values maintained by the server are protocol/interface
> independent. If requested the same etag values will be visible on all
> interface including Restconf, Netconf, CLI etc.”
>
>
>
> While it makes sense that a server would use the same values across
> protocols, I'm unsure if it's needed and, if we do, if we could state it in
> a NETCONF-specific draft.
>
> BALAZS2: I see it as a VERY important advantage of the whole
> YANG/Netconf/Restconf ecosystem that the separate protocols (practically
> including the CLI and possibly a gui too) are just views of the same
> central configuration datastore. So IMO this is important and should be
> stated.
>
>
>


I strongly support this approach.
It applies to the entire server API, including notifications.
E.g., a client should be able to reuse code for processing NETCONF
notifications,
even if the protocol is RESTCONF or the new YANG-Push over UDP.

The RESTCONF mechanisms adapted from HTTP should be extended to be
protocol-independent.  Our goal should be code to the YANG models, NOT the
protocols.



>
> Restconf also includes timestamps. What was your reason to exclude them
> from your I-D ? IMHO if the server maintains timestamps they would be
> protocol/interface independent just as etags, so the task is to make them
> available on Netconf too (and maybe the CLI).
>
>
>
> I agree and have mentioned before.  LastModified either needs to be added,
> or justified why not added, to get my adoption support.
>
>
>

I agree. They both need to be supported in RESTCONF.
A timestamp can be applied to multiple servers, unlike the ETag values.
Typical usage is for the client to track its own polling timestamps,
and use If-Modified-Since to retrieve data only if needed.
The same timestamp can also be used with If-Unmodified-Since for edits.



>
> Regards Balazs
>
>
>
> Kent // contributor
>
>
>

Andy


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