Re: [netmod] Action and RPC statements

Andy Bierman <andy@yumaworks.com> Tue, 31 October 2017 17:14 UTC

Return-Path: <andy@yumaworks.com>
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 49A5B13F9D9 for <netmod@ietfa.amsl.com>; Tue, 31 Oct 2017 10:14:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 5ux3yuJw7Ahc for <netmod@ietfa.amsl.com>; Tue, 31 Oct 2017 10:14:22 -0700 (PDT)
Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (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 F3E2F13F9A1 for <netmod@ietf.org>; Tue, 31 Oct 2017 10:14:21 -0700 (PDT)
Received: by mail-lf0-x22b.google.com with SMTP id 90so19880678lfs.13 for <netmod@ietf.org>; Tue, 31 Oct 2017 10:14:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=isBwoB2AU25wY51Kp9NMiGKhJybdgbtUg3cMjKR3cmY=; b=ftu3llFEGpOyHLzK04VheGNJ2rh0SONl7XeLL0NMH3aoo6jbkCs5ny8cze08FTC1PL 13l/noITeSlzZ3gOPOfz/br/3bJvKqekhZ9djshdL5GLctzhPg5fVvev7ZimIJWvtAOU 6Xuno4Zl1R2VADuGRi33Ww1Sq9FS7hv3tmo5d88RUMjvrtypPRNwwJ8mLTunNjmjlWZo 7orkaGqvK6TWpjL2ZcFPZPXZBw7RlCbHv2vlg/Vp5se2PzaXXvxe0AlGA6s4DxdwGlQT yi3fu5BnA/vwRwXWvoVKH0ac+iiYoIKhp5uIfjSczbqwUpHe7zoyFuT5Gminj+YsqRpA jXzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=isBwoB2AU25wY51Kp9NMiGKhJybdgbtUg3cMjKR3cmY=; b=c5VGtGUtUCC0n3cZWA4h+K2n8NqdYP0ozK+V50OdNFhY1CAMipA+KDhCMEfJabcIbn MFv6XpQX6rDrg3pOkghlpsTJfNc1jUYxQ7vHSpCLbjASK+q+2VXX8J6s828b03Hg2N3m gkD+Hk66qiSuKRCAKmlwEZz4cSAlhnFm4a/5bxmtKsSuI4zCOXRSS+CpzgD4IUJyfTYU pbe5CSYouIhYHH6iOb+5srVCUSeAXp4UdHaCZx2pgj00Ug5wYQu4Fq9XEj37xDyrUw+8 5lujL4c+1mHZvNidASx2umczpn4V16H3qAnMwcyKgS8fAt0smgRYmjDx3snkFujVBkkJ Mkug==
X-Gm-Message-State: AMCzsaVpuSYdgHrgg2hMPzO1Ydk6rFiCELp/7TFMLnpa3RU+07au0u6b zqpkxKYfvkq/tSratVG80dmAaS3d1Nl4XuopsvSDGA==
X-Google-Smtp-Source: ABhQp+QnGjud7DCHj8wxUzRcMNEg0q+paFlCoOaTS05KiczQ4i1NXjkNTNdmELHa5GYdwDYWcv52apZmoksA8TYFxiQ=
X-Received: by 10.25.22.194 with SMTP id 63mr1038973lfw.205.1509470060080; Tue, 31 Oct 2017 10:14:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.150.198 with HTTP; Tue, 31 Oct 2017 10:14:19 -0700 (PDT)
In-Reply-To: <20171027.103341.1048835221774842137.mbj@tail-f.com>
References: <4d2030ca-3d75-72db-1afd-76a8597b615c@cisco.com> <c544a19e-2534-9355-002e-18affd12ea5a@alumni.stanford.edu> <CABCOCHQdmMYObMBCxP=qWuH3RdCRi9q7Y6G0VsSnDeyg2qLc4w@mail.gmail.com> <20171027.103341.1048835221774842137.mbj@tail-f.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 31 Oct 2017 10:14:19 -0700
Message-ID: <CABCOCHTxw4Mx3qp84tfE5pW6Hsyyjxq4wXSi8DRTazmxDVgBaA@mail.gmail.com>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: Randy Presuhn <randy_presuhn@alumni.stanford.edu>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="001a113f2092bb10e6055cdae2e8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/nskb66oPZBryZnmXhVNMOhIQP-8>
Subject: Re: [netmod] Action and RPC statements
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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, 31 Oct 2017 17:14:25 -0000

On Fri, Oct 27, 2017 at 1:33 AM, Martin Bjorklund <mbj@tail-f.com> wrote:

> Andy Bierman <andy@yumaworks.com> wrote:
> > On Thu, Oct 26, 2017 at 11:22 AM, Randy Presuhn <
> > randy_presuhn@alumni.stanford.edu> wrote:
> >
> ....
> >
> > The <rpc> is not really in a datastore at all.
> > It may have input and output parameters with leafref and must/when
> > statements.
> > These are evaluated in the <operational> context.
> > The <rpc> may in fact be something like <edit-config>
> > which has parameters (like <config> to apply to
> > a specific datastore.
> >
> > The action node is embedded within some data that has to be parsed
> > in a specific datastore before the action is processed.
> > This data is required to be in <operational>.
> > It also has XPath and leafref that needs to be resolved (same as <rpc>).
> >
> > The side effects of the <rpc> or <action> can impact other datastores.
> > This would be defined in the description-stmt and this is not a problem.
>
> This is exactly right.  We need to capture this in the text.
>
>
I don't think the new text is very clear.
The system side effects are irrelevant, but both the same for rpc and
action.

The only issues relevant to YANG are:
   - datastore used to evaluate action ancestor nodes
   - datastore used to evaluate input parameter leafref, must, when
   - datastore used to evaluate output parameter leafref, must, when


These properties cannot be modified by description-stmt.
Not now, not ever. Not for rpc. Not for action.

It is irrelevant to NMDA whether the rpc or action modifies a datastore,
starts a playlist on a jukebox, or makes some toast.



> /martin
>

Andy