Re: [Netconf] nmda-restconf operations (was: netconf-binary-encoding comments)

Robert Wilton <rwilton@cisco.com> Tue, 10 July 2018 10:43 UTC

Return-Path: <rwilton@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 15659130EED; Tue, 10 Jul 2018 03:43:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.511
X-Spam-Level:
X-Spam-Status: No, score=-14.511 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, 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 1DSVkqKEpnKr; Tue, 10 Jul 2018 03:43:12 -0700 (PDT)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC58A130DD2; Tue, 10 Jul 2018 03:43:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1923; q=dns/txt; s=iport; t=1531219392; x=1532428992; h=subject:to:references:from:cc:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=w4XHHiDZ3HS0a6Z7RNd4P+ciXPKFRAflymM1rUgL0MY=; b=mUyZpZ9aXs9BMlxcUU3HGZhF2NjwDCfBbVbH3V+SR0EVKIi1/u6FR55q ZXjIniGpTXHbQg8s8fR8/9FWUSUEpZdNNij8UKHQhxGmrfVG6xzcSzxTj C6K7wNTrxCrES0kCFAYDSlzNFTbcZ1DXzDaXWBe+sFHJ00ICo4r2RcfuR Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0B4AQCJjERb/xbLJq1bGQEBAQEBAQEBAQEBAQcBAQEBAYUYEoQiiGONNiuXLAuEbAKCSTcVAQIBAQIBAQJtKIU2AQEBAwEjDwEFQRALDgoCAiYCAlcGAQwIAQGDHIF4CKo9ghyEW4NzgTqBC4lFP4EQJ4JqhGWDF4JVAplRCY8gBogWhUeHEoUqhVSBVyKBUjMaCBsVO4JqkFM+jhEBAQ
X-IronPort-AV: E=Sophos;i="5.51,334,1526342400"; d="scan'208";a="5080876"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2018 10:43:10 +0000
Received: from [10.63.23.105] (dhcp-ensft1-uk-vla370-10-63-23-105.cisco.com [10.63.23.105]) by aer-core-4.cisco.com (8.15.2/8.15.2) with ESMTP id w6AAh8rW000536; Tue, 10 Jul 2018 10:43:09 GMT
To: Kent Watsen <kwatsen@juniper.net>, "draft-ietf-netconf-nmda-restconf@ietf.org" <draft-ietf-netconf-nmda-restconf@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
References: <82A8420F-445C-42BD-9A47-DCF62A9864BC@juniper.net> <20180709173041.xkihqyccjcucjslj@anna.jacobs.jacobs-university.de> <13FABA4A-C367-4E27-88FF-3EA48638249F@juniper.net> <20180709181338.anv7tfsylvhypwdz@anna.jacobs.jacobs-university.de>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <56fa68dd-09a0-fe34-b331-345c13c75925@cisco.com>
Date: Tue, 10 Jul 2018 11:43:08 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <20180709181338.anv7tfsylvhypwdz@anna.jacobs.jacobs-university.de>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/NdBR2wC7M2ELJi1tMIdvTLf-fvc>
Subject: Re: [Netconf] nmda-restconf operations (was: netconf-binary-encoding comments)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
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: Tue, 10 Jul 2018 10:43:14 -0000


On 09/07/2018 19:13, Juergen Schoenwaelder wrote:
> On Mon, Jul 09, 2018 at 05:48:57PM +0000, Kent Watsen wrote:
>>
>>>> This isn't what I meant.  To be more specific, I'm wondering if the nmda-restconf
>>>> draft would benefit from having a sentence like:
>>>>
>>>>     A RESTCONF server supporting NMDA datastores MAY implement the
>>>>     "ietf-netconf" [RFC6241] and "ietf-netconf-nmda" [I-D. ietf-netconf-nmda-
>>>>     netconf] modules to enable the NETCONF operations defined in those
>>>>     drafts to appear {+restconf}/operations resource.
>>>>
>>>> Note: I put "MAY" as RESTCONF may someday have a more native way to do this.
>>>>
>>> Well, "ietf-netconf" does not really support NMDA well and this is why
>>> we have "ietf-netconf-nmda". Does not make much sense to point to
>>> "ietf-netconf" in an NMDA document.
>> But we'd still need lock, unlock, commit, commit-confirmed, etc., right?
> Yep.
OK.  Just to check - the client can determine which of these operations 
are supported via the feature statements in ietf-netconf.yang and the 
corresponding module entry in YANG library bis?

I was wondering whether a GET request on {+restconf}/operations would 
also list all of the supported operations, but as far as I can see RFC 
8040 doesn't specify this.

>   
>> Maybe it's a moot point, since ietf-netconf-nmda requires that ietf-netconf
>> is implemented too, but I thought being explicit would be helpful here.
> As long as readers get the idea that implementing lets say edit-config
> is perhaps not the best idea...
It might be a good idea to explicitly list the NETCONF operations that 
are not well defined and hence SHOULD NOT be implemented.

Thanks,
Rob


>   
>> So, adding something like this to nmda-restconf would be good?
> It likely does not hurt to be clear that this option of using NETCONF
> operations in RESTCONF exists.
>
> /js
>