[Netconf] activate-configured-subecription - WGLC subscribed-notifications-16

Martin Bjorklund <mbj@tail-f.com> Wed, 12 September 2018 12:01 UTC

Return-Path: <mbj@tail-f.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 65AD3130DEE for <netconf@ietfa.amsl.com>; Wed, 12 Sep 2018 05:01:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 QGUHFBpioGah for <netconf@ietfa.amsl.com>; Wed, 12 Sep 2018 05:01:12 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id B7FBB129C6A for <netconf@ietf.org>; Wed, 12 Sep 2018 05:01:11 -0700 (PDT)
Received: from localhost (h-80-27.A165.priv.bahnhof.se [212.85.80.27]) by mail.tail-f.com (Postfix) with ESMTPSA id 229731AE02BE for <netconf@ietf.org>; Wed, 12 Sep 2018 14:01:10 +0200 (CEST)
Date: Wed, 12 Sep 2018 14:01:09 +0200
Message-Id: <20180912.140109.1250692833398495223.mbj@tail-f.com>
To: netconf@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/QqgOUmA8Zm8PqLHM7HHZUZV6WG4>
Subject: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Configuration WG mailing 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: Wed, 12 Sep 2018 12:01:18 -0000

Hi,

I forgot one thing in my review, that has been discussed (slightly
off-topic) in the thread "netconf call home connection type".

The SN draft (implicitly) assumes that for dynamic subscriptions,
after a successful "establish-subscription" operation, notification
messages can start to flow to the client.

The exact mechanism for this is transport-protocol-dependent.

For NETCONF, the netconf-notif draft will need to update RFC 6241,
since 6241 refers to 5277 which says that a <notification> message can
only be sent after a successful "create-subscription".  netconf-notif
updates this to allow <notification> messages to also be sent after a
succsessful "establish-subscription".

For RESTCONF, the restconf-notif draft defines a new mechanism for how
notifications are delivered; instead of locating the SSE resource url
from the "streams" in "ietf-restconf-monitoring", this draft now
augments a location leaf to the output of "establish-subscription".
(It probably doesn't have to update 8040, but *maybe* the mechanism in
8040 ought to be deprecated)


For configured subscriptions however, the SN draft doesn't specify how
the flow of notifications should start.  One view is that this is
transport-protocol-specific.  However, I think that for all RPC-based
transport-protocols (currently NETCONF and RESTCONF) it makes sense to
have a common way to get the notifications to be sent.  Hence I
suggest that this draft adds a new rpc operation
"activate-configured-subscription" (better name anyone?).  This rpc
would be invoked by the client after a call home to start the flow of
configured subscriptions.  If there are no such subscriptions or the
session is not a call home session and error would be returned.

We might define non-RPC-based transport protocols for configured
subscriptions in the future.  Such a protocol can obviously not use
this rpc, but OTOH it can't use establish-subscription either.  I
think this is ok.

With such an RPC, netconf-notif would udate 6241 to say that
<notification> messages can be sent after a succsessful
"establish-subscription" or "activate-configured-subscription" rpc.

And with such an RPC, restconf-notif can support configured
subscriptions over proper RESTCONF; it would augment a "location" leaf
to the output of activate-configured-subscription, which would contain
the URL to the event flow, so that it works just like dynamic
subscriptions.


If we don't add this RPC to the SN draft, each protocol draft will
have to define its own version of this operation.



/martin