Re: [netmod] WG adoption poll for draft-clemm-netmod-nmda-diff-00

Ladislav Lhotka <lhotka@nic.cz> Thu, 04 October 2018 17:10 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C1005130E78 for <netmod@ietfa.amsl.com>; Thu, 4 Oct 2018 10:10:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 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] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 foDfuLYBB1rE for <netmod@ietfa.amsl.com>; Thu, 4 Oct 2018 10:10:44 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9BA31130DD3 for <netmod@ietf.org>; Thu, 4 Oct 2018 10:10:44 -0700 (PDT)
Received: from birdie (unknown [IPv6:2a01:5e0:29:ffff:ffc6:c393:cdb9:8db1]) by mail.nic.cz (Postfix) with ESMTPSA id E4E97629F5; Thu, 4 Oct 2018 19:10:41 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1538673042; bh=ucPvufI8EUWPms5VoK7axhYAQRHv8QpitfBYeV0qetg=; h=From:To:Date; b=AZ/tO+DQqWBirJB2k7SHesl87VQY+XmV0lHDom31PbxUZ8CQ5deV7dLYbebjvlWZe hzo3m3GOtYQBfGHHNrmn5Ri+7O8+/TJuxehvXXAc/tFOY8goID3Z53VEjvSYHiLP8P sLNiAvcv98hNajhceM0xjMAMFx0Yvbwz6ZcS2V+w=
Message-ID: <27c125fa83754c5f6723e04243f1efdaf4be8e82.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: Robert Wilton <rwilton@cisco.com>, netmod@ietf.org
Date: Thu, 04 Oct 2018 19:10:41 +0200
In-Reply-To: <ccc83277-cfa7-f363-1beb-78e801f8b675@cisco.com>
References: <201810031419.w93EJNpn040188@idle.juniper.net> <20181004.121417.2190375850946168105.mbj@tail-f.com> <69afa537-9a5f-6fb6-de21-2add0ffec4b2@cisco.com> <0aa239221e80e812f920db6ae023eabc6b3ef5ed.camel@nic.cz> <ccc83277-cfa7-f363-1beb-78e801f8b675@cisco.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.30.1
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/m7h-yRtprSjEG9eB6JwzpvLe_a4>
Subject: Re: [netmod] WG adoption poll for draft-clemm-netmod-nmda-diff-00
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Oct 2018 17:10:48 -0000

On Thu, 2018-10-04 at 14:17 +0100, Robert Wilton wrote:
> 
> On 04/10/2018 13:51, Ladislav Lhotka wrote:
> > On Thu, 2018-10-04 at 13:36 +0100, Robert Wilton wrote:
> > > On 04/10/2018 11:14, Martin Bjorklund wrote:
> > > > Phil Shafer <phil@juniper.net> wrote:
> > > > > Bal?zs Lengyel writes:
> > > > > > https://tools.ietf.org/html/draft-clemm-netmod-nmda-diff-00
> > > > > [I've moved to a "deep lurker" role here, but ...]
> > > > > 
> > > > > Can we ensure this model contains a "format" leaf in the RPC's input
> > > > > so that future (and proprietary) formats can be supported?   That
> > > > > leaf can be an identityref that defaults to yang-patch.
> > > > I think this is a good idea.  I would prefer the edit-config format
> > > > over YANG patch for describing a diff.  The edit-config format is more
> > > > suited for this purpose imo.
> > > +1
> > > 
> > > I would like something closer to edit-config to be available via
> > > RESTCONF as well.
> > YANG Patch is IMO better because it clearly separates the target for the
> > edits
> > from the new content.
> > In edit-config these two are mixed together.
> Yes, that is primarily why I prefer the edit-config.  I perceive that it 
> is a denser and more efficient format.  I think that it is both easier 
> to construct (when diffing two trees) and also more efficient to apply 
> when generating an updated tree.

Except for certain corner cases, for example if two trees differ only in the
value of a single leaf but this leaf happens to be a list key.

Lada

> 
> Thanks,
> Rob
> 
> 
> > That being said, I support specifying format/media-type and having
> > potentially
> > multiple options.
> > 
> > Lada
> > 
> > > Thanks,
> > > Rob
> > > 
> > > 
> > > > /martin
> > > > 
> > > > _______________________________________________
> > > > netmod mailing list
> > > > netmod@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/netmod
> > > > .
> > > > 
> > > _______________________________________________
> > > netmod mailing list
> > > netmod@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netmod
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67