[Netconf] YANG Push: datastore-contents

Andy Bierman <andy@yumaworks.com> Wed, 24 May 2017 23:23 UTC

Return-Path: <andy@yumaworks.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 EAE1712944C for <netconf@ietfa.amsl.com>; Wed, 24 May 2017 16:23:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 uFCq4yT0-gZr for <netconf@ietfa.amsl.com>; Wed, 24 May 2017 16:23:46 -0700 (PDT)
Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1324D12751F for <netconf@ietf.org>; Wed, 24 May 2017 16:23:46 -0700 (PDT)
Received: by mail-wm0-x235.google.com with SMTP id d127so81558282wmf.0 for <netconf@ietf.org>; Wed, 24 May 2017 16:23:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=q+t/paWapexOyc2uMG5aHS+LXXniruPHTQqM0T96AoE=; b=iIJDJS7nqEis6U+34t5T9eqWC8n/dIKv5F2WOczArKiA0inheCjKDgAI+ckTk+FVkY wXXG4aeDmN1vbQBWd22WZ1zQytjQ26cKTOfCzXABqLyBYaH8nb/ycFEAR9rmFeggO20d y9AONd+ChKqfeSmqdRsypAvex1RtEi3ffVeiUTA5mTLssWp7N4sI/7KAW9gvE3bC4Epl 22CL82N6e0aNuvPoeTBU+sgwK75kNIpm+Vt2pvE6zQh3vC4MWrxKahrQyBIpC1dkQUMa Ou7cE9z3x6Z10JT0A/lfn8YXUFzUEsVP3kTUxIvQPRlOox1PnwcPL+PCsqDQqjHhu+PW VFDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=q+t/paWapexOyc2uMG5aHS+LXXniruPHTQqM0T96AoE=; b=AZ7vYdSmFmL/2/8gek3tK85GH/pz+uhFSLTQFgVknuvqd4jaPcmukdepJW/Se3kCDd dP9FDtMlBiyJxT3SfrvPd4hKFiAY2Y+xIofMOygRLiXIWyikioWJ0PGI9MxeOvyggRld vowgW6ZCWVPRmSF8ur3JPon1Vp/mc+1C79aECemsX+/q7J26x6RkHcqm2qA7H1eM8w3Q dHh8DDgDrV9etCh9z8/7kIlIEXYMD+MlUa/776ZKUJJrQNO04pKDGuyLDwLd9bVa7+iJ hCCVRJRV9X777CYf/D7lAwrczKIsFDfkp1I0eYpVN+6rKxoJYAHCL2ujGOZut/jLjkPf fqBw==
X-Gm-Message-State: AODbwcCGIQwjRQXcCEUZhPb4cbiUZCB8NvFUR1ZO4poMvFn+NiTv/eHX LU0RDjhFConi1FkUy03CsNu1tCg9I6XQF3k=
X-Received: by 10.28.213.213 with SMTP id m204mr8254769wmg.48.1495668224341; Wed, 24 May 2017 16:23:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.155.2 with HTTP; Wed, 24 May 2017 16:23:43 -0700 (PDT)
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 24 May 2017 16:23:43 -0700
Message-ID: <CABCOCHTkTBAqeLew50Hhy6TYCTVT0vNDqq8Yhx1w2XtZkbEK6g@mail.gmail.com>
To: Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="001a1147462636cdbe05504d6503"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/2qMNUJck5XFEpax5m6YJwtIWL1w>
Subject: [Netconf] YANG Push: datastore-contents
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
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, 24 May 2017 23:23:48 -0000

Hi,

The "anydata" definitions of <datastore-contents> in the
push-update and push-change-update are under-specified.
I do not see how any interoperability can be achived using
an opaque blob for the updates.

This is demonstrated in the examples on page 9 - 10.


             <datastore-contents>
                <foo>
                   <bar>some_string</bar>
                </foo>
             </datastore-contents>


             <datastore-changes>
               <alpha xmlns="http://example.com/sample-data/1.0" >
                 <beta>1500</beta>
               </alpha>
             </datastore-changes>


             <datastore-changes>
               {
                "ietf-yang-patch:yang-patch": {
                "patch-id": [
                  null
                ],
                "edit": [
                  {
                      "edit-id": "edit1",
                      "operation": "merge",
                      "target": "/alpha/beta",
                      "value": {
                          "beta": 1500
                      }
                  }
                ]
               }
             }
             </datastore-changes>



The JSON encoding is completely unacceptable.
IMO JSON encoding should be removed from this draft.
Encoding the contents of 1 specific <anydata>
as JSON is a real hack.

Note also that there is no specification to encode
a single <yang-patch> element within the <datastore-changes>
anydata container.  The same anydata node is used for a subtree
and a YANG patch.


Andy