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

Ladislav Lhotka <lhotka@nic.cz> Wed, 11 July 2018 11:23 UTC

Return-Path: <lhotka@nic.cz>
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 6EEE1130E8B; Wed, 11 Jul 2018 04:23:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 93HnbFghy8ul; Wed, 11 Jul 2018 04:23:07 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id A7B09130DF1; Wed, 11 Jul 2018 04:23:02 -0700 (PDT)
Received: by trail.lhotka.name (Postfix, from userid 109) id 9F6291820CBC; Wed, 11 Jul 2018 13:29:49 +0200 (CEST)
Received: from localhost (nat-2.nic.cz [217.31.205.2]) by trail.lhotka.name (Postfix) with ESMTPSA id 8C1F018202E0; Wed, 11 Jul 2018 13:29:45 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Kent Watsen <kwatsen@juniper.net>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Cc: "netconf@ietf.org" <netconf@ietf.org>, "draft-ietf-netconf-nmda-restconf@ietf.org" <draft-ietf-netconf-nmda-restconf@ietf.org>, Robert Wilton <rwilton=40cisco.com@dmarc.ietf.org>
In-Reply-To: <13FABA4A-C367-4E27-88FF-3EA48638249F@juniper.net>
References: <82A8420F-445C-42BD-9A47-DCF62A9864BC@juniper.net> <20180709173041.xkihqyccjcucjslj@anna.jacobs.jacobs-university.de> <13FABA4A-C367-4E27-88FF-3EA48638249F@juniper.net>
Date: Wed, 11 Jul 2018 13:22:56 +0200
Message-ID: <87va9mf23z.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/2KuZRikr21mjqXtKvUoj_B-WCRI>
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: Wed, 11 Jul 2018 11:23:14 -0000

Kent Watsen <kwatsen@juniper.net> writes:

>>> 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?

These would make RESTCONF server stateful, thus violating REST principles. My
draft

https://datatracker.ietf.org/doc/draft-lhotka-netconf-restconf-transactions/

tries to achieve similar effects in a RESTful way.

Lada

>
> 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. 
>
> So, adding something like this to nmda-restconf would be good?
>
>
> Kent // contributor
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67