[Netconf] Invalid when-stmts in yang-push

Andy Bierman <andy@yumaworks.com> Wed, 28 November 2018 22:48 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ADA7412EB11 for <netconf@ietfa.amsl.com>; Wed, 28 Nov 2018 14:48:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.359
X-Spam-Level:
X-Spam-Status: No, score=-3.359 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-1.459, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 l7XJ10M_heDz for <netconf@ietfa.amsl.com>; Wed, 28 Nov 2018 14:48:20 -0800 (PST)
Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (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 71642126F72 for <netconf@ietf.org>; Wed, 28 Nov 2018 14:48:20 -0800 (PST)
Received: by mail-lf1-x129.google.com with SMTP id e26so20663607lfc.2 for <netconf@ietf.org>; Wed, 28 Nov 2018 14:48:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=eRxo5hAkjhDNp/i5PORdM48kerrXMCvVKcF7gc4Ug18=; b=m3JwLol/KmmhLbTL0+5G0T++U8yytv7Ci+bg5RhlcSxJsKtgjKLn1N+tAUO4N9M9y/ 5kYqLQzCPT3UziaBUXTXQ6ltwAol3zXc0aMZkfwa6Lod22+cw99SY8AL3WYA8y3WPMRf bi1oNGmPgRSfQlI0r0K/dbR7jS6wf8/hzXeY1txrNM3RABlFsgL9zMut6MiKs0RulMCN RoWB/MpBRqtaEfAkmYsZ3o0FCEIRqZDu43ei4k47bxCs6H4NuziuX4GAUE8aoarlJzip kGXr7hi35lSsPXvN4TGazbIdy8JQXowP7vB0oVZh5mAiz0UED4CH+rtiaZZU8+SvBX3f rX6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eRxo5hAkjhDNp/i5PORdM48kerrXMCvVKcF7gc4Ug18=; b=U3Sjgng40qFM3SlAKXGeO/aGX7frSdgH/GL/1sdiJTbxDxFypD/u9beTXPf4Wnt83H aTeYIUTRifPwXqceq4fPWXkQSAKIaWDfoc8NZvMwkxmiIKANtl1S2QkDrg2w6p9UVbzY kGyQgtWje3fXV1yfrFusWY7mvtROA0xrWGsGSfV6GN20KLxg0iXZJCUEmwOqWatpWUzB 0hCgqgNFQg4XEQ3fanVg/sXuRRh+jXAuGFuiTV6DOdD3zhghGE0AJ8FgovyxGT73ddEb 5GSKbN+0oms3Ari79PjbbKeJVvQ9aHlOlznoVHWuR31oVlXl0S24qoJMMgYCn+CqJ5KM RAUg==
X-Gm-Message-State: AGRZ1gJTVeKzZfyslcBdol2E+MC2kmfcWZ8LXdDARGnMEvP67y7LQuCi EHSElsGjORHJKVP4OldnZ9LEJ0wtTA97h7EaVi2KcWGyXcc=
X-Google-Smtp-Source: AJdET5dPPzi+PDneyAux9UGZVDvTtTB6iTY0pcbGmjhdngPPBMfyPBXvGbiUZMyocXZ5kIeRidvsgoQ2BTfjP1k8E9Y=
X-Received: by 2002:a19:6f0a:: with SMTP id k10mr22043329lfc.119.1543445297947; Wed, 28 Nov 2018 14:48:17 -0800 (PST)
MIME-Version: 1.0
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 28 Nov 2018 14:48:06 -0800
Message-ID: <CABCOCHRAa91=S2fx7+gZZwZiNq5byC7HSoR4Sm+Ogk7GMKK0Vg@mail.gmail.com>
To: Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000b7020e057bc15cca"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/EB5IF2XWrQb2i8em0dh2xAOUcvo>
Subject: [Netconf] Invalid when-stmts in yang-push
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Nov 2018 22:48:23 -0000

Hi,

During implementation of yang-push-20 our developer found that
the when-stmts for establish-subscription are always false.


E.g. line 365:
    choice update-trigger {
      when "../sn:target/yp:datastore";

The node 'target' is a choice. The node 'datastore' is a case.
Since the when-stmt is looking for data nodes not schema nodes,
the node-set is always empty.


There are 4 occurrences:

Warning: no child node 'ietf-subscribed-notifications:target' found for
parent 'ietf-subscribed-notifications:subscriptions'
XPath: ../sn:target/yp:datastore
ietf-yang-push.yang:365.15: warning(1032): no child node available

Warning: no child node 'ietf-subscribed-notifications:target' found for
parent 'ietf-subscribed-notifications:input'
XPath: sn:target/yp:datastore
ietf-yang-push.yang:572.10: warning(1032): no child node available

Warning: no child node 'ietf-subscribed-notifications:target' found for
parent 'ietf-subscribed-notifications:input'
XPath: sn:target/yp:datastore
ietf-yang-push.yang:616.10: warning(1032): no child node available

Warning: no child node 'ietf-subscribed-notifications:target' found for
parent 'ietf-subscribed-notifications:subscription'
XPath: sn:target/yp:datastore
ietf-yang-push.yang:816.10: warning(1032): no child node available