Re: [netmod] ?= Augment with a when and an actio

Michal Vaško <mvasko@cesnet.cz> Tue, 29 September 2020 14:21 UTC

Return-Path: <mvasko@cesnet.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A813D3A0D42 for <netmod@ietfa.amsl.com>; Tue, 29 Sep 2020 07:21:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cesnet.cz
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 TwusNWZa_eth for <netmod@ietfa.amsl.com>; Tue, 29 Sep 2020 07:21:20 -0700 (PDT)
Received: from kalendar.cesnet.cz (kalendar.cesnet.cz [78.128.211.34]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C9353A0D3C for <netmod@ietf.org>; Tue, 29 Sep 2020 07:21:18 -0700 (PDT)
Received: by kalendar.cesnet.cz (Postfix, from userid 999) id 3E207601C1; Tue, 29 Sep 2020 16:21:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=kalendar; t=1601389275; bh=4ZUxOhpKs41nIKHXmCX/swmU8KxpzE6Uk/0qsPJXhdg=; h=In-Reply-To:From:Date:Cc:To:Subject; b=R/kMQ6tpaT3pZ/F5UdaSaEkGXBS8RAeIfcc/qmcQ42wTClx2KOzASvGwrNqNLs3yU B9x1FlGwL9tbSAoUDpRIyg1d/N66yd7YfvsPEzlj82QPUD42ObvvqB0cecoXjYAnJ2 sS54UoHg5wO1bx1ZWbIPR1s7hXgOWgkLVFh2+Le4=
Content-Type: text/plain; charset="utf-8"
In-Reply-To: <01000174da2063cc-3fb881b0-fea0-4593-8b98-6329874b6af1-000000@email.amazonses.com>
From: Michal Vaško <mvasko@cesnet.cz>
X-Forward: 2001:67c:1220:80c:b5:55d3:81d5:8636
Date: Tue, 29 Sep 2020 16:21:15 +0200
Cc: tom petch <ietfc@btconnect.com>, "netmod@ietf.org" <netmod@ietf.org>
To: Kent Watsen <kent@watsen.net>
MIME-Version: 1.0
Message-ID: <14eb-5f734300-d-13ef5460@33687183>
User-Agent: SOGoMail 2.3.23
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/91jxwOx1Pq21NUXvAWWTXfyv3ek>
Subject: Re: [netmod] ?==?utf-8?q? ?==?utf-8?q? ?= Augment with a when and an actio
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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: Tue, 29 Sep 2020 14:21:25 -0000

Hi Kent,

> > okay, thanks. Then it seems it should be normally supported
> 
> Yes, and note the “workaround” mentioned in the GItHub issue is essentially the solution in your OP.   

Well, not exactly. It is a solution for model authors who want to make their action conditional. I am trying to learn how to behave in case a module with "augment" with both "when" and "action" is being loaded, the opposite position of a YANG module reader.

> > and made conditional.
> 
> Supporting “when” under “action” would be getting ahead of the curve, so a conditional is reasonable.
> 
> 
> > Just to make certain, the same goes for notification, right?
> 
> I would think so. Please scan the GitHub issue list and, if you don’t see it mentioned already, create a new issue for it.
 
Will do.

Regards,
Michal