Re: [netmod] augment YANG 1.0 with YANG 1.1 OK?
Andy Bierman <andy@yumaworks.com> Wed, 18 October 2017 22:16 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 C55B2133090 for <netmod@ietfa.amsl.com>; Wed, 18 Oct 2017 15:16:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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 4D1aLyfVVrTE for <netmod@ietfa.amsl.com>; Wed, 18 Oct 2017 15:16:07 -0700 (PDT)
Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (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 9FEE613292A for <netmod@ietf.org>; Wed, 18 Oct 2017 15:16:06 -0700 (PDT)
Received: by mail-lf0-x229.google.com with SMTP id d10so7461631lfg.11 for <netmod@ietf.org>; Wed, 18 Oct 2017 15:16:06 -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; bh=qXXBw1SNxvKZ9o7DVfD0S4Gy3qB6DUCju62qZ1a7dgg=; b=jRCxsKmuxgw+vA+kPRUzYizHO8QMLCSV06xgfAi6unhtITz6rV0jE79eyWQpVpV3ec sJrea8Le3nlqGWkJWorWMoELPIKJsUEri2KywYydJ2Um8rL82SwBveosIHRebH4DSnB6 HguzwHUFIdVlq9J0ZfuP/smulsseyQjvf11pFR85O8nbvW+NrtiJ2xLLV4/+rRBa7Jri A80Fb3zBYc3PmwUonK/4MbETCKA/X3+gozN3j1CCqvh6QRGaeKqI0he9e30t4k33ZqwO 0Y0pqzB3jrnVzZIWFKE5exdq1AaxY1+C4cfdhKaX0uZjKblIypJsKTO34T1Cahrwl+t6 GgNg==
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; bh=qXXBw1SNxvKZ9o7DVfD0S4Gy3qB6DUCju62qZ1a7dgg=; b=WZmD3RiEF9EyHDhzgo+0nvuy5zjj/Y4osQDmVN8VGmXNUX1PzlVtMZikDr9kvNdsOp l2AZoa+Bjmim3ZdIs4ZA99lvryA/wTBqVT3LXfRCNyTQiHVbTWRGsdExKuNwVMJCTNEJ /Sx5paqOHmUbtKx63tj8mV6X5gGIW0pAIKwLp1og6iI9mnoRnB/ceK8+cuwbiWH2IOWh jjGzh2uYI594+bovSlflgBCD6reKdWP643cH2yP9i0Uap4cJpdnZJk4R2qGggkZOHeSG JQ+fwhL/HoHhQbS9bHMSjVPFkxlprhI8KuxwyWMzV9LQVphfCZQO/LY/ADHhioMR6Ist HpiQ==
X-Gm-Message-State: AMCzsaXPi5SKIZW17kPm1PKkckPR+kHpY2t5HYZpFHrTBOAbY4loGPA0 gRfpidJB73HwscZGWJzymvHcWWaxiZgSebvmH8iGfg==
X-Google-Smtp-Source: ABhQp+S+1BN0CK55qx1PD4ac7vx9GrQMDbwN9kSpucDY5X8TnC8k7XGWIR6hzOpN66EKU76UfBFj4vpMMhJkJFCPeqU=
X-Received: by 10.25.22.194 with SMTP id 63mr8233lfw.205.1508364964708; Wed, 18 Oct 2017 15:16:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.150.198 with HTTP; Wed, 18 Oct 2017 15:16:03 -0700 (PDT)
In-Reply-To: <20171018213601.hdkt2qtqsno6vr4u@elstar.local>
References: <CABCOCHQhPHxen2YD-ZPHqpGZN5YrE_7RVe7_3qUkdazL+PTSmg@mail.gmail.com> <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>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 18 Oct 2017 15:16:03 -0700
Message-ID: <CABCOCHS72TVrurJ1mTRi4eGQR3=G1=bx3wk_NK07NOB8OaZfKg@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="001a113f2092e9d68d055bd9959e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/LSbbs6OvfXCA2gX-H2JkRmXhvu8>
Subject: Re: [netmod] 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: Wed, 18 Oct 2017 22:16:09 -0000
On Wed, Oct 18, 2017 at 2:36 PM, Juergen Schoenwaelder < j.schoenwaelder@jacobs-university.de> wrote: > On Wed, Oct 18, 2017 at 01:26:30PM -0700, Andy Bierman wrote: > > On Wed, Oct 18, 2017 at 7:36 AM, Juergen Schoenwaelder < > > j.schoenwaelder@jacobs-university.de> wrote: > > > > > On Sun, Oct 15, 2017 at 12:56:42PM -0700, Andy Bierman wrote: > > > > > > > > > > > > augment "/if:interfaces-state/if:interface" { > > > > > > action reset { > > > > > > description "Reset this interface"; > > > > > > } > > > > > > > > Can you spot the NMDA problem above? > > > > Actually, it exists for in-line definitions, not just augment. > > > > > > > > Once you collapse the interfaces-state tree into /interfaces, there > > > > is no way to specify whether an action is intended for <operational> > > > > or a configuration datastore, or all datastores. > > > > > > I think operations (both RPCs and actions) by default always execute > > > in the context of the operational state datastore. This is consistent > > > with the way we define the xpath context. An operation that operates > > > on other datastores needs to carry this information in its semantics > > > and typically requires special arguments to select the datastores > > > affected. This is how <get-config> and <edit-config> work. Hence, a > > > reset action defined for an interface by default applies to the > > > operational state datastore. And this default makes likely sense for > > > most actions and RPCs. > > > > > > If an action or RPC is expected to operate on a different datastore, > > > the description must explain this and there may be a need to pass a > > > datastore identifier to the operation. [Yes, in retrospect, one might > > > have designed the protocol differently so that there would always be a > > > datastore parameter at the protocol level but its too late for that.] > > > > > > > > > > IMO this needs to be simple and deterministic. > > All YANG actions in an NMDA server are invoked against <operational>. > > > > Well, yes, like all RPC operations - except that we have RPC > operations that do act on other datastores. ;-) But the generic > mechanism including any xpath contexts is against operational. If the > semantics of the operation that say 'interpret parameter 5 as a > datastore name and act on that datastore', well then this is what the > designer wanted. This is how edit-config and friends work today. > > Except this approach is ad-hoc and sub-optimal. That's why NMDA <get-data> is better (because it is extensible yet not ad-hoc). IMO an <action2> wrapper would be a good addition for a YANG update <action2> <datastore>rd:running</datastore> <top> <foo> <test-action> ... </test-action> </foo> </top> </action2> It is better to keep the YANG model decoupled from datastores, and use a protocol parameter to make it explicit. /js > Andy > > -- > Juergen Schoenwaelder Jacobs University Bremen gGmbH > Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany > Fax: +49 421 200 3103 <http://www.jacobs-university.de/> >
- [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Robert Wilton
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Juergen Schoenwaelder
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Robert Wilton
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Andy Bierman
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Martin Bjorklund
- [netmod] Action and RPC statements [was Re: augme… Robert Wilton
- Re: [netmod] augment YANG 1.0 with YANG 1.1 OK? Robert Wilton
- Re: [netmod] Action and RPC statements [was Re: a… Randy Presuhn
- Re: [netmod] Action and RPC statements [was Re: a… Andy Bierman
- Re: [netmod] Action and RPC statements [was Re: a… Randy Presuhn
- Re: [netmod] Action and RPC statements Martin Bjorklund
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Kent Watsen
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Randy Presuhn
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Alexander Clemm
- Re: [netmod] Action and RPC statements Phil Shafer
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Alexander Clemm
- Re: [netmod] Action and RPC statements Alexander Clemm
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Phil Shafer
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Martin Bjorklund
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Martin Bjorklund
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- [netmod] Reset tags RPC [was Re: Action and RPC s… Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Andy Bierman
- Re: [netmod] Action and RPC statements Juergen Schoenwaelder
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements Robert Wilton
- Re: [netmod] Action and RPC statements Lou Berger
- Re: [netmod] Action and RPC statements t.petch