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

"Liushucheng (Will)" <liushucheng@huawei.com> Fri, 23 October 2015 09:17 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 831771B2E65 for <supa@ietfa.amsl.com>; Fri, 23 Oct 2015 02:17:19 -0700 (PDT)
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 0Ua6HH3QGsLY for <supa@ietfa.amsl.com>; Fri, 23 Oct 2015 02:17:16 -0700 (PDT)
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 263901B338A for <supa@ietf.org>; Fri, 23 Oct 2015 02:17:15 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml406-hub.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CCX92673; Fri, 23 Oct 2015 09:17:13 +0000 (GMT)
Received: from SZXEMA411-HUB.china.huawei.com (10.82.72.70) by lhreml406-hub.china.huawei.com (10.201.5.243) with Microsoft SMTP Server (TLS) id 14.3.235.1; Fri, 23 Oct 2015 10:17:10 +0100
Received: from SZXEMA509-MBS.china.huawei.com ([169.254.2.22]) by szxema411-hub.china.huawei.com ([10.82.72.70]) with mapi id 14.03.0235.001; Fri, 23 Oct 2015 17:17:02 +0800
From: "Liushucheng (Will)" <liushucheng@huawei.com>
To: Benoit Claise <bclaise@cisco.com>, Tina TSOU <Tina.Tsou.Zouting@huawei.com>, "draft-chen-supa-eca-data-model@tools.ietf.org" <draft-chen-supa-eca-data-model@tools.ietf.org>
Thread-Topic: [Supa] ietf-supa-service-flow.yang in draft-chen-supa-eca-data-model-04.txt
Thread-Index: AQHRDIG1KaKofk99fUSJgifSJUyUCp52sj4AgAITFfA=
Date: Fri, 23 Oct 2015 09:17:01 +0000
Message-ID: <C9B5F12337F6F841B35C404CF0554ACB895C3A4F@SZXEMA509-MBS.china.huawei.com>
References: <5627A429.4050603@cisco.com> <C0E0A32284495243BDE0AC8A066631A818EC3089@szxeml557-mbs.china.huawei.com> <5628A6A8.9040109@cisco.com>
In-Reply-To: <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_C9B5F12337F6F841B35C404CF0554ACB895C3A4FSZXEMA509MBSchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <http://mailarchive.ietf.org/arch/msg/supa/Kv2hmLEP8pkVL07YAKeOXrZjFuQ>
Cc: "supa@ietf.org" <supa@ietf.org>
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 \(Shared Unified Policy Automation\) 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: Fri, 23 Oct 2015 09:17:19 -0000

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