Re: [netmod] ietf-snmp question

Martin Bjorklund <mbj@tail-f.com> Wed, 21 January 2015 21:25 UTC

Return-Path: <mbj@tail-f.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 B74C21A888E for <netmod@ietfa.amsl.com>; Wed, 21 Jan 2015 13:25:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 u8OWFPyFXvpM for <netmod@ietfa.amsl.com>; Wed, 21 Jan 2015 13:25:29 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [83.241.162.140]) by ietfa.amsl.com (Postfix) with ESMTP id 5E44D1A887E for <netmod@ietf.org>; Wed, 21 Jan 2015 13:25:29 -0800 (PST)
Received: from localhost (unknown [193.13.112.215]) by mail.tail-f.com (Postfix) with ESMTPSA id 31EF91280996; Wed, 21 Jan 2015 22:25:28 +0100 (CET)
Date: Wed, 21 Jan 2015 22:26:56 +0100
Message-Id: <20150121.222656.978148438571440598.mbj@tail-f.com>
To: andy@yumaworks.com
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <CABCOCHTDLrTm+htoSkuhtZj61g3n4jwR6UjFG_8_2E25H0Guyg@mail.gmail.com>
References: <CABCOCHTDLrTm+htoSkuhtZj61g3n4jwR6UjFG_8_2E25H0Guyg@mail.gmail.com>
X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/rKYQWaCwJUM5l96JCxbzGmxGL58>
Cc: netmod@ietf.org
Subject: Re: [netmod] ietf-snmp question
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: <http://www.ietf.org/mail-archive/web/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: Wed, 21 Jan 2015 21:25:30 -0000

Hi,

Andy Bierman <andy@yumaworks.com> wrote:
> Hi,
> 
> I am working on a YANG parser bug related to "augment when".
> I am running yangdump-pro and getting this warning for ietf-snmp.yang
> 
> Warning: no child nodes found in XPath expr 'snmp:v1 or snmp:v2c'
> ietf-snmp-community.yang:220.10: warning(1032): no child node available

[...]

> Is this a bug in the RFC or am I missing something?

It is a bug :( It used to be correct, but in draft -05 (I think) the
data model was changed.  Unfortunately, pyang doesn't have a XPath
parser so it doesn't detect this.  (I am working on a new compiler
that *should* have detected this, but it turns out it had a bug which
I just fixed, and now it also detects this error.)


/martin