Re: [babel] YANG errors in datatracker

Donald Eastlake <d3e3e3@gmail.com> Tue, 19 November 2019 08:14 UTC

Return-Path: <d3e3e3@gmail.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 868C2120897 for <babel@ietfa.amsl.com>; Tue, 19 Nov 2019 00:14:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.748
X-Spam-Level:
X-Spam-Status: No, score=-0.748 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 rGlrpyw7sICX for <babel@ietfa.amsl.com>; Tue, 19 Nov 2019 00:14:51 -0800 (PST)
Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 63418120BEA for <babel@ietf.org>; Tue, 19 Nov 2019 00:14:50 -0800 (PST)
Received: by mail-il1-x131.google.com with SMTP id r9so18772595ilq.10 for <babel@ietf.org>; Tue, 19 Nov 2019 00:14:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PV8tAzcEpMOrqRwlfnwHWtHlrDzWKVaDn7mldVbS2S0=; b=LgeHpHSgxzGALN4RvZ30ZIz4MvlpDHgl4JUhXxRrAIThvFe4+69kGip1ZrbBaj3poW Bml7B9msM0p51koL13dpBjXp1Os8zHajcYnl/+4BoD/ouIXI7gcZqUdmiU+0asIhFtbZ 11jlobLluHPK/gnSiwJX/PNVeUWpAmZo+2U/CBETtz7eN+5I2dKENrH58VD6kWoOYqNV UgAfcP5YZfgS8e2rVqTmoavTxYn7TVgunQR0iShI4pNO+Tqam3EyL7gvoo6Eeuy04j2M SSHsYJZWRajFM+DOaUEFCUrGJFg9WzpbSaeZiqXwlBD3Aw1JurnfWb5wkaMb7kCBfI1f OsZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PV8tAzcEpMOrqRwlfnwHWtHlrDzWKVaDn7mldVbS2S0=; b=osLkduO0seDvZzf81ILaWAFnAvy7UyV7oVak5w4XXWEtee5mjPFZgmBCcQvbRuDK48 Xx7AJy0XUdmRY9aWSze2Wyil9rEaBwsAKKAu0LClYM+HL3oWlbkiVHq9B6/74BFJpGv2 uLT1cQoky4KaCR0Ri+I0MzAXC+neFa9B7bLpDESNe29ZtpatHBAylN3aJzgMNyKjGs+P JdXyOLgxhqXq7NkP1UFqbaHFF4p30XXJllVC/Zg3XiWNyEQfK+24MV742GpdcBOw3jAI eto4SKa2esUrFmVh8F5IopMZ0Ryuw1yEuT0+YeYqwyScjhOhQB+WhySJr9jPTPDbj5P8 nQNw==
X-Gm-Message-State: APjAAAWhpjMu39VNnYdI2N0HI95dsY69orp1zQg8O7aGM3jxKMZsdZJP rv2ADfIswS8Go3FBGrjFTwjmRrjFPZGDdJJi8PA=
X-Google-Smtp-Source: APXvYqw3u7l4b2u+GlgtYyeFxmXm0bNHkuZNUYbMMqzgX3dcQEBRfPDNPsIwwVbsntDTgWZ6Fy7G2RRqCJqu8fDlVSY=
X-Received: by 2002:a92:1642:: with SMTP id r63mr21669918ill.83.1574151289533; Tue, 19 Nov 2019 00:14:49 -0800 (PST)
MIME-Version: 1.0
References: <E419D6CE-8F99-450D-8549-846DB1BEE272@gmail.com>
In-Reply-To: <E419D6CE-8F99-450D-8549-846DB1BEE272@gmail.com>
From: Donald Eastlake <d3e3e3@gmail.com>
Date: Tue, 19 Nov 2019 03:14:37 -0500
Message-ID: <CAF4+nEFBLQJzRfoQhO8LxOAX8o5M2-s+0oe7PeUmQiNifyC1fQ@mail.gmail.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Cc: Babel at IETF <babel@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/LVDejuJgFV7cYfA8ofw-FmkUVX0>
Subject: Re: [babel] YANG errors in datatracker
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Nov 2019 08:14:55 -0000

Hi Mahesh,

Thanks for the clarification.

Donald
===============================
 Donald E. Eastlake 3rd   +1-508-333-2270 (cell)
 2386 Panoramic Circle, Apopka, FL 32703 USA
 d3e3e3@gmail.com

On Tue, Nov 19, 2019 at 1:00 AM Mahesh Jethanandani
<mjethanandani@gmail.com> wrote:
>
> Hi Donald,
>
> To the question of the two errors being reported in data tracker for the Babel YANG model, I just wanted to confirm that those errors are tooling errors.
>
> ietf-babel@2019-10-18.yang:96: error: keyword "if-feature" not in canonical order (see RFC 6020, Section 12)
> ietf-babel@2019-10-18.yang:103: error: keyword "if-feature" not in canonical order (see RFC 6020, Section 12)
>
>
> The ABNF grammar for YANG in RFC 7950 (updated version of RFC 6020) says the following for the identity statement where these errors are reported.
>
> identity-stmt       = identity-keyword sep identifier-arg-str optsep
>                          (";" /
>                           "{" stmtsep
>                               ;; these stmts can appear in any order
>                               *if-feature-stmt
>                               *base-stmt
>                               [status-stmt]
>                               [description-stmt]
>                               [reference-stmt]
>                           "}") stmtsep
>
>
>
> It is clear that the if-feature statement can appear before/after base-stmt per the above grammar, and as such these errors are tooling errors. I believe that it has been fixed in pyang, but that version of pyang has not been published.
>
> Thanks
>
> Mahesh Jethanandani
> mjethanandani@gmail.com
>
>
>
> _______________________________________________
> babel mailing list
> babel@ietf.org
> https://www.ietf.org/mailman/listinfo/babel