Re: [netconf] RFC8639 capability on https-notif receiver implementation

Kent Watsen <kent+ietf@watsen.net> Thu, 27 May 2021 15:07 UTC

Return-Path: <01000179ae5debf2-86973cf9-70d7-4601-b901-962d8ca86334-000000@amazonses.watsen.net>
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 4DC593A1206; Thu, 27 May 2021 08:07:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.893
X-Spam-Level:
X-Spam-Status: No, score=-1.893 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.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 vzA0ECq-9Whd; Thu, 27 May 2021 08:07:48 -0700 (PDT)
Received: from a8-31.smtp-out.amazonses.com (a8-31.smtp-out.amazonses.com [54.240.8.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17D243A120E; Thu, 27 May 2021 08:07:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1622128066; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=SM3eUGrZ789HOzcOQ5cc4ObpE+o/yLX+Nh4VblLqcdU=; b=RIo8M9o3xdvApYQNN6Y8SHJQrVdWAmVtB2sLbEGsXRL2AXmwzIKZCFxDURGyDg9v aa43TO0V+4/7oIELFDxwZS2qc7m/F/JesJrq/AiOVUSb1rkxHbJMJn57VbCWUnAcdOS i9VLReAwzEFYrTUOFqYhk0UfxR6sABR8du0RPQ0c=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <01000179ae5debf2-86973cf9-70d7-4601-b901-962d8ca86334-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7DE08278-6A98-4BAB-963F-31C812BCC16C"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\))
Date: Thu, 27 May 2021 15:07:46 +0000
In-Reply-To: <1448778391.413238.1622108131158.JavaMail.zimbra@insa-lyon.fr>
Cc: draft-ietf-netconf-https-notif@ietf.org, pierre francois <pierre.francois@insa-lyon.fr>, Axel Rosenstiehl <axel.rosenstiehl@insa-lyon.fr>, "netconf@ietf.org" <netconf@ietf.org>
To: Alex Huang Feng <alex.huang-feng@insa-lyon.fr>
References: <1448778391.413238.1622108131158.JavaMail.zimbra@insa-lyon.fr>
X-Mailer: Apple Mail (2.3654.60.0.2.21)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2021.05.27-54.240.8.31
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/zLqNYG-1HdqvH8ca4OXMvLeSD7o>
Subject: Re: [netconf] RFC8639 capability on https-notif receiver implementation
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 27 May 2021 15:07:50 -0000

[CC-ing NETCONF WG mailing list]


Hi Alex,

Thanks for reaching out!


> I am part of Unyte team and we are now implementing and testing the https-notif protocol on the draft https://datatracker.ietf.org/doc/html/draft-ietf-netconf-https-notif-08 <https://datatracker.ietf.org/doc/html/draft-ietf-netconf-https-notif-08>
Always good to know about independent implementations in the works.


> We have implemented a library in C for the receiver and are planning to publish it as an open-source receiver implementation soon.

Nice contribution  - which capabilities will it support?

[be aware that there is an ongoing discussion regarding how capabilities should be supported: https://mailarchive.ietf.org/arch/msg/netconf/JmjttafVmRDaFzeLLNlYgrqfZWw <https://mailarchive.ietf.org/arch/msg/netconf/JmjttafVmRDaFzeLLNlYgrqfZWw>]


> We have some questions about the rfc-8639 capability (supporting the state machine defined in the rfc 8639).
> As I understood in the draft, https-notif receiver is not assumed to be a netconf/restconf server

Correct.


> and as I read in the rfc-8639, the state machine is implemented in the publisher.
> I'd like to know how does this capability impacts the receiver implementation.

Hopefully the RFC 8639 authors can chime in, but my understanding is that the various notifications (subscription-started, subscription-modified, etc.) enable the receiver to maintain a local copy of the state machine, in order to know how to internally-dispatch notifications?


> In the draft: 
> Note that, for RFC 8639 <https://datatracker.ietf.org/doc/html/rfc8639> configured subscriptions, the very first
>    notification must be the "subscription-started" notification.
> 
> Does this mean that on the receiver side, the first "/relay-notification" notification we receive is the "subscription-started" rpc body ?

Yes.


> Do we need to save a state in the receiver for later interaction ? Or the RFC 8639 support is just the first notification with the rpc ?

See previous comment, but my understanding is tenuous and hope others to chime in.


> Another observation on the draft, in the example 3.4, the json body for the GET capabilities is not valid (a colon is missed after the "receiver-capabilities").

Thanks!  Normally we run all code blocks through validation, but some of the code blocks in this draft elude that given the use of a pseudo YANG module...


> Looking forward to hearing from you,
> 
> Alex Huang Feng
> INSA de Lyon | INSA Télécom

K.