Re: [Netconf] WGLC on restconf-notif-08

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Thu, 11 October 2018 21:01 UTC

Return-Path: <rrahman@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 2F90C12872C for <netconf@ietfa.amsl.com>; Thu, 11 Oct 2018 14:01:41 -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 KVKX2edw63t9 for <netconf@ietfa.amsl.com>; Thu, 11 Oct 2018 14:01:37 -0700 (PDT)
Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AFBE212777C for <netconf@ietf.org>; Thu, 11 Oct 2018 14:01:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5444; q=dns/txt; s=iport; t=1539291697; x=1540501297; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=CgGYqbXSEvVrSECla1R4FJi+esbWtw6g7fwRR/53fpc=; b=WkJQuwK640In6gUPZRRUXRxOyf3ZkdMz2DEt7bqH0sjEffWGU4G/Y2pX 4FDtSuca2Jho4wKW0seVeyLcG+A4u7giHzV2YAIqKxsRQqkxosReUOR3E qd33QSf2YoIikBp2nhrLyiVQ/PtVt471B5KRjT3yM4hvfZZFcnlUVAnbY Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AEAACtub9b/49dJa1jGgEBAQEBAgEBAQEHAgEBAQGBUQUBAQEBCwGBWSpmfygKg2uIFo4elyWBegsBARgLhANGAheEPiE0DQ0BAwEBAgEBAm0cDIU6AgQBASEROhsCAQgODAIJHQICAiULFRACBAESglVLAYIBD6YVgS6Ed4RkBYELijoXgUE/gRInDBOCTIMbAQGBSxYXI4JHMYImAp4QCQKJZYZtF4FPhGuDEYZGlWsCERSBJR04gVVwFTsqAYJBixeFPm+LFIEfAQE
X-IronPort-AV: E=Sophos;i="5.54,369,1534809600"; d="scan'208";a="184112633"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2018 21:01:36 +0000
Received: from XCH-ALN-005.cisco.com (xch-aln-005.cisco.com [173.36.7.15]) by rcdn-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id w9BL1arT020122 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 11 Oct 2018 21:01:36 GMT
Received: from xch-rcd-005.cisco.com (173.37.102.15) by XCH-ALN-005.cisco.com (173.36.7.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 11 Oct 2018 16:01:35 -0500
Received: from xch-rcd-005.cisco.com ([173.37.102.15]) by XCH-RCD-005.cisco.com ([173.37.102.15]) with mapi id 15.00.1395.000; Thu, 11 Oct 2018 16:01:35 -0500
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Qin Wu <bill.wu@huawei.com>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] WGLC on restconf-notif-08
Thread-Index: AQHUXC8dqc/ZdIehM0Ol7lZ9+zKBhqUX3vCAgAF7cNCAAUk1gA==
Date: Thu, 11 Oct 2018 21:01:35 +0000
Message-ID: <1DD8C6AA-CB3D-4A86-9428-1901189B03BB@cisco.com>
References: <B8F9A780D330094D99AF023C5877DABA9B064CEB@nkgeml513-mbx.china.huawei.com>
In-Reply-To: <B8F9A780D330094D99AF023C5877DABA9B064CEB@nkgeml513-mbx.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.b.0.180311
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.86.252.137]
Content-Type: text/plain; charset="utf-8"
Content-ID: <A87DDD32D9A2BE4D819A0FD54C6E6BA5@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.36.7.15, xch-aln-005.cisco.com
X-Outbound-Node: rcdn-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/dJcB9ma8_yepX7p2ALBV9xFc2So>
Subject: Re: [Netconf] WGLC on restconf-notif-08
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: Thu, 11 Oct 2018 21:01:41 -0000

Hi Qin,

Thanks for the review, please see inline.


On 2018-10-10, 10:25 PM, "Netconf on behalf of Qin Wu" <netconf-bounces@ietf.org on behalf of bill.wu@huawei.com> wrote:

    Hi,
    I have read the latest version of restconf-notif-08 and have the following comments:
    1. Section 3
    "  Subscribing to event
       streams is accomplished in this way via a RESTCONF POST into RPCs
       defined within [I-D.draft-ietf-netconf-subscribed-notifications]
       Section 2.4.
    "
    hard to understand this sentence, what do we mean "via RESTCONF POST into RPCs"?
    in which way?
<RR> This just means RPCs (which are done with POSTs). New proposed text:
"... in this way via RPCs, which are done with RESTCONF POSTs, defined within...."    
    
    2.section 3
    I think this section explain why POST is used instead of GET for URI retieval.
<RR> Yes, the POST is for the establish-subscription RPC and the URI is in the reply. 
    Suggest the following change:
    
    "
    As described in [RFC8040] Section 6.3, a GET needs to be made against
       a specific URI on the publisher.  Subscribers cannot pre-determine
       the URI against which a subscription might exist on a publisher, as
       the URI will only exist after the "establish-subscription" RPC has
       been accepted. Therefore The POST for the "establish-subscription" RPC    replaces the
       GET request for the "location" leaf which is used in [RFC8040] to
       obtain the URI. When The subscription URI is determined and sent as
       part of the response to the "establish-subscription" RPC, and a
       subsequent GET to this URI will be done in order to start the flow of
       notification messages back to the subscriber.  A subscription does
       not move to the active state as per Section 2.4.1. of
       [I-D.draft-ietf-netconf-subscribed-notifications] until the GET is
       received.  
    "
<RR> Ack, you basically moved the part on POST right after the RPC and before we talk about GET.

    3. Section 3.2
    Is there any reason not reuse streams defined in ietf-restconf-monitoring.yang in [RFC6520]?
<RR> Because we're building on top of SN draft.

    4.Section 3.3
    Why JSON encoding is emphasized? what about XML encoding?
<RR> XML encoding is supported (since this is RESTCONF), I think this doc started with JSON because netconf-notif has XML.
    
    "
       Note that "error-path" does not need to be included with the "rpc-
       error" element, as subscription errors are generally not associated
       with nodes in the datastore but with the choice of RPC input
       parameters.
    
    "
    not sure I understand this, is this difference between NETCONF and RESTCONF?
    RESTCONF server doesn't support NETCONF protocol or datastore?
<RR> RFC8040 specifies error-path in rpc-error, what this text says is that error-path does not need to be included.
    
    5.Section 3.4
    "
    In addition to an RPC response for a "modify-subscription" RPC
          traveling over (a), a "subscription-modified" state change
          notification must be sent within (b). 
    "
    Does this contradict with the statement in subscrbed notification draft
    "
    unlike [RFC5277], this document enables a single transport session
          to intermix notification messages and RPCs for different
          subscriptions.
    
    "
    confused.
<RR> I don’t think this is a contradiction. You can have multiple RPCs on single transport session (by not closing the transport session after each RPC). With HTTP2 streams, you can have multiple notification messages from different subscriptions on same transport session (but different streams). 

Regards,
Reshad.
    
    
    -Qin
    
    _______________________________________________
    Netconf mailing list
    Netconf@ietf.org
    https://www.ietf.org/mailman/listinfo/netconf