Re: [netmod] YANG 1.0 behavior for leafref

Anees Shaikh <aashaikh@google.com> Tue, 15 September 2015 23:28 UTC

Return-Path: <aashaikh@google.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 670C41B2E3B for <netmod@ietfa.amsl.com>; Tue, 15 Sep 2015 16:28:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.388
X-Spam-Level:
X-Spam-Status: No, score=-1.388 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=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 EyDAKOWZWlzU for <netmod@ietfa.amsl.com>; Tue, 15 Sep 2015 16:28:39 -0700 (PDT)
Received: from mail-vk0-x22d.google.com (mail-vk0-x22d.google.com [IPv6:2607:f8b0:400c:c05::22d]) (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 E9ACA1B2E34 for <netmod@ietf.org>; Tue, 15 Sep 2015 16:28:38 -0700 (PDT)
Received: by vkhf67 with SMTP id f67so90588067vkh.1 for <netmod@ietf.org>; Tue, 15 Sep 2015 16:28:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oETbMDjgP88zYkhXgmPpvoL8RIcUihSK36zXpO/oj44=; b=VKTpEfL3DOc51Qlryw3bist3rL7HF4sIXJVYhIorTclX5KDPdz4vA8IufAaAJtSmMW 2hg7PrBUvUsnTtrrPIbMBQ0+ZIBvHfO97SiyH49khawnFvRTeGz1KmRLY0sNLqIaiMSV h/crKZN6+YP9CZEyIewSL/IKEXrtNXq/d8q8gxy6HdRf40YRA2KvhqNlixTbJF3nvuaP YsU1NMoRX08/M/p2JVtDF/2LwyQVg86qAcEZIE4Rpj9peBpjBTmxKIXQTeAiQ0LATrcW CPswoyxy6rF31Ap5AWySBlmx4Xf4/FNEOU2+Iv5rHsiXYcEfcCxsBl9cO/pYFOO+7g5t zTqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=oETbMDjgP88zYkhXgmPpvoL8RIcUihSK36zXpO/oj44=; b=GEh3vCHen22ZZZpVfKyZp1RnnicVkWkefyaK2Hu0SLtXGeRYfNn46j1Ux2eoYTLN3M qbsAcatD7g+6O2hqEMK+WQqHrACzMyzTuGTnS6TQVJvSE3ZcNvxMyq5YCsvAYxD0HP4n Aj7T8VjFtBsy+ELipjgZZh9v1If97/0T6DcLg7PXhcuHB4HUIyXxTIq8FGWJ9Nbw+unV Mas+CPIm70RfkXUN61w2ieBQNp4Mq+BHrql5WwRH8XdYvGjEMNer6i1mV4WxF3xkWEg0 ze4PMmlISrjt8BgGBV2309lkK2eWfrtPbDE7bRR7+yFr++b8DtDqJeOqKRIXzEAUIsaz rXFQ==
X-Gm-Message-State: ALoCoQk4Spat9N8Bsw/UKWqb/TzmAlO0xunIhXFTg1P+G4tXu8oAfRMbBpwwCGBW/I4AS+YG1k4R
MIME-Version: 1.0
X-Received: by 10.31.52.70 with SMTP id b67mr25681623vka.132.1442359717997; Tue, 15 Sep 2015 16:28:37 -0700 (PDT)
Received: by 10.31.189.12 with HTTP; Tue, 15 Sep 2015 16:28:37 -0700 (PDT)
In-Reply-To: <CABCOCHSAjtm5fO2OZWiYZvfYmLAjQ6ZdO3q-bTu41=Yv=y8k3Q@mail.gmail.com>
References: <CABCOCHSAjtm5fO2OZWiYZvfYmLAjQ6ZdO3q-bTu41=Yv=y8k3Q@mail.gmail.com>
Date: Tue, 15 Sep 2015 16:28:37 -0700
Message-ID: <CAJK7ZqJkdpNkD4xQG44RH1XZBhV=AKYBJD-waiZ=_g+Ao5JxVA@mail.gmail.com>
From: Anees Shaikh <aashaikh@google.com>
To: Andy Bierman <andy@yumaworks.com>
Content-Type: multipart/alternative; boundary="001a1143f7c6a17685051fd18a9c"
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/qbauWrena3RAamNXsXmWaBQDZC8>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] YANG 1.0 behavior for leafref
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: Tue, 15 Sep 2015 23:28:40 -0000

Isn't there already a verified errata for this same issue with the same
recommendation (Errata ID: 2949) ?

-- Anees

On Tue, Sep 15, 2015 at 3:15 PM, Andy Bierman <andy@yumaworks.com> wrote:

> Hi,
>
> The leafref text was changed to allow the require-instance-stmt in YANG 1.1
>
> RFC 6020, sec. 9.9. is quite clear that this sub-statement is not allowed.
>
> 9.9.1.  Restrictions
>
>    A leafref cannot be restricted.
>
> 9.13.1.  Restrictions
>
>    An instance-identifier can be restricted with the "require-instance"
>    statement (Section 9.13.2).
>
>
> However, the ABNF on page 149 clearly contradicts the text in 9.9.1:
>
>   leafref-specification =
>                          ;; these stmts can appear in any order
>                          path-stmt stmtsep
>                          [require-instance-stmt stmtsep]
>
>    path-stmt           = path-keyword sep path-arg-str stmtend
>
>    require-instance-stmt = require-instance-keyword sep
>                             require-instance-arg-str stmtend
>
>
>
> So which normative text is correct?
> Is instance-required-stmt allowing in YANG 1.0?
>
>
> Andy
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>