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

Kent Watsen <kwatsen@juniper.net> Wed, 13 July 2016 22:17 UTC

Return-Path: <kwatsen@juniper.net>
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 D97EA12D7E0 for <netmod@ietfa.amsl.com>; Wed, 13 Jul 2016 15:17:31 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=junipernetworks.onmicrosoft.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 nNREnhQG2oVg for <netmod@ietfa.amsl.com>; Wed, 13 Jul 2016 15:17:29 -0700 (PDT)
Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0138.outbound.protection.outlook.com [104.47.41.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A735712D91F for <netmod@ietf.org>; Wed, 13 Jul 2016 15:17:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=junipernetworks.onmicrosoft.com; s=selector1-juniper-net; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3q1ZxOtnUl4i1g7kbFw5NMkAysIBbc8Eb1SfE2narls=; b=kVWo6GYYeZqaeity3jrUyZQ6fM6i39V+8SHVJu0Zs7v5ouGKcMcsk5323X+ZaVDE0KpLIne+jjhacEGgqwjIFracfezInkM7bJa/2tTB2cGZRCWxpWvQlGQGF02vpoxI8znidIepLINrw40xyaoeFv8eYGTKtXk2rcE3tH1N7+4=
Received: from DM2PR0501MB1455.namprd05.prod.outlook.com (10.161.224.152) by DM2PR0501MB1453.namprd05.prod.outlook.com (10.161.224.150) with Microsoft SMTP Server (TLS) id 15.1.539.6; Wed, 13 Jul 2016 22:17:26 +0000
Received: from DM2PR0501MB1455.namprd05.prod.outlook.com ([10.161.224.152]) by DM2PR0501MB1455.namprd05.prod.outlook.com ([10.161.224.152]) with mapi id 15.01.0539.014; Wed, 13 Jul 2016 22:17:26 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Andy Bierman <andy@yumaworks.com>, Robert Wilton <rwilton@cisco.com>
Thread-Topic: [netmod] OpsState Direction Impact on Recommended IETF YANG Model Structure
Thread-Index: AQHR3FNlQ72i11gu+0i3s+X/hzaHTqAU+ToAgAALkoCAAAGnAIAABNSAgAABWoCAAASjgIAADpGAgAAIs4CAAAJUgIAA8peAgACeZID///EdAA==
Date: Wed, 13 Jul 2016 22:17:25 +0000
Message-ID: <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>
In-Reply-To: <CABCOCHS+8LXFQeZAY-TiZ82n2guCyA4j3zj_beuuJ9ztkHHFog@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.17.0.160611
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [66.129.241.11]
x-ms-office365-filtering-correlation-id: ed4165d6-8c96-45ef-0806-08d3ab6b788d
x-microsoft-exchange-diagnostics: 1; DM2PR0501MB1453; 6:+SAxwBgZ0Weu9G0XLxKRRvW+kKoIfORehQezyXOT8XAcrVpO2nuJAwoybM9Q1aiistNNoZWmHf13rXYGupCrHGpRQSq00MLfK7L3NPDdGhpOlL30B0zBHRrgza8NKBPcT1haD/7mk58goHYtrBpXMog/TtOxfie4o4ESYePXBZAmd6hYYtMatwNBK+Ln/3UzSJR97ZohObyvOML2rC7usKhta+3bRd2XprYQQ2iSTQE64k6S/0rdbJic4UODAT609WAz/LSuqLiH4zqoO2dOc6komFDoodG+/ruWP1BcwyGQ07g6r31o/MlU0983yJKsIjcV/LDyfC9OAwZyNa7ZCQ==; 5:0+wXfgFP2Zfm+6l0uKzgjuRkOWhv/P8drM6+UVudD4asCUIu5YYVDxlxsSIDF/erQTmeOOA7cWEju9tkhPJR+UTNkRD3XoDh4lq+kEgMxW8YMx2GHhcBEB0lNbZbnsTmNEw/dGfyQ5HaevaqsdijtA==; 24:4wvQm6cqIj1QhKRgyPVgAPBtkla/Vl/LzvLtutgJA2g23gN+mOCmZzWE2CDskji9Qg1oG2AoYKUk/MkfK6MVbnrPLIKNfSYaQPC2IwC7S2c=; 7:n9Vaq9CeC45reMVgBChUvSaVCxq1uc5cFXy84hce99LCzlmI4Y47oVRbeTJcuoYgVcBSCm5xBStxR2EGzKJe05pfh159HfDyICbSqIJle8gLhwH5AmMzkzL6KICVi7QSeR7z+oHNrwu+t+Wm3xBObf5MNgNSP9yBNlfP3p1nb6sA3+E9Fy0CJ2UfNCgTRD/Mdusw9flpiySjWMDdE8AeHQQdstDiSUAMT3sg6PhsmMccYaYwwTrYLQILgbj7s9WH
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0501MB1453;
x-microsoft-antispam-prvs: <DM2PR0501MB145381ECEAC2DCED3949EEACA5310@DM2PR0501MB1453.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DM2PR0501MB1453; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0501MB1453;
x-forefront-prvs: 000227DA0C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(199003)(189002)(81156014)(122556002)(106116001)(105586002)(99286002)(106356001)(81166006)(10400500002)(77096005)(5002640100001)(3846002)(102836003)(586003)(6116002)(19625215002)(86362001)(83506001)(2900100001)(8676002)(189998001)(4326007)(93886004)(92566002)(68736007)(83716003)(36756003)(54356999)(19580395003)(66066001)(2950100001)(76176999)(16236675004)(101416001)(19300405004)(50986999)(33656002)(2906002)(87936001)(8936002)(7736002)(15975445007)(7846002)(82746002)(5001770100001)(3660700001)(11100500001)(4001350100001)(97736004)(3280700002)(104396002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0501MB1453; H:DM2PR0501MB1455.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_688600518A8A44378845C8BC0A02F0B6junipernet_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2016 22:17:25.9449 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0501MB1453
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/GZ86v3ENAiL6TI525HV11JpJj_8>
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:17:32 -0000


> 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?

Kent


>   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