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

Mahesh Jethanandani <mjethanandani@gmail.com> Tue, 30 January 2018 18:25 UTC

Return-Path: <mjethanandani@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 63EAD12F4BF for <netconf@ietfa.amsl.com>; Tue, 30 Jan 2018 10:25:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.998
X-Spam-Level:
X-Spam-Status: No, score=-0.998 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, 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 w35ssdrPqnbV for <netconf@ietfa.amsl.com>; Tue, 30 Jan 2018 10:25:19 -0800 (PST)
Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 CE72A12F4B1 for <netconf@ietf.org>; Tue, 30 Jan 2018 10:25:18 -0800 (PST)
Received: by mail-it0-x22b.google.com with SMTP id e1so1678398ita.0 for <netconf@ietf.org>; Tue, 30 Jan 2018 10:25:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=jLkKOwykmkJBUFG7f1wOfWvX88RrVeaEZAOFJVIL30c=; b=e6YvX1vaYXLHwQf7Uej76s1BtVQi12uGZ1NDDGZ9xPzjq7K4vI/fZuYFVhZ2ltrdN8 Fd+Ub8FqsYIcLyrqg2OoCANBijMaOMgrD8sf3GcIs/YrDQeKsulDzaVJQP98+0lsBChC h9ApcVaduLLUinMKUJGhqesWivYIKvxTK5/hEAto2xLMQfqcCI+u4Rxb3U6XR3pp9Y2R 6DHieFDQP9bBArHsSgd5kohqQ2KjM53Px6disEKuM2haSfCbxI5Q3PcSrKEhLwu5sV8d 45LEG876n1K6d4yviWmtlaYelUvEPrSdi50a1J5i3KgX4FdLTj5Vbv5T5XHDu1dUI96x v2zw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=jLkKOwykmkJBUFG7f1wOfWvX88RrVeaEZAOFJVIL30c=; b=jvn6dmzVLCERD3DTfIoMV8thPHEl/t6v466KVMa9zYZDCqdEYmexKIow7a7+03tgY1 TIVzoFX1Kc8i8vbBwV7cKMmFp+tmyq9b8UcciFZno9IYrFkRhkvTGSPrSZf27lOvkkzP VDIK5i9IQcGA6avtWriDzy/Oxz+huia5Du8/rI5J+VwoedfnlZkZ/GyZ4RWHisTm4ztC a98ckboUOHtpCD7+PE6IttQUzPLzAg2obwJZaDM8zR3rcKXTykEIiMSe0cjikmjohcLK R0OKENBH6LNrpvcNX2ilq7tkdoJrqf6EmgFk9wPiPtJFTAmoS8GcG2UDagxawKoR9xxn Loow==
X-Gm-Message-State: AKwxytdAYMswT2XAbVC30KphIl1QAkxounxUejO/dKSLSPoNYeXgb/AT tnV2E+B8J6oT0rv894E4IMs=
X-Google-Smtp-Source: AH8x226xRUFaEUpD3EQJXV3WSgHCgREdxVJdlu8qVhtXxpVag0t83a+qhVID52QgSuantTXF0L6Mcw==
X-Received: by 10.36.115.196 with SMTP id y187mr31894389itb.134.1517336718097; Tue, 30 Jan 2018 10:25:18 -0800 (PST)
Received: from mahesh-m-m8d1.attlocal.net ([2600:1700:edb0:8fd0:8c7d:b427:24fb:d349]) by smtp.gmail.com with ESMTPSA id m71sm6252186iom.70.2018.01.30.10.25.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 10:25:17 -0800 (PST)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <DC672864-B29D-4F52-BF89-CCB09539CC30@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_F491C1A5-D6A1-4184-A2D1-3D5E3B0351D9"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Date: Tue, 30 Jan 2018 10:25:15 -0800
In-Reply-To: <805AA544-8B1D-4F80-999C-AABB3F5D3253@juniper.net>
Cc: Shiva Kumar Pathori <pathori@gmail.com>, "netconf@ietf.org" <netconf@ietf.org>
To: Kent Watsen <kwatsen@juniper.net>
References: <CAJtYN8LRQb_HzbN7CmXPPwDKnRXK=YhWyrku223cQ-NVZxN6+Q@mail.gmail.com> <805AA544-8B1D-4F80-999C-AABB3F5D3253@juniper.net>
X-Mailer: Apple Mail (2.3445.5.20)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/lldEdAc5Urr9OMrHIiZeti5hDaI>
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: Tue, 30 Jan 2018 18:25:21 -0000

[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://tools.ietf.org/html/rfc6241#section-4.2>
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 <mailto:netconf-bounces@ietf.org> on behalf of pathori@gmail.com <mailto: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

Mahesh Jethanandani
mjethanandani@gmail.com