Re: [Netconf] I-D Action: draft-ietf-netconf-restconf-notif-09.txt

"Eric Voit (evoit)" <evoit@cisco.com> Wed, 31 October 2018 13:21 UTC

Return-Path: <evoit@cisco.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 A99B1130E23 for <netconf@ietfa.amsl.com>; Wed, 31 Oct 2018 06:21:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 QBxZEMD2zTUI for <netconf@ietfa.amsl.com>; Wed, 31 Oct 2018 06:21:24 -0700 (PDT)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5E67912DDA3 for <netconf@ietf.org>; Wed, 31 Oct 2018 06:21:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8178; q=dns/txt; s=iport; t=1540992084; x=1542201684; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GaQJbn1sZ/A3yTcWePiJVJw8zbIW4p7Jdy0vFqT4ceQ=; b=RlT4OYxoVtX4+zMym5Z8/C6glpDlUaXM6MU68wix2YoRr7D/gxCDzvmK CJF7NBHVcXBHSZbwSA/CAhYC37NnG8qAXIlWcBb2noKfSaSm6vn/68nay mIO7Z5kXSPvOGX/d1FuHsWgcJl02lfabVTbQQou6Kt/R4JhL4MzN+Z5a2 g=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AJAABoq9lb/51dJa1aAQkZAQEBAQEBAQEBAQEBBwEBAQEBAYFRBAEBAQEBCwGCBGZ/KAqDbIgYjh2DQJNnFIFmCwEBGAuEA0YCF4MeIjQNDQEDAQECAQECbRwMhToBAQEDAQEBIRE6CwUHBAIBCA4DBAEBAQICCQkUAgICJQsVCAgCBA4FCIMagXkID6ZkEYEigS6ELQGFdAWBC4peF4FBP4ERghR+gxsBAYE2ARIfECMODoIuglcCiHQ2hUaBRI5rCQKGaooWIJBPjHyKDgIRFIEmHTiBVXAVO4JsgiEFF4hchT5vihaBH4EfAQE
X-IronPort-AV: E=Sophos;i="5.54,447,1534809600"; d="scan'208";a="473843975"
Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2018 13:21:23 +0000
Received: from XCH-RTP-003.cisco.com (xch-rtp-003.cisco.com [64.101.220.143]) by rcdn-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id w9VDLMt7028655 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 31 Oct 2018 13:21:23 GMT
Received: from xch-rtp-013.cisco.com (64.101.220.153) by XCH-RTP-003.cisco.com (64.101.220.143) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 31 Oct 2018 09:21:22 -0400
Received: from xch-rtp-013.cisco.com ([64.101.220.153]) by XCH-RTP-013.cisco.com ([64.101.220.153]) with mapi id 15.00.1395.000; Wed, 31 Oct 2018 09:21:22 -0400
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: Martin Bjorklund <mbj@tail-f.com>
CC: "Reshad Rahman (rrahman)" <rrahman@cisco.com>, "kwatsen@juniper.net" <kwatsen@juniper.net>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] I-D Action: draft-ietf-netconf-restconf-notif-09.txt
Thread-Index: AQHUZ/KZjNTUG1zowU+t1K56L4Uaa6Uon9+AgA5OuoD///fhgIAAzz7QgAHKKgD//+G4wA==
Date: Wed, 31 Oct 2018 13:21:21 +0000
Message-ID: <9e4e338991cf4666a4ae11783e63de57@XCH-RTP-013.cisco.com>
References: <773DB227-85C8-46DA-B590-14A6B7B4499B@juniper.net> <89BB70DB-3666-498F-8D30-DCCE673A0A41@cisco.com> <602bff9c5cd4408a8426e93e6c67ad41@XCH-RTP-013.cisco.com> <20181031.114204.548428490278175532.mbj@tail-f.com>
In-Reply-To: <20181031.114204.548428490278175532.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.118.56.234]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Outbound-SMTP-Client: 64.101.220.143, xch-rtp-003.cisco.com
X-Outbound-Node: rcdn-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/DCtQarGbWVhslb29oFhPHmbfgtg>
Subject: Re: [Netconf] I-D Action: draft-ietf-netconf-restconf-notif-09.txt
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, 31 Oct 2018 13:21:27 -0000

> From: Martin Bjorklund, October 31, 2018 6:42 AM
> 
> Hi,
> 
> "Eric Voit (evoit)" <evoit@cisco.com> wrote:
> >
> >
> > > -----Original Message-----
> > > From: Netconf <netconf-bounces@ietf.org> On Behalf Of Reshad Rahman
> > > (rrahman)
> > > Sent: Monday, October 29, 2018 6:01 PM
> > > To: Kent Watsen <kwatsen@juniper.net>; netconf@ietf.org
> > > Subject: Re: [Netconf] I-D Action:
> > > draft-ietf-netconf-restconf-notif-09.txt
> > >
> > > Hi Kent,
> > >
> > >
> > > On 2018-10-29, 2:29 PM, "Kent Watsen" <kwatsen@juniper.net> wrote:
> > >
> > >     Hi Reshad,
> > >
> > >     > Most of the comments received during WGLC (from Kent, Martin and
> > >     > Qin) have been addressed. Those not addressed are:
> > >     >
> > >     > 1- s/uri/location/ (to use same term as in RFC8040), I'm fine with
> > >     >   this change but would like to hear from WG.
> > >
> > >
> > >     I resist the idea that node names need to be consistent across modules.
> > >     Yes, there exists some meta-conventions (e.g., the "enabled" leaf) that
> > >     are unfortunately with us at the moment.
> > >
> > >     Modules should firstly use whatever name makes most sense for their
> > >     own purpose.  If it doesn't matter, then picking a value consistent
> > >     with another module is okay, but I wouldn't spend more than five
> > >     minutes searching for it.
> > >
> > >     FWIW, the zerotouch draft has an inet:uri node called "download-uri".
> > >     I don't know if it's a better name within the ZTP context, but it
> > >     made sense to me at the time and no one questioned it.
> > > <RR> I'll keep "uri" unless we hear from more people who would like to see
> it
> > > changed to location.   I don't feel strongly about this, I got used to "uri" and
> > > think it's appropriate.
> > >
> > >     > 2- Allowing modify/delete subscription from a different connection.
> There
> > >     >  was a discussion between Martin and Eric on this topic:
> > >     >
> > > https://mailarchive.ietf.org/arch/msg/netconf/3WaiWBVlLhj9wBOtuFuxVJ
> > > kfsig
> > >
> > >     RESTCONF doesn't have connections, per se, but sometimes drafts refer
> to
> > >     the underlying TLS connection.
> > >
> > >     Regardless, the general goals (for NETCONF too, I would think) could be:
> > >       - a client (i.e., a RESTCONF username) can always modify/delete/resynch
> > >         their own subscriptions.
> > >       - an authorized administrator can modify/kill any client's subscription.
> > > <RR> We should have this discussion in the context of SN.
> >
> > This is covered in SN.  Section 2.4.3:
> >
> > "Dynamic subscriptions can only be modified via this RPC using a
> > transport session connecting to the subscriber."
> 
> I don't understand what this means.  Or maybe I don't understand how
> it is supposed to be implemented.   I think the text says that
> modify-subscription only can be done by the same client that sent the
> establish-subscription.  But what is "the same client"?  If I have two separate
> management systems, that connect with the same user name to a device, is
> that the same client?
> 
> Since we don't have a "client id" in our protocols, the best/only thing we can
> use is the user name.

Agree.  That was how this should be embodied for RESTCONF.  For NETCONF, as the modify and delete RPCs can only be passed over the same NETCONF session as the establish (see Section 5 of NETCONF-Notif), an implementation will already enforce this without extra effort.
 
> Also, I think the details should go into the YANG definition of "modify-
> subscription", like it does for "delete-subscription".  So maybe change the
> "description" of the leaf "id" to:
> 
>        "Identifier of the subscription that is to be modified.
> 
>         Only subscriptions that were created using
>         'establish-subscription' with the user name as this RPC
>         can be modified with this RPC."

'User name' has its own issues.  How about 'subscriber identity or security credentials'?

Eric

> (and modify the description for "delete-subscription" in a similar
> way)
> 
> 
> 
> /martin
> 
> 
> 
> 
> 
> > and Section 2.4.4:
> >
> > " Dynamic subscriptions can only be deleted via this RPC using a transport
> session connecting to the subscriber."
> >
> > In  -v19, I have also removed the sentence: " If the delete request
> >    matches a known subscription established on the same transport
> >    session, then it MUST be deleted; otherwise it MUST be rejected with
> >    no changes to the publisher."
> >
> > Eric
> >
> > >     > 3- Take uri out of subscription-modified. It was pointed out to me that
> > >     > SN draft says the following:
> > >     >
> > >     >       For completeness, this subscription state change notification
> > >     >       includes both modified and non-modified aspects of a subscription.
> > >
> > >     I'm unsure how the [non-]modified matters to this question, but it seems
> > >     that "uri" may not be *needed* as there is already an "id" node that
> > >     achieves the similar ability to identify the subscription.  That said,
> > >     I'm okay with the "uri" field being present, even if it's only mildly
> > >     helpful, so long as there is no concern for the message size or the
> > >     publisher's ability to populate the value.
> > > <RR> The "uri" does not change, that's why the [non-]modified
> > > question came up. I'm keeping it.
> > >
> > > Regards,
> > > Reshad.
> > >
> > >     Kent // contributor
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Netconf mailing list
> > > Netconf@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netconf
> > _______________________________________________
> > Netconf mailing list
> > Netconf@ietf.org
> > https://www.ietf.org/mailman/listinfo/netconf