Re: [Netconf] Invalid when-stmts in yang-push

Andy Bierman <andy@yumaworks.com> Wed, 28 November 2018 23:04 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 94996131056 for <netconf@ietfa.amsl.com>; Wed, 28 Nov 2018 15:04:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.358
X-Spam-Level:
X-Spam-Status: No, score=-3.358 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, URIBL_BLOCKED=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 zPBq-vpdW7ZM for <netconf@ietfa.amsl.com>; Wed, 28 Nov 2018 15:04:01 -0800 (PST)
Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 6AF04131065 for <netconf@ietf.org>; Wed, 28 Nov 2018 15:04:01 -0800 (PST)
Received: by mail-lf1-x132.google.com with SMTP id b20so20668180lfa.12 for <netconf@ietf.org>; Wed, 28 Nov 2018 15:04:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=3AhFOFdFQc+QvcGyiPC5eKwCH9yog5SF4AQQzIVkOIk=; b=qU3epzpNoNl7xHybb75XDCVDYM9YobYulPjbWYQkj0Tdhwv56uhM8hZWyctYfgAU1c OsxOZa9Ci4lprfzeOoTX7yHP9sVVaOtS6gnWB6mOAinp8TJlAkvPSzxHWsOOm12fGH6v Xdd45UdUeE9ZsD/I6OB94UfrSucHXqThaS1irBYLjDS7baO3Uh6oz7OPy82aB45l4Z9T 9oQhVxOalo7anbrBf74FtCQhcJUg4qoKN2fhc4MdLd2TYGQKoqTYVUCU3rmDD5dwiA9z vq/ueUY5izap18rVTZtoTBUZPwMtYing/32TlPiyp+OhTIcmN4D8Raap3LioECGQtvOK mhxw==
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; bh=3AhFOFdFQc+QvcGyiPC5eKwCH9yog5SF4AQQzIVkOIk=; b=K/HubYquDqWP8XB94Osutl3raF7Dp+gWBrePfStUBjWe5WMsmDUYBso9tVqbD3znpk ryj5U8w0jTPsGI7sj8dpq2wqi0tb8vJrwaWex9ewmHHqTAnE5feYECUvQtQtykV4tnG/ 95yiBfe/74SL6bZQMdZCCFPo/YVCCHm0jGY6Ys+PCzdyz+yv6NvLCWElEODcuVBgdkKn 2VlLmIFHaejclfkSp2sBnDOVxme7lv9ZxyI37Z4eAE5D1NohgHk+gT2633yFAKznMp2A 9kz7LE1/Wuzjf41SneKEQblsg+gN+kDNHzK3uXntArQImFE7jfMrue+sR7jIPNP77a14 kKmQ==
X-Gm-Message-State: AA+aEWZYc0D67YtjDBQisT3qd0rkqIZMZ60QhAuZqxJ0p4JQ7BpIDCyd XBv1LTxUzzOQcEPWOACveuUn/lt1dNFCBesiXVPzdmQTlF8=
X-Google-Smtp-Source: AJdET5cPtWDZYaK1MSwlkwLCvMF/l8TnKe/8uvOWykY/zvbjinjTMB0kBmobPoyDtLYOJon7JYViqAaacIIjlQPK74o=
X-Received: by 2002:a19:ca51:: with SMTP id h17mr21355715lfj.126.1543446238965; Wed, 28 Nov 2018 15:03:58 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHRAa91=S2fx7+gZZwZiNq5byC7HSoR4Sm+Ogk7GMKK0Vg@mail.gmail.com>
In-Reply-To: <CABCOCHRAa91=S2fx7+gZZwZiNq5byC7HSoR4Sm+Ogk7GMKK0Vg@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 28 Nov 2018 15:03:47 -0800
Message-ID: <CABCOCHTEQ9B31S9V6Kv+XuE4ZRNXNx1wQeYeJ06pvJZhb87taA@mail.gmail.com>
To: Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000cdc8e7057bc19403"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/iV9M_gtcJJlxRhBqqAqGkZx0fx0>
Subject: Re: [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 23:04:06 -0000

On Wed, Nov 28, 2018 at 2:48 PM Andy Bierman <andy@yumaworks.com> wrote:

> 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
>
>

pyang is also reporting these warnings:

ietf-yang-push.yang:365: warning: XPath for "../sn:target/yp:datastore"
does not exist
ietf-yang-push.yang:572: warning: XPath for "sn:target/yp:datastore" does
not exist
ietf-yang-push.yang:616: warning: XPath for "sn:target/yp:datastore" does
not exist
ietf-yang-push.yang:816: warning: XPath for "sn:target/yp:datastore" does
not exist


Andy