Re: [netmod] OpsState Direction Impact on Recommended IETF YANG Model Structure

Andy Bierman <andy@yumaworks.com> Wed, 13 July 2016 22:22 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 6D07712D894 for <netmod@ietfa.amsl.com>; Wed, 13 Jul 2016 15:22:44 -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 CIPAEjDLiF_W for <netmod@ietfa.amsl.com>; Wed, 13 Jul 2016 15:22:43 -0700 (PDT)
Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (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 BC99D12D5E8 for <netmod@ietf.org>; Wed, 13 Jul 2016 15:22:42 -0700 (PDT)
Received: by mail-vk0-x230.google.com with SMTP id w127so27252182vkh.2 for <netmod@ietf.org>; Wed, 13 Jul 2016 15:22:42 -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=N1Ty0Ri9taIr9g1097iSBlurwJvkMuyKpOnr3jRMkHc=; b=IoTii+gYVZhVVEGhqmI4FNRJxocoFH7GooGSTSs0Hk2rUO1ErYwSTfS1iIXQ69mDD7 yICK3AzyUMbmrAbPkANWC1tIoLL5KoGMyByj1up0RkqMvWAQRtgtSgbBYtN+ARhVs9VB y4Zz9SCN2Rt+JxC9sWsAIYVo3RhuUU2d20OVo1pz47Yi11MfhPXnF+7iS66mgY9tsk8Y rE4GgY07L0Tgc/sCvrpASpNt3V6pjFP5dR6slR7w8/1sFvfrSquF+12KrN8jQ964ekQB N6gwtjvzRBptM6/WsZphBBNA7pQOQRgcnydt9qLZdpiU5vjdJqi1apDSnhtnFuZTmM80 yFEQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=N1Ty0Ri9taIr9g1097iSBlurwJvkMuyKpOnr3jRMkHc=; b=lJH2UEAipBpfyvA81xpSlP7nt/g2v6mQ17EGpffhuwB7PAZ5MAWvh6ma/ffme4BeeG vQyxTYbDl4dEHb3dzXqme0SUZSuXbi3vySOlrAl5isdvbYjy+ZVUrtkiaoHfjCvYX0Fh v1/PxS7GrnuU/Ak6QCDDsFCga6xE3MlRhIK/4rHQA3JH9Fyo+W+goKelAhol2HFXl+vt ho7m2B4vyswjSH+MTYkxDofoJLCYltq4RCE7K9sXBy7GcP1fQ+hYgPkqkYOKh8yXkMiK iMV6NGtIJ8iXWaJ0l/K7NqOCPP4SxDQZPhSVw0txC7j4Wfzaj5IRrFodyvMtXYDk1r3e rtXg==
X-Gm-Message-State: ALyK8tKUHT/vsxdvm/NCgzxLpIhH7mNHaXF2T0tlJLGZGEiQBV4QP/D2yknZylMwwZrZVy7Z9mVOxrm9WToS4Q==
X-Received: by 10.31.9.65 with SMTP id 62mr5111443vkj.89.1468448561859; Wed, 13 Jul 2016 15:22:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.20.2 with HTTP; Wed, 13 Jul 2016 15:22:40 -0700 (PDT)
In-Reply-To: <68860051-8A8A-4437-8845-C8BC0A02F0B6@juniper.net>
References: <D3A935F0.6A4DC%acee@cisco.com> <02b5661f-22e0-6ccc-89d2-ef0370c4e87c@labn.net> <CABCOCHSH5wC3-VbAF6tXOc+3tSxpC3a0MA23YEkUFEBojoo25w@mail.gmail.com> <2b35a279-3c13-8b39-6e93-6c5e9d3ba2c2@cisco.com> <CABCOCHTOEY4dZM+bduWZ5N-k8dB_uO8=mdqtYQV0ktC6-TPyBw@mail.gmail.com> <3deb9416-e012-e8e3-43e2-be0d090a707a@cisco.com> <CABCOCHSnWaiUPqtpQpND0m3WYy6aYOTJJfJNEe5295bttuy_zw@mail.gmail.com> <D3AAA2CF.6B279%acee@cisco.com> <CABCOCHSa5ECo-j42uMFCqQOU7hUf4qYiDACu+269zd9Rgthafg@mail.gmail.com> <20160712190709.GA36335@elstar.local> <CABCOCHTSshuiihRkpzG=ppMROYcg0AFqtDM=t9A2==mT7gqvrQ@mail.gmail.com> <0534179e-41f9-89a4-e8d7-f4c41cb6140e@cisco.com> <CABCOCHS+8LXFQeZAY-TiZ82n2guCyA4j3zj_beuuJ9ztkHHFog@mail.gmail.com> <68860051-8A8A-4437-8845-C8BC0A02F0B6@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 13 Jul 2016 15:22:40 -0700
Message-ID: <CABCOCHSx5u-BuC1FRF357Xz0Q0BZDdQ2huov3kt6JfsJSLY4yQ@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Content-Type: multipart/alternative; boundary="001a11440b64e6a89805378bd20d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/BlK3Wcqiupp4sEHUOzu4LgYbv6I>
Cc: netmod WG <netmod@ietf.org>
Subject: Re: [netmod] OpsState Direction Impact on Recommended IETF YANG Model Structure
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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, 13 Jul 2016 22:22:44 -0000

On Wed, Jul 13, 2016 at 3:17 PM, Kent Watsen <kwatsen@juniper.net> wrote:

>
>
>
>
> > RW:
> > Are you thinking of a single global notification of convergence?
>
>
>
>
>
> > No
>
> >
>
> > I think the client would request a notification for its edit.
>
> > There would be a long-form and short-form notification.
>
> >
>
> > The interaction model is simple:
>
> >   A) at the time of the request the client opt-in for being notified
>
>
>
> opstate-reqs refers to this as an asynchronous configuration operation.
> Requirement 2-B says:
>
>
>
>            Servers that support asynchronous configuration operations
>
>            MUST provide a mechanism to notify the client when a request
>
>            has completed processing.  The notification MUST indicate
>
>            whether the intended config is now fully applied or if there
>
>            were any errors from applying the configuration change.
>
>
>
> I don’t see a need for long/short forms or timeouts here.  Are you
> suggesting a need to change how the requirements are worded?
>
>
>

I am just suggesting how I would design this feature.
I certainly don't want to read any more requirements drafts, so implement
whatever you want.

The short-form is really just the long-form with an empty list of unapplied
edits.



> Kent
>
>
>


Andy


>
>
> >   B) the server will send the short form (all-ok) ASAP or even return
> the short-form all-ok
>
> >        in the response and skip the notifications if possible
>
> >    C) if the timeout occurs, then the server sends the long-form
> notification, which lists
>
> >         all the intended config operations not yet applied.  (This is
> easier to do for YANG Patch
>
> >        where the edits are identified, than with <edit-config> that has
> an unordered blob of XML).
>
> >
>
> >
>
> > Parameters would be added to the edit request:
>
> >
>
> >    - want-notif:  (boolean: default false)
>
> >    - notif-timeout: how long the server should wait before sending the
> long-form notification
>
> >    - trace-id:  string provided by the client similar to persist-id that
> will identify this edit
>
> >       in the notifications
>
> >
>
> >
>
> > This approach does not deal with multi-client conflicts.
>
> > If client A does "create /foo" then the server ACKs that edit even if
> client B
>
> > has started a subsequent "delete /foo" edit before the first edit was
> ACKed.
>
> >
>
> > A separate RPC to retrieve the long-form notification for all pending
> edits would
>
> > also be needed to allow for a notification to be lost or a client to
> query the entire
>
> > list of unapplied edits.
>
> >
>
> > Andy
>
>
>
>
>
>
>