Re: [Netconf] Clarification about additional attributes at Messages(RPC) layer

Shiva Kumar Pathori <pathori@gmail.com> Wed, 31 January 2018 05:16 UTC

Return-Path: <pathori@gmail.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 60F78131543 for <netconf@ietfa.amsl.com>; Tue, 30 Jan 2018 21:16:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.991
X-Spam-Level:
X-Spam-Status: No, score=0.991 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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=1.989, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 Td0Z6HNAn01H for <netconf@ietfa.amsl.com>; Tue, 30 Jan 2018 21:16:12 -0800 (PST)
Received: from mail-ot0-x232.google.com (mail-ot0-x232.google.com [IPv6:2607:f8b0:4003:c0f::232]) (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 1FFC413157A for <netconf@ietf.org>; Tue, 30 Jan 2018 21:16:11 -0800 (PST)
Received: by mail-ot0-x232.google.com with SMTP id a7so9375508otk.9 for <netconf@ietf.org>; Tue, 30 Jan 2018 21:16:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BkDQc4QRj3V1JdnjCqEr9xyKADonBwtourzRY9tS+DE=; b=KTfznrG8cn9Zgz2E2mStuRzkXEIdj/FdAanp6v+EoIQjzGiMLuYJdIM5/uUIyydb8y pTqiwWIEEsG01XkuDPZEtt0B7Z7d033PinwbiwzVqM+kgCHmYN3sC8in3wDNWMi9r0s8 fVjuhQ8Nsnuz/8nSCgPHY5VD/IHHf/rUAo83qacaMpt2aIPycEdBnY3yPxS2xBVTYeND rrIFMZ5Jo3WAOYXEZf78rQgtUkWmzB3ix0XbxaiZp1qwWM3cLHTvrzvo1hVohtxBoHFF HhdA/TYu0KYvP9mqsbP05L8Lr180jLCM7dsQfOuV2fQOhhc1cUfhel8xUK1LC+incH95 LKRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BkDQc4QRj3V1JdnjCqEr9xyKADonBwtourzRY9tS+DE=; b=GoqiumgqwYhsLmUH7jHswPqm0V7aJ6pbwUhZKKeT3ofMFuk03Hz+TgkO4pGCtY2tdM YQg7Na67PSyMtpgxXhybxvgWe56tLGzv9ybz/PCWwuExvnsyf1QIBDRQ1gMeNuhGcZo3 rzxuagUu7yiaINY+yZ4eyyy9SL5U4oQU6kC28OxAATAenShzdAralXeePz63kjPpMHq6 XcbUl1fw8g8NuwEtY8c8icecLiuVp6BVXVbuLabItrdDjV6c6/4ZYMTwk/lE8lB3IKU5 1kyDmgpRvwl7hTAmfjcMojdCXUoenoyKwg1CV7T9n9TJzfqkdmzQW35/W4SsXZoExJNI 73CQ==
X-Gm-Message-State: AKwxytdFe6dcbZsxMlfhruUOySjl6WTXatFXBft43bNpzyS7ajR3LMEx O3h73Q2Bil44du5LB5TIbfCmMEwlHpTLacZYDOs=
X-Google-Smtp-Source: AH8x226XkxSoXA4W6NhcGw/xAxucG/CFe4hjErDusYJ52sNn2q6DDQXM/29roKzVDncXPkvijJ4JpRhStlLHkXO3sj0=
X-Received: by 10.157.71.9 with SMTP id a9mr12958180otf.20.1517375770423; Tue, 30 Jan 2018 21:16:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.50.164 with HTTP; Tue, 30 Jan 2018 21:16:09 -0800 (PST)
Received: by 10.157.50.164 with HTTP; Tue, 30 Jan 2018 21:16:09 -0800 (PST)
In-Reply-To: <D2073184-BC0D-4471-BCE0-F6EC532BA3AD@juniper.net>
References: <CAJtYN8LRQb_HzbN7CmXPPwDKnRXK=YhWyrku223cQ-NVZxN6+Q@mail.gmail.com> <805AA544-8B1D-4F80-999C-AABB3F5D3253@juniper.net> <DC672864-B29D-4F52-BF89-CCB09539CC30@gmail.com> <D2073184-BC0D-4471-BCE0-F6EC532BA3AD@juniper.net>
From: Shiva Kumar Pathori <pathori@gmail.com>
Date: Wed, 31 Jan 2018 10:46:09 +0530
Message-ID: <CAJtYN8Jte2O52Hrb3wgD0EgosG4fn0=oUwn4gHxTjXciuqGZ1g@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Cc: Mahesh Jethanandani <mjethanandani@gmail.com>, netconf@ietf.org
Content-Type: multipart/alternative; boundary="f4f5e8096670c9751805640b93d8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Z-vjN7tEjMnKe6kMjl810Ri_JCg>
Subject: Re: [Netconf] Clarification about additional attributes at Messages(RPC) layer
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, 31 Jan 2018 05:16:14 -0000

Do we need to have some mechanism like ietf-yanag-metadata.yang that allows
defining the attributes at data instances so that the clients are aware of
the additional attributes. So that if the client is interested will process
otherwise ignores it.

On 31-Jan-2018 12:23 AM, "Kent Watsen" <kwatsen@juniper.net> wrote:

>
>
> Section 4.2 says that "message-id" is mandatory, and that the server MUST
>
> return any additional attributes included in the <rpc> element.  But it
> doesn't
>
> say anything that limits a server returning even more.
>
>
>
> My assumption is that it is allowed.  Specifically, from an XML document
>
> encoding perspective, it is always valid to move "xmlns" prefix
> declarations
>
> to ancestor elements…
>
>
>
> K.  // contributor
>
>
>
>
>
> On 1/30/18, 1:25 PM, "Mahesh Jethanandani" <mjethanandani@gmail.com>
> wrote:
>
>
>
> [As contributor]
>
>
>
> On Jan 30, 2018, at 6:54 AM, Kent Watsen <kwatsen@juniper.net> wrote:
>
>
>
>
>
> I believe that this is allowed by [1], but worry about interoperability
> due to the "config-id" attribute being a proprietary extension.
>
>
>
> [1] https://tools.ietf.org/html/rfc6241#section-4.2
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__tools.ietf.org_html_rfc6241-23section-2D4.2&d=DwMFaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=iT-5cpJaklJMJbEVRv4fgPBCu63AMMak0WbYDDMdYts&s=0FHMPEAKMzcNdQB20gJvvoJinRvDVVr13531hZJHbtY&e=>
>
>
>
> Per that section, what is returned is what was originally in the request.
> The nc-ext is something that has been added in the response, and was not
> existing in the request.
>
>
>
> To Shiva’s question, it is not clear how the clients will react to
> additional data in the <rpc-reply>. Will they just ignore it, or barf at it?
>
>
>
>
>
> Kent  // contributor
>
>
>
>
>
> Assuming the namespace prefix is there to support
>
>
>
> On 1/29/18, 3:17 PM, "Netconf on behalf of Shiva Kumar Pathori" <
> netconf-bounces@ietf.org on behalf of pathori@gmail.com> wrote:
>
>
>
> Hi,
>
> Can somebody clarify below <rpc-reply> sent by the NETCONF server will
> break the NETCONF client functionality. Additional attribute information is
> shown in RED color.
>
>
>
> <rpc message-id="101"
>
>           xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>
>        <edit-config>
>
>          <target>
>
>            <running/>
>
>          </target>
>
>          <config>
>
>            <top xmlns="http://example.com/schema/1.2/config <https://urldefense.proofpoint.com/v2/url?u=http-3A__example.com_schema_1.2_config&d=DwMFaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=nAjM7pDWG7HS1viFkN6mWV_1Ii2GVce-FvEqf3h0gfo&s=LQjMxXfz35-ysUajs_4pgqhw9Cmbna4-0672JlBXzNI&e=>">
>
>              <interface>
>
>                <name>Ethernet0/0</name>
>
>                <mtu>1500</mtu>
>
>              </interface>
>
>            </top>
>
>          </config>
>
>        </edit-config>
>
>      </rpc>
>
>
>
> <rpc-reply message-id="101"
>
>           xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
>
>           *xmlns:nc-ext="http://sample.com/netconf/ext <https://urldefense.proofpoint.com/v2/url?u=http-3A__sample.com_netconf_ext&d=DwMFaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=nAjM7pDWG7HS1viFkN6mWV_1Ii2GVce-FvEqf3h0gfo&s=H__4DCa9XJZJTIQ_Ewl7nAey_4XKXSKLAh-48KhPxMI&e=>" nc-ext:config-id="1"*>
>
>        <ok/>
>
>      </rpc-reply>
>
>
>
> I have just tried with MG SOFT NETCONF browser and worked fine, I think MG
> SOFT browser ignored these attributes.
>
>
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netconf&d=DwMFaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=iT-5cpJaklJMJbEVRv4fgPBCu63AMMak0WbYDDMdYts&s=rw5qXFv9bAYyUmvp0t9QdGF7ogdxJrQJWUEdpRzAE4A&e=>
>
>
>
> Mahesh Jethanandani
>
> mjethanandani@gmail.com
>
>
>
>