RE: Yangdoctors last call review of draft-ietf-teas-yang-te-topo-08

Xufeng Liu <Xufeng_Liu@jabil.com> Mon, 12 June 2017 21:28 UTC

Return-Path: <Xufeng_Liu@jabil.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3AB35128B51; Mon, 12 Jun 2017 14:28:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.702
X-Spam-Level:
X-Spam-Status: No, score=-4.702 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, 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=jabil.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 1CoZ81KPCPf7; Mon, 12 Jun 2017 14:28:07 -0700 (PDT)
Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0131.outbound.protection.outlook.com [104.47.34.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C5702128990; Mon, 12 Jun 2017 14:28:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jabil.onmicrosoft.com; s=selector1-jabil-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qIm0XoFtiZvMR95Bc16QPGl9th6ReOG2ELOyXEm60Ys=; b=m8CVmB3cROjre9SyLv0TDIOsE3OPXCtshJWA+zDq7+SNQ++358Nu/OBYw6TWMFmQ+tnUg2aQlnffNutu+rABDWBSvqTng2tRp1B16fPVUGWfQWFCOloAVH9r/LUq5HYZfnchnlryVOyyFb5Nvcffsl7ki9RASM5aaGW33iurz3Q=
Received: from BN3PR0201MB0867.namprd02.prod.outlook.com (10.160.154.13) by BN3PR0201MB0868.namprd02.prod.outlook.com (10.160.154.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Mon, 12 Jun 2017 21:28:01 +0000
Received: from BN3PR0201MB0867.namprd02.prod.outlook.com ([10.160.154.13]) by BN3PR0201MB0867.namprd02.prod.outlook.com ([10.160.154.13]) with mapi id 15.01.1157.017; Mon, 12 Jun 2017 21:28:01 +0000
From: Xufeng Liu <Xufeng_Liu@jabil.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
CC: "ietf@ietf.org" <ietf@ietf.org>, "teas@ietf.org" <teas@ietf.org>, "draft-ietf-teas-yang-te-topo.all@ietf.org" <draft-ietf-teas-yang-te-topo.all@ietf.org>
Subject: RE: Yangdoctors last call review of draft-ietf-teas-yang-te-topo-08
Thread-Topic: Yangdoctors last call review of draft-ietf-teas-yang-te-topo-08
Thread-Index: AQHS1KSedaTR9X/fGEeQz0ke1nZ/sKIh1Ejw
Date: Mon, 12 Jun 2017 21:28:01 +0000
Message-ID: <BN3PR0201MB08670E55FFB5470F338E998DF1CD0@BN3PR0201MB0867.namprd02.prod.outlook.com>
References: <149564066257.28529.12761629961042171907@ietfa.amsl.com>
In-Reply-To: <149564066257.28529.12761629961042171907@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNceGxpdVxhcHBkYXRhXHJvYW1pbmdcMDlkODQ5YjYtMzJkMy00YTQwLTg1ZWUtNmI4NGJhMjllMzViXG1zZ3NcbXNnLTAwOWM3YWRkLTRmYjYtMTFlNy05YzE0LTE4NWUwZmUzYzQ1Y1xhbWUtdGVzdFwwMDljN2FkZS00ZmI2LTExZTctOWMxNC0xODVlMGZlM2M0NWNib2R5LnR4dCIgc3o9IjEzNzAzIiB0PSIxMzE0MTc3NjQ3ODg3OTk0MzAiIGg9ImhheE1tTUo2OTZuaUdjai9PN1c2eGNKYXN1UT0iIGlkPSIiIGJsPSIwIiBibz0iMSIvPjwvbWV0YT4=
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=jabil.com;
x-originating-ip: [98.191.72.170]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BN3PR0201MB0868; 7:hIxx/39NgnVDq6LMrqFpHPvYyDpnUmYUfWNLqi4jIWWTjGeGZbj8Ehe2PZ7TQjhW/c0SY+afRItZI5NEoi0fWNhGBue+hjSQsbxYLkEJti9+cz4/zC7zqfxwFjJQ9dryXv1oqfQ1ZWzYDWR1OB7CJrKvKlEMiKTXVx896zAB1+j1MhlgbvPVqPhszwrWEmUwPBSgiODhRGng+RFbRUC6C4/CAp+jAkoO5ZG/nr3EGJrla/cmljtGKA2m5mG/k1uW33MdReyBjwzzC3spQCpFWxewVQ4LbeptZDoZ+hnvEB4+EN6DMeLwhyHifwucZWMyZG/BB+wTX4Fqg50BpiYMgA==
x-ms-traffictypediagnostic: BN3PR0201MB0868:
x-ms-office365-filtering-correlation-id: 0d486f36-093c-4a0b-5991-08d4b1d9e74f
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:BN3PR0201MB0868;
x-microsoft-antispam-prvs: <BN3PR0201MB0868071B3E8C1F6D4097E2D7F1CD0@BN3PR0201MB0868.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123558100)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0201MB0868; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0201MB0868;
x-forefront-prvs: 03361FCC43
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(979002)(6009001)(39450400003)(39840400002)(39860400002)(39850400002)(39400400002)(39410400002)(13464003)(377454003)(7736002)(2950100002)(38730400002)(53546009)(6246003)(2501003)(305945005)(77096006)(7696004)(2900100001)(33656002)(74316002)(66066001)(4326008)(14454004)(25786009)(122556002)(53936002)(81166006)(8676002)(72206003)(8936002)(9686003)(55016002)(3846002)(54906002)(6436002)(478600001)(229853002)(6306002)(189998001)(80792005)(99286003)(86362001)(6506006)(3280700002)(3660700001)(2906002)(230783001)(39060400002)(6116002)(102836003)(50986999)(5660300001)(76176999)(54356999)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0201MB0868; H:BN3PR0201MB0867.namprd02.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: jabil.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2017 21:28:01.1589 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bc876b21-f134-4c12-a265-8ed26b7f0f3b
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0201MB0868
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/hRiL3BeNwxlzvARXUJsTjilmHlk>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Jun 2017 21:28:11 -0000

Hi Mahesh,

Thank you much for the review. We have submitted an updated draft (https://tools.ietf.org/html/draft-ietf-teas-yang-te-topo-09) to address these issues. More detailed explanations are put below inline. 

If the responses and updates are satisfactory, we are ready for the last call.

Best regards,
- Xufeng

> -----Original Message-----
> From: Mahesh Jethanandani [mailto:mjethanandani@gmail.com]
> Sent: Wednesday, May 24, 2017 11:44 AM
> To: yang-doctors@ietf.org
> Cc: ietf@ietf.org; teas@ietf.org; draft-ietf-teas-yang-te-topo.all@ietf.org
> Subject: Yangdoctors last call review of draft-ietf-teas-yang-te-topo-08
> 
> Reviewer: Mahesh Jethanandani
> Review result: Ready with Issues
> 
> Document reviewed: draft-ietf-teas-yang-te-topo-08
> 
> Status: Ready with Issues
> 
> I am not an expert in Traffic Engineering. This review is looking at the draft from
> a YANG perspective. With that said, I have marked it as “Ready with Issues”
> because of some of the points discussed below.
> 
> Summary:
> 
> This document defines a YANG data model for representing, retrieving and
> manipulating TE Topologies. The model serves as a base model that other
> technology specific TE Topology models can augment.
> 
> Comments:
> 
> Almost all the containers in the model are presence containers. Is there a reason
> why they have to be presence containers? Note, that presence containers are
> containers whose existence itself represents configuration data. What particular
> configuration data is each container representing in itself?
[Xufeng] Containers that use “presence” are:
	- Container “underlay”
	  o  We have changed 13 occurrences of such containers to be not presence container. 
	- Container “te” under augmentation
	  o  To indicate that “TE” is enabled (configuration data)
	  o  Also used to do augmentation. The “presence” statement can prevent the mandatory child from affecting augmented base model.
	- /nw:networks/nw:network/nw:network-types/te-topology!
	  o  A mechanism required by I2RS topology model to specify the topology type.

> 
> It is difficult to co-relate the diagram with the model itself because of different
> terms being used to define different parts of the model.
> There is “TE Topology Model” and then there is “Generic TE Topology Model”.
> Are these one and the same models? If so, a common term for both of them
> would be helpful.
[Xufeng] Yes. These two terms are the same. Figure 12, Figure 13, and relevant descriptions have been updated to make the document consistent.

> 
> There is extensive use of groupings in the document. However, not all instances
> of groupings are used multiple number of times. Where they are not being
> repeated, it would be better to move the grouping directly where the uses
> statement resides. Case in point the grouping connectivity-label-restriction-list.
[Xufeng] We have removed the following groupings
    te-link-augment
    te-node-augment
    te-termination-point-augment
    te-topologies-augment
    te-topology-augment
    te-link-state-underlay-attributes
    te-node-state-derived-notification
    te-topology-type

The remaining groupings have been kept so that we can:
	- Share the groupings in this model
	- Prepare to be shared by a model augmenting this model
	- Prevent a grouping or configuration section from being too long
	- Improve readability

> 
> The split between config and state containers does not seem to follow any
> particular pattern. 
[Xufeng] The pattern is clear:
For each manageable entity (object), there is a config container and state container. The configurable properties go into the config container and state properties go into the state container. Such objects are identified by a list item or a presence container so that the “create”, “delete”, and “modify” operations can be performed on them. The non-presence containers do not represent configuration data so they do not introduce such objects.

> It is neither a top level split, as is the case with existing IETF
> models, 
[Xufeng] We could not do top level split because the base I2RS network topology model (https://tools.ietf.org/html/draft-ietf-i2rs-yang-network-topo-12) that we augment does not have the top-level split (for its own reasons).

> nor do they follow the OpenConfig style of splitting config and state
> under each relevant leaf, 
[Xufeng] The pattern is consistent with this style in principle, with some adjustments to fit to our multiple levels of hierarchy.

> nor do they follow the new guidelines as suggested by
> the new datastore model draft (https://tools.ietf.org/html/draft-dsdt-nmda-
> guidelines-01.html).
> Since there recommendation for all new models is to follow the new datastore
> guidelines, would suggest that the state containers be removed and any non-
> duplicate leafs within state be moved under a single container. I am told that the
> change in ietf-te-topology from the current draft to NMDA style is about 175
> lines and for te-types it is 24 line diff (thanks Robert). As such, the change is not
> major and can be done easily. See the diffs at the end of this review.
[Xufeng] The changes are simple, but the implications are not:
	o  Need to re-open the discussions for the I2RS network topology model (https://tools.ietf.org/html/draft-ietf-i2rs-yang-network-topo-12), which currently does not have the state branch, and is the base model that this model augments.
	o  Need to re-discuss the issues of cross referencing between config branch and state branch (which was brought up by I2RS model and has no good solution currently).
	o  Need to modify existing and on-going implementations with no functional benefits.
	o  Will delay publishing both the I2RS base network topology model and this document.

This proposed model currently has multiple on-going implementations. Implementers wish for advancing this document without unnecessary delays, and before the final NETCONF/RESTCON protocol support which is expected to be available in a year. 

The authors and contributes have discussed the adoption of the NMDA style, and currently prefer the following strategy:
	o  Publish the document with the current model style without structure changes, allowing the on-going implementations to continue, supporting necessary operational states before the NMDA protocol specification is updated and supporting implementations are available. 
	o  Follow this up ASAP with an NMDA-compatible model draft (WG could adopt this right away). This was suggested by Kent, and is considered to fit our situation the best, allowing the implementations to migrate to the long term approach without interruption.

> 
> A pyang compilation of the model with —ietf and —lint option was clean.
> 
> A idnits run of the draft reveals some issues with spacing and references, but
> they are parts of the diagram, which confuses idnits.
> 
> te-types.diff
> —————
> 507,509c507,509
> <   grouping explicit-route-hop_config {
> <     description
> <       "The explicit route subobject grouping";
> ---
> >   grouping explicit-route-hop {
> >     description "Explicit route hop grouping";
> >
> 595,609d594
> <     }
> <   }
> <
> <   grouping explicit-route-hop {
> <     description "Explicit route hop grouping";
> <     container config {
> <       description
> <         "Configuration parameters for the explicit route hop";
> <       uses explicit-route-hop_config;
> <     }
> <     container state {
> <       config false;
> <       description
> <         "State parameters for the explicit route hop";
> <       uses explicit-route-hop_config;
> 
> te-topology.diff
> ——————-
> 264a265
> >       config false;
> 323a325
> >       config false;
> 327a330
> >       config false;
> 357a361
> >       config false;
> 361a366
> >       config false;
> 733,744c738,739
> <       container config {
> <         description
> <           "Configuration data.";
> <         uses te-link-config;
> <       } // config
> <       container state {
> <         config false;
> <         description
> <           "Operational state data.";
> <         uses te-link-config;
> <         uses te-link-state-derived;
> <       } // state
> ---
> >       uses te-link-config;
> >       uses te-link-state-derived;
> 780,781c775,776
> <                 path "../../../../../../nw:node[nw:node-id = "
> <                   + "current()/../../../../../nt:source/"
> ---
> >                 path "../../../../../nw:node[nw:node-id = "
> >                   + "current()/../../../../nt:source/"
> 792,793c787,788
> <                 path "../../../../../../nw:node[nw:node-id = "
> <                   + "current()/../../../../../nt:destination/"
> ---
> >                 path "../../../../../nw:node[nw:node-id = "
> >                   + "current()/../../../../nt:destination/"
> 841c836
> <         path "../../../../../te/templates/link-template/name";
> ---
> >         path "../../../../te/templates/link-template/name";
> 1087a1083
> >       config false;
> 1092a1089
> >       config false;
> 1106a1104
> >       config false;
> 1113a1112
> >       config false;
> 1128a1128
> >       config false;
> 1267,1279c1267,1268
> <       container config {
> <         description
> <           "Configuration data.";
> <         uses te-node-config;
> <       } // config
> <       container state {
> <         config false;
> <         description
> <           "Operational state data.";
> <
> <         uses te-node-config;
> <         uses te-node-state-derived;
> <       } // state
> ---
> >       uses te-node-config;
> >       uses te-node-state-derived;
> 1297,1309c1286,1287
> <         container config {
> <           description
> <             "Configuration data.";
> <           uses te-node-tunnel-termination-attributes;
> <         }
> <         container state {
> <           config false;
> <           description
> <             "Operational state data.";
> <
> <           uses te-node-tunnel-termination-attributes;
> <           uses geolocation-container;
> <         } // state
> ---
> >         uses te-node-tunnel-termination-attributes;
> >         uses geolocation-container;
> 1406c1384
> <         path "../../../../../te/templates/node-template/name";
> ---
> >         path "../../../../te/templates/node-template/name";
> 1473,1474c1451
> <               path "../../../../../../../nt:termination-point/"+
> <                 "nt:tp-id";
> ---
> >               path
> "../../../../../../nt:termination-point/nt:tp-id";
> 1485,1486c1462
> <               path "../../../../../../../nt:termination-point/"+
> <                 "nt:tp-id";
> ---
> >               path
> "../../../../../../nt:termination-point/nt:tp-id";
> 1577a1554
> >       config false;
> 1583a1561
> >       config false;
> 1595a1574
> >       config false;
> 1738c1717
> <             path "../../../../../../nt:termination-point/nt:tp-id";
> ---
> >             path "../../../../../nt:termination-point/nt:tp-id";
> 1753c1732
> <     uses te-types:explicit-route-hop_config;
> ---
> >     uses te-types:explicit-route-hop;
> 1773,1779c1752,1754
> <       container config {
> <         description
> <           "Configuration data.";
> <         uses te-termination-point-config;
> <       } // config
> <       container state {
> <         config false;
> ---
> >       uses interface-switching-capability-list;
> >       leaf inter-layer-lock-id {
> >         type uint32;
> 1781,1784c1756,1765
> <           "Operational state data.";
> <         uses te-termination-point-config;
> <         uses geolocation-container;
> <       } // state
> ---
> >           "Inter layer lock ID, used for path computation in a TE
> >            topology covering multiple layers or multiple regions.";
> >         reference
> >           "RFC5212: Requirements for GMPLS-Based Multi-Region and
> >            Multi-Layer Networks (MRN/MLN).
> >            RFC6001: Generalized MPLS (GMPLS) Protocol Extensions
> for
> >            Multi-Layer and Multi-Region Networks (MLN/MRN).";
> >       }
> >
> >       uses geolocation-container;
> 1787,1802d1767
> <   grouping te-termination-point-config {
> <     description
> <       "TE termination point configuration grouping.";
> <     uses interface-switching-capability-list;
> <     leaf inter-layer-lock-id {
> <       type uint32;
> <       description
> <         "Inter layer lock ID, used for path computation in a TE
> <          topology covering multiple layers or multiple regions.";
> <       reference
> <         "RFC5212: Requirements for GMPLS-Based Multi-Region and
> <          Multi-Layer Networks (MRN/MLN).
> <          RFC6001: Generalized MPLS (GMPLS) Protocol Extensions
> <          for Multi-Layer and Multi-Region Networks (MLN/MRN).";
> <     }
> <   } // te-termination-point-config
> 1879,1890c1844,1845
> <       container config {
> <         description
> <           "Configuration data.";
> <         uses te-topology-config;
> <       } // config
> <       container state {
> <         config false;
> <         description
> <           "Operational state data.";
> <         uses te-topology-config;
> <         uses geolocation-container;
> <       } // state
> ---
> >       uses te-topology-config;
> >       uses geolocation-container;
> 
> 
>