Re: [netmod] Adoption poll for draft-wwx-netmod-event-yang

Alexander Clemm <alex@futurewei.com> Thu, 27 February 2020 22:41 UTC

Return-Path: <alex@futurewei.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 063D83A0E12 for <netmod@ietfa.amsl.com>; Thu, 27 Feb 2020 14:41:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=futurewei.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 0UVgA3N9z2lv for <netmod@ietfa.amsl.com>; Thu, 27 Feb 2020 14:41:00 -0800 (PST)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-eopbgr760104.outbound.protection.outlook.com [40.107.76.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 20C803A0DF8 for <netmod@ietf.org>; Thu, 27 Feb 2020 14:40:59 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GJU3JdHsg8zIItUVJ+aE33ApZWmntlTAmUB7ALJorjP1elPHJRfFSD0v5u93YtyKZBAQV5kkP39GWFtsKE0A5Oc6iFmpir2Sk5B2LI4Cqc4uW+2zVHfRiEzQlrIiRMxQGlwKzAfKp5Y06OGx8BPUAaMrpxdCXxCCLYbCdV/i9Ulal0XaxU//8x+TbjwNoFDONQv+34m6uYzV2q2pmFaqF+lznmsSrVcIOF2wvKK7EqOnRmaQbpqb7AZQLLpCsZ7jUkR2XPLvlaxXNBOW02gpQOruL+6oXawkrztQWC91JLE9DDM4yTQYQMvoAG3FIwCJJzq55P+4kIyfhs9BKtKYGA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j3ykiM31av28AyRkDm1NiQBspMxDi9ghewwYpk/Em1w=; b=ctFKQbdvVPw7nt9cnW4+sYN8cTz27gev5I1njDSEVUskKYoAwU6Yz3rDFD3+nCsp/9YKPSa63yZojZTk++XiskgIQIPJ5Miqb9Vp1pYHjX/kR5hmtQVmvKaOaMTUIcr6zLnfzMJwMVz4tWa1FPgaqDo840yU9MBqp/g4frXCQBtbq2HUikJdgKgjt2BfTWErwnVgobhnhlUrO6Gkri4OiKdwctnws7qern+XjuQi39fTrYHVQB4HNpVRdRsGz7h0ptRfEcKiVEDJA5t6OVrGQnd1lMyze+4IN72d1/jRDbI4AGPPvgEJ38Z6lYuLUletL0xgasd5jkfUTZCaUZPL+g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=futurewei.com; dmarc=pass action=none header.from=futurewei.com; dkim=pass header.d=futurewei.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Futurewei.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j3ykiM31av28AyRkDm1NiQBspMxDi9ghewwYpk/Em1w=; b=Qrrr/f0kuP4PCMWqoATp6a28pB95heok3kqjLbkUyRYgfN6BU/QUHDz79FvO8NQqn/iX/myk98fdRv3HA1vJCWgMjeWHe80BD9OMOYWYUn9Yvrxwu/Sgf7KOBdxer9f/m+uePFcM5gOLBTC2gNEFnZIylJN25EjSM44W8qmgEU8=
Received: from BY5PR13MB3300.namprd13.prod.outlook.com (2603:10b6:a03:1ae::21) by BY5PR13MB3873.namprd13.prod.outlook.com (2603:10b6:a03:229::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.14; Thu, 27 Feb 2020 22:40:57 +0000
Received: from BY5PR13MB3300.namprd13.prod.outlook.com ([fe80::c13e:12f9:5ebb:3385]) by BY5PR13MB3300.namprd13.prod.outlook.com ([fe80::c13e:12f9:5ebb:3385%3]) with mapi id 15.20.2772.012; Thu, 27 Feb 2020 22:40:57 +0000
From: Alexander Clemm <alex@futurewei.com>
To: Igor Bryskin <i_bryskin@yahoo.com>, Andy Bierman <andy@yumaworks.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Adoption poll for draft-wwx-netmod-event-yang
Thread-Index: AQHV5nqyUkhN2CSKkkal6VOj9CUTx6gsVb8wgABY4ICAAA9/EIABFOgAgAFU6oCAAIaWsA==
Date: Thu, 27 Feb 2020 22:40:57 +0000
Message-ID: <BY5PR13MB33005938A703B9347C65D6D2DBEB0@BY5PR13MB3300.namprd13.prod.outlook.com>
References: <e655193d-79f5-f339-7043-65e2044c406e@bogus.com> <BY5PR13MB3300D2B430DF7958503A3D05DBED0@BY5PR13MB3300.namprd13.prod.outlook.com> <BBA82579FD347748BEADC4C445EA0F21BF24EF23@NKGEML515-MBX.china.huawei.com> <BY5PR13MB3300D54286BD9F6EE8A57A4EDBEA0@BY5PR13MB3300.namprd13.prod.outlook.com> <CABCOCHTJoxJ7RLUTQRdWf8CjfvmjrLUYHsidZEmKPeUOxeJGKw@mail.gmail.com> <125136191.1383787.1582813825889@mail.yahoo.com>
In-Reply-To: <125136191.1383787.1582813825889@mail.yahoo.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=alex@futurewei.com;
x-originating-ip: [12.111.81.95]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 242bb769-b9d3-426f-bb85-08d7bbd61cd2
x-ms-traffictypediagnostic: BY5PR13MB3873:
x-microsoft-antispam-prvs: <BY5PR13MB3873CCCF5D48FB5E3D5DB409DBEB0@BY5PR13MB3873.namprd13.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 03264AEA72
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(39850400004)(346002)(366004)(396003)(136003)(376002)(189003)(199004)(316002)(110136005)(9326002)(71200400001)(4326008)(55016002)(9686003)(8936002)(66446008)(66556008)(81156014)(64756008)(76116006)(66476007)(478600001)(966005)(7696005)(86362001)(186003)(33656002)(5660300002)(2906002)(26005)(52536014)(6506007)(66946007)(8676002)(53546011)(81166006)(69594002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY5PR13MB3873; H:BY5PR13MB3300.namprd13.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: futurewei.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: N9uIgfQWHC0V8JgLSpxhYpNvaXB6ngxo+ZOeft5rRYtamfAD1X784IoLHzq9JSoOc8VzLdpncYMsVyEA1ruFpLEHws9oGd29YxAsqUPh21Ns5oIv3/pJaSxZKaH6COHOAq+bovESTo/BgO5eQP0tXgjKykAONAU7gCGtrzyGhlmKEI9TqPuZSr6CP/ESCfWm7ameed78Y+7E5jBB0l+O1vpKpqTVtOkUo5/u4bEZ7W/zhoaxIxPGnAzLB/JMfSKCIvD6C1Lo2WdMZ9fdSE5+r1NCbW0A2ikwjQQkzaCfCRmQb1hCbajN99Xn0Z7Ct5D8MhZnamcAAhKIcRR4ysHJXyr0uB5faqJpnt2hrLVkW10lD2l4VcxA3WGvrqPO9lJgzcPXFnHocK2UpvzAg6kPpk1LZM5OmVmqpgaLpSY03S52pbBy6xwQ6nu+CqOU/RHDJftu2TKc0QO9rc7FLXj4l2CAtWIk6/ZN5J6zp381D8bpaKNyQJ6H+PhHnoXEiqdVkAUYOhg1Uj6HciXsmvvAG1p+nvx2J8/m1cctlXUBKXvh4v79dHypu/j7ZOW0GlYg
x-ms-exchange-antispam-messagedata: JbktDVu+iT6d3BLGGXWQzeBh2tdceAx8lTpudKhcCDANGh7z1Uo30EsyaWlKQ7MAulQxgyGxNWxns0JDKG/SVzsVmZ/vyapkRCBP5jj5O5+3conuo7MuaA92dLvcuXEUMtisUR3FHTSYcdvD6svSlQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_BY5PR13MB33005938A703B9347C65D6D2DBEB0BY5PR13MB3300namp_"
MIME-Version: 1.0
X-OriginatorOrg: Futurewei.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 242bb769-b9d3-426f-bb85-08d7bbd61cd2
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2020 22:40:57.5473 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 0fee8ff2-a3b2-4018-9c75-3a1d5591fedc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: jesK0qctowX21OEmtNKUD582+IxIpUCQ/KXKKK+toH7CWizRXIvuK6mvUjXqAnoW5/rx7XGghB5/ou+6bRXxVQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR13MB3873
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/2kBDvZ11Mou-28jEKsxPWzsbcNo>
Subject: Re: [netmod] Adoption poll for draft-wwx-netmod-event-yang
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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, 27 Feb 2020 22:41:03 -0000

Hi Igor,
quick responses inline.  I think we are by and large on the same page.
--- Alex

From: Igor Bryskin <i_bryskin@yahoo.com>
Sent: Thursday, February 27, 2020 6:30 AM
To: Alexander Clemm <alex@futurewei.com>; Andy Bierman <andy@yumaworks.com>
Cc: netmod@ietf.org
Subject: Re: [netmod] Adoption poll for draft-wwx-netmod-event-yang

Hi Andy, Jurgen, Alex and All,

I believe that YANG could be a useful participant in a successful ECA framework if the following is kept in mind:


<ALEX> I agree there is a role, even that a YANG-based ECA framework can be defined.  To be useful, this should allow leveraging and calling out other components, as you describe (e.g. invoke some scripts as actions, etc), not just invoking a Netconf/Restconf operation.
</ALEX>

1. It is not feasible to realize an ECA framework relying solely on YANG.  It is reasonable to expect ECA capable servers to support to a sufficient degree Xpath Expressions language and some sort of general purpose scripting  environment , such as Python, JunoScript, TCL/TKL, etc.;

<ALEX> yes, agree.  And the ECA can provide the interoperable way of tying these things together.  (This means some consideration should also be given to corner cases such as script not found, etc.)
</ALEX>
2. ECA YANG model should define (and/or use definitions produced by other YANG models for) certain ECA components, such as Events, Policy Variables (PVs) and Actions (e.g. network re-configurations, client notifications, invoking of RPCs, etc.), but everything to do with Conditions and logical and mathematical expressions (which should be expected to be potentially very complex), should be left to XPath (i.e. configured as XPath expression strings). Although it is possible to define elementary micro conditions, it would be impractical (too tedious) for the clients to build conditions hierarchically (bottom up) and too cumbersome for the servers to process such constructs;
3.Likewise, it would be too demanding to expect servers implementing interpreters for specific purpose of interpretation of an ECA directly as it configured in YANG. Rather , it would be prudent to expect a server, upon receiving an ECA configuration, to generate out of it a micro-script in a locally supported scripting language and arrange said micro-script execution at the moment of the Event (or timer) firing;
<ALEX> Sure.  (I am not clear if we should make assumptions about what an implementation would or would not support, but the framework needs to allow clients to be clear about the supported capabilities.)
</ALEX>
4. In short, the objective of the ECA YANG configuration is to provide a universal ECA representation that could be converted into a micro-script of the server's choice.

<ALEX> Fine with all that.  My point earlier was to be clear about the problem in scope, differentiating between the ECA framework itself from the way that events or actions can be defined, which could be used independent of the ECA framework.
--- Alex
</ALEX

What do you think?

Igor



On Wednesday, February 26, 2020, 1:11:00 PM EST, Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com>> wrote:


Hi,


On Tue, Feb 25, 2020 at 5:57 PM Alexander Clemm <alex@futurewei.com<mailto:alex@futurewei.com>> wrote:

In my view, an ECA model allows to define rules for events – conditions – actions, i.e. what actions to perform when an event occurs and a condition met.  A smart filter filters an input stream, letting some objects pass but not others.  They are not the same.



There is a connection in that you could define the passing of an object by a smart filter as an event.  So, it is conceivable to include an ability to define events in this draft. If this is the intent it should be stated so clearly.  The question then becomes if you would want those be used also independently of the ECA model – there may be benefit in defining a new event without tying it to a rule (i.e. a condition and action) but simply emitting it..  (Same thing for the timer notification, which might have uses beyond ECA.) In the draft these things are all mashed together, but separating the ability to define an event from the ability to specify an ECA rule (which refers to / is triggered by an event) can benefit reusability.



Anyway, as mentioned I think this work is relevant and I would like to see it go forward; IMHO some reframing and perhaps splitting of the draft should be considered whether that occurs before WG adoption or afterwards.



I do not agree that refactoring this draft solves any adoption issues.
YANG-based management already has events (specified with notification-stmt).
The ECA data model should not duplicate other functionality such as alarms.
Any event that can be received on an event stream (RFC 8639) should automatically
be usable in any ECA logic.  Working on a solution without agreement on even the most
basic ECA architecture or problem scope is a recipe for failure.

Programming with YANG data models as the logic for conditions and actions
has never been proven to work.  Even the trivial examples are complex
and real-world use-cases seem near impossible. (nobody has ever provided one
so we have to speculate). Achieving interoperability with a workable solution
will not be easy. Other solutions have got "Hello world" to work, declared victory,
and then went away forever.  Why will this time be different?


Andy






--- Alex



From: Tianran Zhou <zhoutianran@huawei.com<mailto:zhoutianran@huawei.com>>
Sent: Tuesday, February 25, 2020 4:44 PM
To: Alexander Clemm <alex@futurewei.com<mailto:alex@futurewei.com>>; Joel Jaeggli <joelja@bogus.com<mailto:joelja@bogus.com>>; netmod@ietf.org<mailto:netmod@ietf.org>
Subject: RE: [netmod] Adoption poll for draft-wwx-netmod-event-yang



Hi the authors,



>“Another one to allow the definition of custom events/notifications, or smart filters for push updates.  (We should bring back the earlier draft.)”

As we worked on the smart filter before. We want to use the ECA model.

It seems this model enabled the generic programmability. Can we just use it to program any filter or what potentially need to augment/customize for a specific model?

Thanks,

Tianran



From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Alexander Clemm
Sent: Wednesday, February 26, 2020 4:01 AM
To: Joel Jaeggli <joelja@bogus.com<mailto:joelja@bogus.com>>; netmod@ietf.org<mailto:netmod@ietf.org>
Subject: Re: [netmod] Adoption poll for draft-wwx-netmod-event-yang



Hi,



I support this draft and would like to see netmod work on this, but I do think some aspects need more maturing and parts of this probably should be rescoped.  Should the draft be adopted now, or should it be improved first and adopted later?  Not sure.  I would like to see the work continue, so in that sense I would clearly like to see the work adopted; at the same  time there are a number of issues that IMHO really need to be addressed.



I share some of the concerns raised by Juergen and Andy.  Specifically, I think the precise problem needs to be defined more clearly.  In the discussion it was mentioned RMON – would it be that, or perhaps a better analogy Event MIB?  Section 3 mentions that this is to specify trigger conditions for when to send push updates.  That is perhaps consistent with an Event MIB, but a slightly different problem from ECAs.  Section 4.2 then proceeds to allow for the definition of “events” – but really only defining a “timer event”, with the ECA model omitting tie-in e.g. with notifications.  Including a threshold mechanism here is a bit distracting and should perhaps be taken out – while the crossing of a threshold might constitute an event, I don’t think this should be tied inside an ECA but be something that stands on its own.  (The prior draft on Smart Filters for Push Updates addressed this – it has layed dormant for a while and in this sense I can’t object for this work to be picked someplace else, but logically really it does not belong here but should be separate.)  The actions, finally, describe not simply management operations.  I understand the intent is to have an escape mechanism allowing to “call out” other functions / scripts deployed at a device, but this intent needs to be called out more clearly.



So, in summary, I think the WG should consider rescoping this draft a bit – maybe divided into separate drafts, each addressing a separate concern, which will provide focus and make the problem being solved clearer:  One to define an ECA framework.  In this, clarify the invocation of actions, and allow for tie-in of notifications.  This would be this draft.  Another one to allow the definition of custom events/notifications, or smart filters for push updates.  (We should bring back the earlier draft.)  A third one to perhaps allow for the definition of “custom RPCs” that allow to invoke custom scripts/functions via Netconf/Restconf operations, then tie that , which are then invoked using the regular RPC.  (This would be a new draft)



--- Alex



From: netmod <netmod-bounces@ietf.org<mailto:netmod-bounces@ietf.org>> On Behalf Of Joel Jaeggli
Sent: Tuesday, February 18, 2020 8:44 AM
To: netmod@ietf..org<mailto:netmod@ietf.org>
Subject: [netmod] Adoption poll for draft-wwx-netmod-event-yang



This email begins a 2 week working group adoption poll for:

https://tools.ietf.org/html/draft-wwx-netmod-event-yang-06<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Fdraft-wwx-netmod-event-yang-06&data=02%7C01%7Calex%40futurewei.com%7C3eb2dc9fb26246712ba908d7bb9197ce%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637184106329308347&sdata=dxrHc59JA8haDTuDoevAO16Eul3FwIpVHFc3BFlzIpk%3D&reserved=0>



Please voice your support or objections before the poll completes on March 3rd.



Thanks

joel
_______________________________________________
netmod mailing list
netmod@ietf.org<mailto:netmod@ietf.org>
https://www.ietf.org/mailman/listinfo/netmod<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fnetmod&data=02%7C01%7Calex%40futurewei.com%7C3eb2dc9fb26246712ba908d7bb9197ce%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637184106329308347&sdata=x0QfkZnAwek87KXd96tgXLhR8xaseYob5sTPf468hMw%3D&reserved=0>
_______________________________________________
netmod mailing list
netmod@ietf.org<mailto:netmod@ietf.org>
https://www.ietf.org/mailman/listinfo/netmod<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fnetmod&data=02%7C01%7Calex%40futurewei.com%7C3eb2dc9fb26246712ba908d7bb9197ce%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637184106329318342&sdata=oSR8CyueB%2BgZB71ixaUbFkjb2WHkUtGomyBwVwMkm2E%3D&reserved=0>