Re: [netmod] Action and RPC statements [was Re: augment YANG 1.0 with YANG 1.1 OK?]

Randy Presuhn <randy_presuhn@alumni.stanford.edu> Thu, 26 October 2017 18:23 UTC

Return-Path: <randy_presuhn@alumni.stanford.edu>
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 6720513F5D8 for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 11:23:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level:
X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 K4V21lvdmbGV for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 11:22:58 -0700 (PDT)
Received: from mail-pg0-f51.google.com (mail-pg0-f51.google.com [74.125.83.51]) (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 5636813F442 for <netmod@ietf.org>; Thu, 26 Oct 2017 11:22:57 -0700 (PDT)
Received: by mail-pg0-f51.google.com with SMTP id y5so3336082pgq.7 for <netmod@ietf.org>; Thu, 26 Oct 2017 11:22:57 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7ihuhcGrINgRW033TT3K1nJfFfP1DqgzUZpAyB+B3WA=; b=FrSsF5m+7NmRbyDhK9qvU0R1NwahlFnqnCSEfjARfsUpUcZxOQC7ymgqnrhuzLrn8N Prapw8B8CYQDmkYKFGhue+96PmhSRGzOyfINMbOPmrVvANNvKAB+zzV1xvLUlNIpLp9p w+KSpQltnYCxTnVrbU62gYqzUq3HGw0Ed1Ehj9i/E7g/wjM2k8tZXBb2B8S0Wr8x+RZt 54X6WNrk/HEop2QBskaxkfYlKs2ekOJXm3lis8NL3WhgokRfnAR6qdO0VJQyLQF4Zdy+ kPc+yh3qC6DJ1GbIpOX6m1QsiTto5ff3OM2UMEk3xgCR78FSzTBmOUvZ0+jeUTh5wMQc GnVQ==
X-Gm-Message-State: AMCzsaXow6SiVAIt6bqNBws5qTIU+ixe07FjdQ+AJhqjH4lPiQ+JsOq9 +96o8psWtkMJRuMlu8cCDl+Ua0eAiQY=
X-Google-Smtp-Source: ABhQp+SNOGm0Yu/VeDDXSd82zVjPmBhbY+UVW6wXh/oQuqx16bsygtnezRq/VEZwmBA3fWfOSLvlag==
X-Received: by 10.84.244.6 with SMTP id g6mr5148276pll.148.1509042176525; Thu, 26 Oct 2017 11:22:56 -0700 (PDT)
Received: from [192.168.1.102] (c-24-130-218-233.hsd1.ca.comcast.net. [24.130.218.233]) by smtp.gmail.com with ESMTPSA id f85sm12586093pfj.5.2017.10.26.11.22.55 for <netmod@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 11:22:55 -0700 (PDT)
To: netmod@ietf.org
References: <20171015.095206.5556973134711466.mbj@tail-f.com> <CABCOCHR_q8DTF2agDi_VH9pSL8DWV1ttuX=ZZDO9OmNXhAeEsg@mail.gmail.com> <20171018143651.kdsf77r65ptlu4mq@elstar.local> <CABCOCHRVdkjV5PgQ+UtwJMKPLeFRKs_=ogAfTaCGZsWEdgP5uw@mail.gmail.com> <20171018213601.hdkt2qtqsno6vr4u@elstar.local> <CABCOCHS72TVrurJ1mTRi4eGQR3=G1=bx3wk_NK07NOB8OaZfKg@mail.gmail.com> <bacb34ef-d3d9-babd-467e-188146c1084d@cisco.com> <CABCOCHR6tSg9RRW7gZ50qp6F5frWGm-P1qK_0xEEQdiNursB7A@mail.gmail.com> <20171024172125.l6l3yhocakfkcoh2@elstar.local> <CABCOCHQ8nbf_H6eJxGFqwr=LHrdxyFWc3a4FfhLwR45bs-J19Q@mail.gmail.com> <20171025110851.wdoj2dbrqmxz5shd@elstar.local> <CABCOCHR22Ehryxu374a_-F6PFYayTgizReHuC0EaY4uBC7+vyg@mail.gmail.com> <4d2030ca-3d75-72db-1afd-76a8597b615c@cisco.com>
From: Randy Presuhn <randy_presuhn@alumni.stanford.edu>
Message-ID: <c544a19e-2534-9355-002e-18affd12ea5a@alumni.stanford.edu>
Date: Thu, 26 Oct 2017 11:22:54 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <4d2030ca-3d75-72db-1afd-76a8597b615c@cisco.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/PJ9UKDDDr5XC2GiaEjAHzLLTTEg>
Subject: Re: [netmod] Action and RPC statements [was Re: augment YANG 1.0 with YANG 1.1 OK?]
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: Thu, 26 Oct 2017 18:23:00 -0000

Hi -

On 10/26/2017 10:44 AM, Robert Wilton wrote:
> Hi ,
> 
> Separating out the issue regarding which datastore action and RPC apply 
> to, we propose the following NEW text to the datastores draft:
> 
> 6.2 Invocation of Actions and RPC Operations
> 
>    This section updates section 7.15. of RFC 7950.
> 
>    In YANG data models, the "action" statement may appear under "config
>    true" and "config false" schema nodes.  While instances of both
>    schema nodes may appear in <operational>, instances of "config true"
>    schema nodes may also appear in other datastores.
> 
>    An NMDA compliant server MUST execute all actions in the context of
>    <operational>.  Likewise, an NMDA compliant server MUST invoke all RPC
>    operations in the context of <operational>, unless the RPC is explicitly
>    defined as affecting other datastores (e.g., <edit-config>).
> 
> OK?

A question - I understand the motivation for the "unless" for RPC
operations, but wonder why there is no similar "unless" for actions.

Randy