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

Kent Watsen <kwatsen@juniper.net> Tue, 30 January 2018 18:53 UTC

Return-Path: <kwatsen@juniper.net>
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 4190B12ECC5 for <netconf@ietfa.amsl.com>; Tue, 30 Jan 2018 10:53:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.71
X-Spam-Level:
X-Spam-Status: No, score=-0.71 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=1.989, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net
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 wh_BDmhG-xeG for <netconf@ietfa.amsl.com>; Tue, 30 Jan 2018 10:53:49 -0800 (PST)
Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (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 38D0712FA72 for <netconf@ietf.org>; Tue, 30 Jan 2018 10:53:49 -0800 (PST)
Received: from pps.filterd (m0108159.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w0UImsxb001017; Tue, 30 Jan 2018 10:53:48 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=PPS1017; bh=BDvh1RSRu4pVrkMlOvcYOrjMO67gDcoeuGWtXIgk6Nk=; b=x2YGNLBq7TiRpMS9nc7MQNA3yW0vMTVC2vBNYa1E2+a6kns1XXnV+T1oWwZdL8NA/kUU KsD96aNijfTmTOwVsQms5cSk3cI/hvAvYih0NZSrzENSnTOHPSfmHM/UeQ8fqWb6+pU9 xr2lgbVthBw1s9jOofn98TSA+qM9dYvQ1lIu3aDvRlPe4bzJUVwd1V2O+ZiM6Xzxxz2p xSRI7au4C3XFYvE8os9b6IISs69sTTZESAXqk9jTyICv6aziKeAy6JZo5OzmBj4sGBQ9 GKrndHzJtPLt9kmPH2SKCMBLTRN+7D84b5UmNMBiaF4e7UgiDMr0FFk83J50LVKxDApb XQ==
Received: from nam03-dm3-obe.outbound.protection.outlook.com (mail-dm3nam03lp0020.outbound.protection.outlook.com [207.46.163.20]) by mx0a-00273201.pphosted.com with ESMTP id 2ftwgm864g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 30 Jan 2018 10:53:47 -0800
Received: from DM5PR05MB3484.namprd05.prod.outlook.com (10.174.240.147) by DM5PR05MB2842.namprd05.prod.outlook.com (10.168.175.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.6; Tue, 30 Jan 2018 18:53:45 +0000
Received: from DM5PR05MB3484.namprd05.prod.outlook.com ([10.174.240.147]) by DM5PR05MB3484.namprd05.prod.outlook.com ([10.174.240.147]) with mapi id 15.20.0464.008; Tue, 30 Jan 2018 18:53:45 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
CC: Shiva Kumar Pathori <pathori@gmail.com>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] Clarification about additional attributes at Messages(RPC) layer
Thread-Index: AQHTmT4lNT3fBm4m8EqSKaIovJbsFKOMLi6AgACOroD//7QjAA==
Date: Tue, 30 Jan 2018 18:53:45 +0000
Message-ID: <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>
In-Reply-To: <DC672864-B29D-4F52-BF89-CCB09539CC30@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-originating-ip: [66.129.241.12]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DM5PR05MB2842; 7:ow5wATOCEN9X590JjGk4uUTo7xf6NXaCSZFazU3pKRuvh5YE3sLOfYnPfGMUCmfCUD51ZqGRj8xyEgLyUUFOlbAjyK6gGJwouQ+09VIL07Si1hXZ5gqoioJK5un4KjkOMT26YXzaU7aqyJpegcbx88Gq9iH3I0Zz5NsAXAPw6X0fhwJQyXLE67EUNMzwCNgxkNVO8xvKBudRH1ae7xT9oKF3D7VidgjyrQp+z21xGC58cCEUdIBFVTR83QG3q1no
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 5b569847-5549-461f-5d88-08d56812ca8d
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020); SRVR:DM5PR05MB2842;
x-ms-traffictypediagnostic: DM5PR05MB2842:
x-microsoft-antispam-prvs: <DM5PR05MB28428C179B7177C608351DF1A5E40@DM5PR05MB2842.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(158342451672863)(10436049006162)(131327999870524)(138986009662008)(85827821059158)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231101)(944501161)(10201501046)(6055026)(6041288)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR05MB2842; BCL:0; PCL:0; RULEID:; SRVR:DM5PR05MB2842;
x-forefront-prvs: 0568F32D91
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(396003)(39380400002)(376002)(39860400002)(346002)(199004)(189003)(25786009)(229853002)(54896002)(6116002)(6512007)(7110500001)(6486002)(236005)(6436002)(53936002)(86362001)(606006)(2906002)(19273905006)(82746002)(6306002)(3846002)(54906003)(77096007)(58126008)(83506002)(99286004)(81166006)(7736002)(81156014)(186003)(83716003)(8676002)(316002)(76176011)(5660300001)(966005)(4326008)(68736007)(478600001)(36756003)(6246003)(59450400001)(14454004)(53546011)(8936002)(6506007)(2900100001)(33656002)(2420400007)(15650500001)(3280700002)(102836004)(26005)(6916009)(105586002)(106356001)(2950100002)(53376002)(1411001)(97736004)(66066001)(3660700001)(39060400002)(562404015)(563064011); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR05MB2842; H:DM5PR05MB3484.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
x-microsoft-antispam-message-info: pEwpBDrRrhFYhFVRW98/bMaRi5Fb/wPLqArbcV9fi3D8r/TOzRIXJwRveGjOBjmgsMO5lgF2I1n6wVM5qK1W5g==
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D2073184BC0D4471BCE0F6EC532BA3ADjunipernet_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 5b569847-5549-461f-5d88-08d56812ca8d
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2018 18:53:45.9442 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR05MB2842
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-01-30_08:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801300230
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/7zw5z4quFS8qGxPYrqPElt93YtI>
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:53:52 -0000

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<mailto:mjethanandani@gmail.com>> wrote:

[As contributor]


On Jan 30, 2018, at 6:54 AM, Kent Watsen <kwatsen@juniper.net<mailto: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<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<mailto: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<mailto:mjethanandani@gmail.com>