[netmod] Conflicting usage scenario for "invalid-value" error-tag between RFC 6241 & RFC 6020

Rohit pobbathi <rohit.pobbathi@huawei.com> Fri, 10 February 2017 14:28 UTC

Return-Path: <rohit.pobbathi@huawei.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 8EED3129965 for <netmod@ietfa.amsl.com>; Fri, 10 Feb 2017 06:28:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 fvcdnM4SNuLe for <netmod@ietfa.amsl.com>; Fri, 10 Feb 2017 06:28:24 -0800 (PST)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 30342129989 for <netmod@ietf.org>; Fri, 10 Feb 2017 06:28:23 -0800 (PST)
Received: from 172.18.7.190 (EHLO lhreml703-cah.china.huawei.com) ([172.18.7.190]) by lhrrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DAI94701; Fri, 10 Feb 2017 14:28:19 +0000 (GMT)
Received: from DGGEMA401-HUB.china.huawei.com (10.3.20.42) by lhreml703-cah.china.huawei.com (10.201.5.104) with Microsoft SMTP Server (TLS) id 14.3.301.0; Fri, 10 Feb 2017 14:28:18 +0000
Received: from DGGEMA503-MBX.china.huawei.com ([169.254.1.68]) by DGGEMA401-HUB.china.huawei.com ([10.3.20.42]) with mapi id 14.03.0301.000; Fri, 10 Feb 2017 22:28:08 +0800
From: Rohit pobbathi <rohit.pobbathi@huawei.com>
To: "netmod@ietf.org" <netmod@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: Conflicting usage scenario for "invalid-value" error-tag between RFC 6241 & RFC 6020
Thread-Index: AdGwy+Y03p/3Jjn0Rlaa0Z7VvPBCdjS3SM1g
Importance: high
X-Priority: 1
Date: Fri, 10 Feb 2017 14:25:39 +0000
Message-ID: <2730B0D5F3302249A30EBF0DAE96D4CB455E5B46@DGGEMA503-MBX.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.18.210.230]
Content-Type: multipart/alternative; boundary="_000_2730B0D5F3302249A30EBF0DAE96D4CB455E5B46DGGEMA503MBXchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.589DCE04.01D6, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.1.68, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: 6aad48d91fb99d09db42bc17c6988913
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/GxaGpgOWSmbpmkO52Lo8s-Za5_w>
Subject: [netmod] Conflicting usage scenario for "invalid-value" error-tag between RFC 6241 & RFC 6020
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 14:28:26 -0000

Hi,

Repeating a query about RFC Section conflict for the usage of error-tag usage during leaf data value mismatch in range/length/pattern.

RFC 6241 Appendix A.  NETCONF Error List - provides the below description for "invalid-value" & "bad-element"
   error-tag:         invalid-value
   error-type:       protocol, application
   error-severity: error
   error-info:       none
   Description:    The request specifies an unacceptable value for one
                             or more parameters.

   error-tag:         bad-element
   error-type:       protocol, application
   error-severity: error
   error-info:        <bad-element> : name of the element w/ bad value
   Description:     An element value is not correct; e.g., wrong type,
                              out of range, pattern mismatch.

RFC 6020 Section 8.3.1.  Payload Parsing
   o  If a leaf data value does not match the type constraints for the
      leaf, including those defined in the type's "range", "length", and
      "pattern" properties, the server MUST reply with an
      "invalid-value" error-tag in the rpc-error, and with the error-
      app-tag and error-message associated with the constraint, if any
      exist.

For leaf data value mismatch in range/length/pattern there is conflict in the error-tag suggested by RFC 6241 & RFC 6020.
Please confirm which is the right error-tag to be used in a standard Netconf Server implementation.

Regards,
Rohit Pobbathi