[netmod] ietf-snmp question

Andy Bierman <andy@yumaworks.com> Wed, 21 January 2015 20:53 UTC

Return-Path: <andy@yumaworks.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 5D9091A87CC for <netmod@ietfa.amsl.com>; Wed, 21 Jan 2015 12:53:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.979
X-Spam-Level:
X-Spam-Status: No, score=-1.979 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] 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 3PvDgTw8Mp92 for <netmod@ietfa.amsl.com>; Wed, 21 Jan 2015 12:53:16 -0800 (PST)
Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EBE51A87D2 for <netmod@ietf.org>; Wed, 21 Jan 2015 12:53:16 -0800 (PST)
Received: by mail-la0-f43.google.com with SMTP id q1so27285212lam.2 for <netmod@ietf.org>; Wed, 21 Jan 2015 12:53:14 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=CP913zAWoimwGXoJDeRLSKlnnO3uMwmMcD6vEEvJjjg=; b=U8zarWSoDMC+ERE9WTGY3ALH2jwsCbWsyaYc+w4t1eA8htZYct7IVcymyVBlBKwSZP W1whCG3yeb48ab31bb7rfqFr/a2Z1kF80cBXbNXtVo9w7ECGueohEtoOuQBeMYwxcBx0 RKPgTySFIxCHEni1AO9SQAZDX+lqFfDf8QclsWQXienZBOJ2gf2jCX8d4MX3gtoHeP4l bpEds5wCr+eNFJa+UACTyjyYIazYztZFswzxxpmvxJtz/DM1aL4mhe454WXzlWAG38kp n1W8OSo0uSxTs73a8jHEnev9mgYj+cDVF3rILO5FXoVn1b6ku1+SfS2q4tF00ocNphZH IdvA==
X-Gm-Message-State: ALoCoQk84Qvpm3xBcGeqbvlHalfWLhyNS1NtYAtElrw4Vx86ochoqTevRdfBQW37dkg2rMd4GgOb
MIME-Version: 1.0
X-Received: by 10.112.8.69 with SMTP id p5mr46165247lba.97.1421873594773; Wed, 21 Jan 2015 12:53:14 -0800 (PST)
Received: by 10.112.160.41 with HTTP; Wed, 21 Jan 2015 12:53:14 -0800 (PST)
Date: Wed, 21 Jan 2015 12:53:14 -0800
Message-ID: <CABCOCHTDLrTm+htoSkuhtZj61g3n4jwR6UjFG_8_2E25H0Guyg@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/YTgPBYZJG3oea6F-fx8i5pG6tSI>
Subject: [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 20:53:18 -0000

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


  augment /snmp:snmp/snmp:target {
    when "snmp:v1 or snmp:v2c";
    leaf mms {   ... }
  }

I can't find child nodes of /snmp/target named "v1" or "v2c".
I find these nodes:

"v1"
leaf /snmp/engine/version/v1
case /snmp/target-params/params/v1
container /snmp/target-params/params/v1/v1


"v2c"
leaf /snmp/engine/version/v2c
case /snmp/target-params/params/v2c
container /snmp/target-params/params/v2c/v2c


Maybe it's because searching all the submodules is
confusing, but I cannot find the child nodes of 'target'
that would make the when-stmt true.

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


Andy