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

Igor Bryskin <i_bryskin@yahoo.com> Thu, 27 February 2020 14:30 UTC

Return-Path: <i_bryskin@yahoo.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 51DB53A0A09 for <netmod@ietfa.amsl.com>; Thu, 27 Feb 2020 06:30:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, SPF_HELO_NONE=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=yahoo.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 PV4x3a5TYgnz for <netmod@ietfa.amsl.com>; Thu, 27 Feb 2020 06:30:28 -0800 (PST)
Received: from sonic301-31.consmr.mail.ne1.yahoo.com (sonic301-31.consmr.mail.ne1.yahoo.com [66.163.184.200]) (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 2D6173A0A08 for <netmod@ietf.org>; Thu, 27 Feb 2020 06:30:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1582813827; bh=6KRkqxlp1vpxir0nEAALkLd5gKUKN0i8XOVo+PrHFH4=; h=Date:From:To:Cc:In-Reply-To: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5A9JXK2WIJ6sMpefaRDIDosTlInQ8fptFdwK.C9UfzmtJ1Qz9t2yJCC77ocsGt GoKqRGOC1wvfYMJcRrmUViX_vuvZR_PY4uC87GRxuPa0wpgS3U9ydKyPxtWKCppG4BF.I7XyLgk. QM2WHcmNQOIA5O6x9pAtBP3yZhNRozLx3ckwcGsMeSkeiHsb.3fXitYIh.mz3oeXamD.gk8NFA4l Ha60s0U3nmAXkHxAvCt72ZKSwYxhdjr7BnuPuK._TvxvdeDu1O8qiV_NJCFlPgh1MziKx37CO9x. 868FtoApSCsfwr8ULEnGVbI7HxUhqxbHcckI7p606mL7tKXcGscZL.2w_SCUxrHDbU6jsVl2_V7K ao8wswM0iED7KR4N5_j6l3hd1YnsVl28A5FqfiHLiv6WuoYMfAoFL.YD0k4Hm80mLJTfVwMowe5N iY3DIre7wJ9COdmAyavLvWmakEimXMoCm8imnp22BnyOFcVa6D8UvmziJt5wOOcjYVS679FQJNAl OxSzHU_O1EXF4rLpWr5bb2vpLEhVEm_bEPRMFQaTXBm61op4GsjeYgEPMBg6Q2.TqHR2hgXc.vFG YcZNfsmntkfwlkwF0vJZ2Xq1zmXhDGdmCh_DvUJHDOoiUj04x8TC.ffRdT_iZ.FHUIdH3Yi.Kv4r 1GZJXqqO9ckDETmEbDshZpMINmeMx0wOeAoHszlBKpw--
Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 27 Feb 2020 14:30:27 +0000
Date: Thu, 27 Feb 2020 14:30:25 +0000
From: Igor Bryskin <i_bryskin@yahoo.com>
To: Alexander Clemm <alex@futurewei.com>, Andy Bierman <andy@yumaworks.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <125136191.1383787.1582813825889@mail.yahoo.com>
In-Reply-To: <CABCOCHTJoxJ7RLUTQRdWf8CjfvmjrLUYHsidZEmKPeUOxeJGKw@mail.gmail.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>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_1383786_1590471192.1582813825886"
X-Mailer: WebService/1.1.15302 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/fEGd-QNgFh4QJ4dh69bW5jZDfGU>
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 14:30:32 -0000

 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:


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.;

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;

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.

What do you think?

Igor


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

On Tue, Feb 25, 2020 at 5:57 PM Alexander Clemm <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 automaticallybe usable in any ECA logic.  Working on a solution without agreement on even the mostbasic ECA architecture or problem scope is a recipe for failure.
Programming with YANG data models as the logic for conditions and actionshas never been proven to work.  Even the trivial examples are complexand real-world use-cases seem near impossible. (nobody has ever provided oneso we have to speculate). Achieving interoperability with a workable solutionwill 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> 
Sent: Tuesday, February 25, 2020 4:44 PM
To: Alexander Clemm <alex@futurewei.com>; Joel Jaeggli <joelja@bogus.com>; 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>;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>On Behalf Of Joel Jaeggli
Sent: Tuesday, February 18, 2020 8:44 AM
To: 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

 

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

 

Thanks

joel
_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod