[netmod] Regarding origin annotation encoding in ietf-netconf-nmda-restconf-05

Amar Jadagoud <ammys.vas@gmail.com> Thu, 14 February 2019 06:49 UTC

Return-Path: <ammys.vas@gmail.com>
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 8CD87130FFE for <netmod@ietfa.amsl.com>; Wed, 13 Feb 2019 22:49:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 0dGIM_lxFrC0 for <netmod@ietfa.amsl.com>; Wed, 13 Feb 2019 22:49:36 -0800 (PST)
Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (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 B2FDC130FFC for <netmod@ietf.org>; Wed, 13 Feb 2019 22:49:35 -0800 (PST)
Received: by mail-qt1-x836.google.com with SMTP id e5so5669003qtr.12 for <netmod@ietf.org>; Wed, 13 Feb 2019 22:49:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Umx2vB80LFjP8YJmQujtmsXsGeimlVVAcxrv45IerOI=; b=qWOsC250OIekng08OKTejuc45sV1l1faFmafbJY20pdzmYT1YoE78aSqBf5bL4md8o zFaDfesWcisY84j1j7UU6fj8BH3Q+F/0vGIaESpmt+DK4OerUobHLm7cYyILcwg9mv5P bEw6aapHFOHRddCU11RlWLyLD0xGMqwYBongOwGS5SfFw/gk4AtAN6vlGe1B1NEEJVcG +r2Q+MQBiis99Pqw2hq9vejGCT5qRHA3bl+5239PRwijkDI1BOUjbWoZXlz1lMto8O7i Ge3hnisejavwcNsm9HWjMmsIy8wWESWBhB06gpVNynrFNln0ixKm6JU/v0k+sK2748lc 2+jg==
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=Umx2vB80LFjP8YJmQujtmsXsGeimlVVAcxrv45IerOI=; b=S+HGtFjqm10ud47EmNxY2sj/Hxlz7aToQggoKp/3L41FaApaIRh6N3aInxWOir1mkN WHzKbgbjUUHEqOG5O+PNwUbZIY7frV7gTDCO8+xK2WZErtjL/AChFO8bPCpOH8e3hlF9 r9LR3pM3YOQF0b7nXmAa0zNliYlq7wmJ7nnNydzvUEj45Kx6JFxSkH4pJBnwIo7EQ5Sg MCb41Bk7DPPASZt1Owb6KQunmA7z4Kbj8K+5PXyM1uQO4R87fIuxRvPZVyHjzBaypGO8 cY5nLzRYr07indz+uja8L48Ubu1b0GsQkABVviqxFvCkd4mgbsyjHdV1/EmbIBkkKmzQ 0/kg==
X-Gm-Message-State: AHQUAuZFFKrePPbuvKMk1/fwxND5BUcZ1dOmvf0M+4HJGLaLSrnSXCi+ Zd0xrpAgvP+qeux/x12Qehi3xdk3EquoKpFhP2NR3A==
X-Google-Smtp-Source: AHgI3Ibbo0j/6ELe8nR8o9eJWsAm0JlBEwpea1DfwXnUKM8eK/u1WsIBkJljUINYGuVQFosjhmAJMpRuHBqpcv4RCr8=
X-Received: by 2002:a0c:ad0d:: with SMTP id u13mr1650175qvc.231.1550126974277; Wed, 13 Feb 2019 22:49:34 -0800 (PST)
MIME-Version: 1.0
From: Amar Jadagoud <ammys.vas@gmail.com>
Date: Thu, 14 Feb 2019 12:19:22 +0530
Message-ID: <CAKiLt9+K=X2jRWJZo4vT4DC=aNVH0RL6b2ByNwh2Z1JykcWcPw@mail.gmail.com>
To: netmod@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a89f240581d50f07"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/EQDsvjuBZ08Lklh2McMRNqmbhd0>
Subject: [netmod] Regarding origin annotation encoding in ietf-netconf-nmda-restconf-05
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, 14 Feb 2019 06:49:38 -0000

Hi All,

I have a question regarding encoding of origin annotation along with other
annotation (with-defaults) in JSON metadata encoding format.

Suppose if below is the GET method :

GET
/restconf/ds/ietf-datastores:operational/ietf-interface:interfaces/interface=eth1?with-defaults=report-all-tagged&with-origin
HTTP/1.1

How both origin and with-defaults annotations should be encoded in the JSON
metadata encoding format?

Currently in restconf RFC 8040, in section 5.3.2, example with only one
annotation is provided.

 Refering to this example, whether multiple annotation representation
should be like below?

{
    "example:interface" : [
       {
           "name" : "eth1",
           "mtu" : 1500,
           "@mtu" : {
                  "ietf-netconf-with-defaults:default" : true
              },
              {
                    "ietf-origin:origin" : intended
              },
              "status" : "up"
      }
  ]
}

Thanks,
Amar