Re: [Supa] ietf-supa-service-flow.yang in draft-chen-supa-eca-data-model-04.txt

"Liushucheng (Will)" <liushucheng@huawei.com> Wed, 09 December 2015 09:42 UTC

Return-Path: <liushucheng@huawei.com>
X-Original-To: supa@ietfa.amsl.com
Delivered-To: supa@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 07E681B2B7A for <supa@ietfa.amsl.com>; Wed, 9 Dec 2015 01:42:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: YES
X-Spam-Score: 6.147
X-Spam-Level: ******
X-Spam-Status: Yes, score=6.147 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FRT_PROFIT2=10.357, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no
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 aOkI1IXolHea for <supa@ietfa.amsl.com>; Wed, 9 Dec 2015 01:42:39 -0800 (PST)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C88D11B2B82 for <supa@ietf.org>; Wed, 9 Dec 2015 01:42:27 -0800 (PST)
Received: from 172.18.7.190 (EHLO lhreml405-hub.china.huawei.com) ([172.18.7.190]) by lhrrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CBJ33209; Wed, 09 Dec 2015 09:42:24 +0000 (GMT)
Received: from SZXEMA412-HUB.china.huawei.com (10.82.72.71) by lhreml405-hub.china.huawei.com (10.201.5.242) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 9 Dec 2015 09:42:23 +0000
Received: from SZXEMA509-MBS.china.huawei.com ([169.254.2.245]) by SZXEMA412-HUB.china.huawei.com ([10.82.72.71]) with mapi id 14.03.0235.001; Wed, 9 Dec 2015 17:42:19 +0800
From: "Liushucheng (Will)" <liushucheng@huawei.com>
To: "draft-chen-supa-eca-data-model@tools.ietf.org" <draft-chen-supa-eca-data-model@tools.ietf.org>, "supa@ietf.org" <supa@ietf.org>
Thread-Topic: [Supa] ietf-supa-service-flow.yang in draft-chen-supa-eca-data-model-04.txt
Thread-Index: AQHRDIG1KaKofk99fUSJgifSJUyUCp52sj4AgAITFfCASev/MA==
Date: Wed, 09 Dec 2015 09:42:19 +0000
Message-ID: <C9B5F12337F6F841B35C404CF0554ACB8961BDCB@SZXEMA509-MBS.china.huawei.com>
References: <5627A429.4050603@cisco.com> <C0E0A32284495243BDE0AC8A066631A818EC3089@szxeml557-mbs.china.huawei.com> <5628A6A8.9040109@cisco.com>
Accept-Language: en-US, zh-CN
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.66.78.84]
Content-Type: multipart/alternative; boundary="_000_C9B5F12337F6F841B35C404CF0554ACB8961BDCBSZXEMA509MBSchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.5667F781.0129, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.2.245, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: a805f9596eb0749fedcb6bccd3ee9ba0
Archived-At: <http://mailarchive.ietf.org/arch/msg/supa/GzSFwQi7nmeCGB0Xuvx8RS1HeaE>
Subject: Re: [Supa] ietf-supa-service-flow.yang in draft-chen-supa-eca-data-model-04.txt
X-BeenThere: supa@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This list is to discuss SUPA \(Simplified Use of Policy Abstractions\) related issues." <supa.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/supa>, <mailto:supa-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/supa/>
List-Post: <mailto:supa@ietf.org>
List-Help: <mailto:supa-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/supa>, <mailto:supa-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Dec 2015 09:42:43 -0000

As the list keeps silent for a while, I think the below comments is worth digging out as the latest version of ECA data model draft has not addressed some of the comments below yet.

Regards,
Will (Shucheng LIU)

From: Liushucheng (Will)
Sent: Friday, October 23, 2015 5:17 PM
To: 'Benoit Claise'; Tina TSOU; draft-chen-supa-eca-data-model@tools.ietf.org
Cc: supa@ietf.org
Subject: RE: [Supa] ietf-supa-service-flow.yang in draft-chen-supa-eca-data-model-04.txt

Hi all,

In addition to Benoit’s emails, below please find my review for this draft.

Section 1 and maybe other parts of the doc
Terms related to the architecture such as policy manager, policy agent, service management, etc, in SUPA context was defined in draft-zhou-supa-framework and part of the content of this draft was merged into draft-klyus-supa-proposition. The author may think about to refer them.

Section 2.1
Authors wrote      “<status> <flags> <name> <opts> <type>” , however, ‘type’ was not listed in the explanation next paragraph, while “[<keys>] for the keys of a particular list” is not mentioned at the beginning of this subsection.

Section 3.1
The leafs name in supa-polic-target, such as profileType, asDomainName, etc, should be amended to fit custom of YANG models like profile-type . etc…

The author may consider to add some xml examples to illustrate some of models.

NITS
s/rpcs/RPCs
s/An event or a set of events/ A set of events,   or s/A set of conditions/ A condition or a set of conditions, s/A set of actions/ A action or a set of actions
s/ supa-policy-target target/ supa-policy-target


In spite of these, I believe this draft is indeed a really good and solid start for the group to explore the method of defining policy rules according to the event-condition-action paradigm.

Regards,
Will (Shucheng LIU)

From: Supa [mailto:supa-bounces@ietf.org] On Behalf Of Benoit Claise
Sent: Thursday, October 22, 2015 5:05 PM
To: Tina TSOU; draft-chen-supa-eca-data-model@tools.ietf.org
Cc: supa@ietf.org
Subject: Re: [Supa] ietf-supa-service-flow.yang in draft-chen-supa-eca-data-model-04.txt

Hi Tina,

It works better
bclaise$ pyang --ietf eca-policy.yang
eca-policy.yang:2: warning: RFC 6087: 4.1: no module name prefix used, suggest ietf-eca-policy

This warning is new with pyang 1.6. You should get it from https://github.com/mbj4668/pyang

Regards, Benoit
Dear Benoit et al,

That’s weird, so I checked the history version, found out that the old version must have been accidentally used.

Therefore, I try to help and make the attachments, which should be fine to pass all the pyang --ietf check. Please have a look again.


Thank you,
Tina

From: Supa [mailto:supa-bounces@ietf.org] On Behalf Of Benoit Claise
Sent: Wednesday, October 21, 2015 10:42 PM
To: draft-chen-supa-eca-data-model@tools.ietf.org<mailto:draft-chen-supa-eca-data-model@tools.ietf.org>
Cc: supa@ietf.org<mailto:supa@ietf.org>
Subject: [Supa] ietf-supa-service-flow.yang in draft-chen-supa-eca-data-model-04.txt

Hi,

pyang --ietf produces:
ietf-supa-service-flow.yang:2: warning: RFC 6087: 4.8: namespace value should be "urn:ietf:params:xml:ns:yang:ietf-supa-service-flow"
ietf-supa-service-flow.yang:6: warning: imported module ietf-yang-types not used
ietf-supa-service-flow.yang:10: error: module "eca-policy-0910" not found in search path
ietf-supa-service-flow.yang:10: warning: imported module eca-policy-0910 not used
ietf-supa-service-flow.yang:25: error: RFC 6087: 4.7: statement "revision" must have a "reference" substatement
ietf-supa-service-flow.yang:29: error: bad value "/supa:supa-policy/supa:supa-poliy-
target/supa:instance" (should be schema-nodeid)
ietf-supa-service-flow.yang:33: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:34: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:35: error: keyword "config" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:36: error: keyword "default" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:40: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:41: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:42: error: keyword "config" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:43: error: keyword "default" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:47: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:48: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:49: error: keyword "config" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:50: error: keyword "default" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:54: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:55: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:56: error: keyword "config" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:60: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:61: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:62: error: keyword "config" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:68: error: bad value "/supa:supa-policy/supa:supa-policy-
statement/supa:condition-list" (should be schema-nodeid)
ietf-supa-service-flow.yang:72: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:73: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:77: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:78: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:84: error: bad value "/supa:supa-policy/supa:supa-policy-
statement/supa:action-list" (should be schema-nodeid)
ietf-supa-service-flow.yang:92: error: keyword "when" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:96: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:97: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:101: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:102: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:106: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:107: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:111: error: keyword "description" not in canonical order, expected "type", (See RFC 6020, Section 12)
ietf-supa-service-flow.yang:112: error: keyword "type" not in canonical order, (See RFC 6020, Section 12)

and pyang alone:
ietf-supa-service-flow.yang:6: warning: imported module ietf-yang-types not used
ietf-supa-service-flow.yang:10: error: module "eca-policy-0910" not found in search path
ietf-supa-service-flow.yang:10: warning: imported module eca-policy-0910 not used
ietf-supa-service-flow.yang:29: error: bad value "/supa:supa-policy/supa:supa-poliy-
target/supa:instance" (should be schema-nodeid)
ietf-supa-service-flow.yang:68: error: bad value "/supa:supa-policy/supa:supa-policy-
statement/supa:condition-list" (should be schema-nodeid)
ietf-supa-service-flow.yang:84: error: bad value "/supa:supa-policy/supa:supa-policy-
statement/supa:action-list" (should be schema-nodeid)

Regards, Benoit