Re: [yang-doctors] [i2rs] Yangdoctors last call review of draft-ietf-i2rs-yang-network-topo-14

"Alexander Clemm" <ludwig@clemm.org> Tue, 05 September 2017 08:07 UTC

Return-Path: <ludwig@clemm.org>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C243F132705; Tue, 5 Sep 2017 01:07:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.919
X-Spam-Level:
X-Spam-Status: No, score=-1.919 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 JniFwHNUVd5p; Tue, 5 Sep 2017 01:07:39 -0700 (PDT)
Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) (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 A6BC2132396; Tue, 5 Sep 2017 01:07:36 -0700 (PDT)
Received: from LAPTOPR7T053C2 ([73.71.191.170]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0McoSN-1e6wj63K4H-00Hz4I; Tue, 05 Sep 2017 10:07:34 +0200
From: Alexander Clemm <ludwig@clemm.org>
To: 'Kent Watsen' <kwatsen@juniper.net>, yang-doctors@ietf.org
Cc: i2rs@ietf.org, draft-ietf-i2rs-yang-network-topo.all@ietf.org
References: <150223663961.3605.4696763251648960641@ietfa.amsl.com>
In-Reply-To: <150223663961.3605.4696763251648960641@ietfa.amsl.com>
Date: Tue, 05 Sep 2017 01:07:31 -0700
Message-ID: <6be001d3261e$06fc2aa0$14f47fe0$@clemm.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQLosGLB+IujuUjZRAxhjJ25zul68qBltENw
Content-Language: en-us
X-Provags-ID: V03:K0:aJFgy5s1+hRwCWswe89jAXXIhkiUpHwcRzzI+5xBw3CZttrkaWk cMPYq/e4qnUXpSShJzzW080eKDyDHjxk3PsR2GzR+KfMH6ZPCS1Tx9+kgZgHAWLougIVQvc zoiBKAYWFgVdjqz8le3a6U1/oosUNLUUMJkd7h4imffGHGXrgD+dh+RXzktO+X/AWDqXD// In8IYryWL4IFdswACpIgA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:QOcENj+k92Y=:TCyP9lHLcsndAT7K9GNrqx F2GU9JunDb7GC27NXD94aHr9k7bh33VkyRO3xYHXEfnD2IuffJU6WdxP6ESDYoK+6DooaHhYx Ad1w38MQKpGT3G8jPUSszKIGZou7XmPaIq6lfpxA4yIu2mleEpmihohKhED7TSL0CcQwLPKi+ 7KAi+h8xM9v31oJyYHKuZ43sHOewtCYg6d1zPFM1UREdzHVhR0K5I/LZzzdnvTWpOhyKc05JT Sm3RBuyI8NhZtFiEdse4UuoUF7uFtMlu0Pdl/Zq/XgMIu50QYrTaoLBEm+mD/w1i+yVW4Q9JR Yvvdd/1EyLnY9uN2LakyDSlOAr3UfxPo/chI3HOpfcsTZrtxJhUmMN6kX/KF4J4/B9ejY1uHL LI0sHrioKwCp1mZ8dDjjelB8JxX2Lzsthk8Pm2qRbMaoHwlVky0pxfnNxHqZSWXpZRYrSv3UD XJzpAmHJcdmwI+tUUBWuXY6g60oSeyvD3AZ/qJEu1m+vpUWznVq/HAcnqFlGmFuwQ2izt9zkl fX/JeTVkimx2VLAKsADatVTd8pYAq34eggx/SYmRNe/MxgsHiyKtRKWAyqaJZJL6HI5HIhXZZ TFvIRTJZHDC+lSjPatzqdwyip0HRCGVznHGcVgkFfw/ritYxaihpWxTE+lu9LnBRAkNiyRKsr dS1jZW6qxuIbo9U8y/c+Xh9Qd6/1tgYz8aKsFGpCipxkPidTTM2cUTyyQCNaxfulOySs6dne0 WFj2LB72pf4EnOmUFavG9zPkQRbBNvdpBLmme5YGxz0BrL44hBiQK6MyLT0=
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/IK1sLCl3uFSbuRYs64jP8g2gQGE>
Subject: Re: [yang-doctors] [i2rs] Yangdoctors last call review of draft-ietf-i2rs-yang-network-topo-14
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Sep 2017 08:07:47 -0000

Hi Kent,

Thank you for your thorough review.  

I am posting a rev 15 with the comments addressed, per responses inline, <ALEX>

--- Alex

-----Original Message-----
From: i2rs [mailto:i2rs-bounces@ietf.org] On Behalf Of Kent Watsen
Sent: Tuesday, August 8, 2017 4:57 PM
To: yang-doctors@ietf.org
Cc: i2rs@ietf.org; draft-ietf-i2rs-yang-network-topo.all@ietf.org
Subject: [i2rs] Yangdoctors last call review of draft-ietf-i2rs-yang-network-topo-14

Reviewer: Kent Watsen
Review result: Almost Ready


YANG Doctor review of draft-ietf-i2rs-yang-network-topo-14 (by Kent Watsen)


4 modules are defined in the draft:
- ietf-network@2017-06-30.yang
- ietf-network-topology@2017-06-30.yang
- ietf-network-state@2017-06-30.yang
- ietf-network-topology-state@2017-06-30.yang

No validation errors from either `pyang` or `yanglint`.

0 examples are defined in the draft.

The -state modules appear to have all the correct changes from their base modules.

Regarding ietf-network@2017-06-30.yang:
- prefix “nd”, should be “nw”?  (in IANA Considerations also)

<ALEX> The prefixes are "historic".  We  could change them, but this will have ripple effects on derived models. 
</ALEX>

- “import ietf-inet-types” should have a ‘reference’ to RFC 6991

<ALEX> done </ALEX>

- remove “WG Chairs”, per the template in rfc6087bis-13 Appendix C.

<ALEX> done </ALEX>

- s/Editor/Author/? (this is a preference choice)

<ALEX> left as is - I think "Editor" is what is commonly used.  If you feel strongly about this, please let us know.  </ALEX>

- defines ‘network-ref’ that is unused within module (it’s used by
  ietf-network-topology)

<ALEX> left as is.  This might be useful also for other modules.  Rather than have it be redundantly defined elsewhere, IMHO this is the best place to keep it. </ALEX>

- leafref paths don’t include prefix (rfc6087bis S4.2)

<ALEX> Prefixes added </ALEX>

Regarding ietf-network-topology@2017-06-30.yang:
- prefix “lnk” should be “nt” or maybe “nwtp”? (in IANA Considerations also)

<ALEX> The prefixes are "historic".  We  could change them, but this will have ripple effects on derived models. 
</ALEX>

- “import ietf-inet-types” should have a ‘reference’ to RFC 6991
- “import ietf-network” should have a ‘reference’ to RFC XXXX
- remove “WG Chairs”, per the template in rfc6087bis-13 Appendix C.


<ALEX> done </ALEX>

- s/Editor/Author/? (this is a preference choice)

<ALEX> left as is, consistent with above </ALEX>

- defines grouping link-ref and tp-ref that are unused within module

<ALEX> left as is.  While it would be possible to strike these, we feel they might eventually be useful for other modules that want to reuse what arguably constitutes a "complex data type".  Rather than have it be redundantly defined elsewhere, IMHO this is the best place to keep it. </ALEX>

- mandatory true for source/dest-node/tp?

<ALEX>  It is true that in general this will be included, but there may be instances when the fact that there is a link will need to be represented, even if it is not properly connected yet.  Therefore, we would not make it mandatory.   
</ALEX>  

- replace “tp” with “term-pt”?  (both in “-tp” and “tp-“ uses)

<ALEX> prefer to keep.  </ALEX>

Regarding ietf-networ-statek@2017-06-30.yang:
- similar comments to ietf-network@2017-06-30.yang:

Regarding ietf-network-topology-state@2017-06-30.yang:
- similar comments to ietf-network-topology@2017-06-30.yang.

<ALEX> Analogous comments apply </ALEX>


Comments on draft:

1) The document still has references to “server-provided”.  Not the YANG leaf of course, but in general text.  For instance “The model does allow to layer a network that is configured on top of one that is server-provided.”
I think that the statement is more about values being in <operational> than how it was learned.  All uses of “server-provided” should be examined for correctness.

<ALEX> Corresponding textual updates throughout </ALEX>

2) This sentence doesn’t make sense to me, how can a server-provided model (you mean data?) access any information in conventional datastores?:
   “An implementation's security policy MAY further restrict what
   information the server-provided model is allowed to access in
   standard configuration data-stores,”
Either way, this text likely should be moved to the Security Considerations section.

<ALEX> I removed this sentence altogether.  What we had originally in mind was to refer to the fact that you could have a leafref point to an object that has a different access authorization.  This is nothing specific to the model, but a corner case of NACM.   I think it is safe to remove this. 
</ALEX>

3) Should the last paragraph in Section 1 be removed now?  Is the module expected to continue to update?

<ALEX> Yes, agree - removed.  This was historic; we simply hadn't looked at this section in the draft for a while:-)
</ALEX>

4) S4.1, P3: the text here says new data nodes are augmented in, but the YANG module itself says that only presence containers are allowed.

<ALEX> I am not sure I see an issue here?  The "network-types" node is a container (not a presence container), which will serve as a target for augmentation.  The anticipated pattern is that nodes that are going to be augmented in will be presence containers that indicate that a network/topology of a certain type is present.   
</ALEX>

5) are the mandatory statement values set appropriately everywhere?
(e.g., source-node?, source-tp?)

<ALEX> Yes, we had a bunch of discussions on this in the past; mandatory is not needed.  </ALEX>

6) network-type is a presence container, not an identity? No where in the draft is there an example showing it being used.

<ALEX> The examples are in the L3 topology draft.  Let me add a text snippet referring to that </ALEX>

7) Section 4.4.8., why not use identities?

<ALEX> This was our design choice.  We did want to be able to represent "type hierarchies", this we could do with containers (that can become targets for augmentation).   

8) S4.4.9 is a duplicate of some text in S4.1

<ALEX> Looking at the text, some things described in 4.4.9 are alluded to in 4.1 (the general overview), but not in a way that I would consider "overspecified" or redundant - would prefer to keep as is - the way it is it flows well IMHO.  
</ALEX>

9) This statement is true, but I think misleading in context. “YANG requires data nodes to be designated as either configuration or operational data, but not both”. It seems that the solution depends entirely on config true nodes, and NMDA to present the operational value of those config true nodes.  Right?

<ALEX> This text of course predates the relatively recent NMDA stuff, but NMDA does not make it false.  I don't find the text misleading, but I did make some edits to refer specifically to NMDA, to clarify that the nodes are config true, and that NMDA is used for the distinction.  
</ALEX>

10) When using <CODE BEGINS>, you should have a note to the RFC Editor to change the date to the date of publication, both in the filename as well as in the module’s ’revision’ statement.
<ALEX> Thank you, done </ALEX>

11) IANA Considerations has comments “(RFC form)” - are these supposed to be notes to RFC Editor to replace with final RFC designation?

<ALEX> Yes, this is what is meant here.  Replaced this with a more explicit statement "NOTE TO RFC EDITOR:"  </ALEX>

12) Your Security Considerations section should follow the template here:
https://trac.ietf.org/trac/ops/wiki/yang-security-guidelines

<ALEX> I made updates, but do not list every single object with its security implications  which I find excessive.  
</ALEX>

13) create examples for the use-cases in Appendix A?  Note, every draft should have examples of its YANG modules...

<ALEX> Really prefer not to unless we have to.  We want to be done with this.  The model has been successfully used and extended; IMHO an example is not needed to add for clarification.  <ALEX>

Nits:

- why reference RFC6991 in the Introduction?
<ALEX> removed </ALEX>
- replace “allows to define” with “enables the definition of”
<ALEX> ok </ALEX>
- in a few places, you refer to “network.yang”, but the
  file is called “ietf-network.yang”.
<ALEX> fixed </ALEX>
- in a few places, you refer to “network-topology.yang”,
  but the file is called “ietf-network-topology.yang”.
<ALEX> fixed </ALEX>
- replace “- X1 and X2 - mapping onto a single L3 network element”
  with “(X1 and X3) mapping onto a single L3 network element (Y2)”
<ALEX> ok </ALEX>
- replace “data-store” with “datastore”
<ALEX> ok </ALEX>
- replace “model” with “data model” where it’s not already.
<ALEX> not sure there were any ambiguities and it's been done in other cases, but ok </ALEX>
- replace “the <intended> datastore” with just “<intended>”
- replace “the intended datastore” with just “<intended>”
<ALEX> Updated most instances, i.e. those where it made sense, but left some in place as I believe it flows better.  </ALEX>
- update Section 2 to also include a reference to RFC 8174 (see RFC 8174)
<ALEX> ok </ALEX>
- pull the “datastore” term from the revised-datastores draft?
<ALEX> I think the definition here is good </ALEX>
- NETCONF and YANG don’t need to be terms/defined, since references
  to their RFCs are provided when they’re used.
<ALEX> ok, removed </ALEX>
- s/the network.yang module/the “ietf-network” YANG module/
<ALEX> ok </ALEX>
- your tree-diagram notation in S4.1 isn’t complete.  And you duplicate
  it in S4.2.  Create a top-level section called “tree diagram notation”
  that both sections reference?
<ALEX> For the notation description, I incorporated a reference to the YANG tree diagrams draft </ALEX>
- s/allows to represent/allows representation of/
- s/another container/a presence container called/
- s/allows to define more/allows definition of more/
- s/allows also to represent/allows representation of/
<ALEX> updated </ALEX>
- s/configuration and intended datastores/conventional datastores/
<ALEX> I think the current reads better, prefer to keep </ALEX>
- s/and show up only/and thus only appear/
- /ietf-network:networks/network/network-id - being the list’s key,
  I was expecting this to the first element defined.
- for the various leafrefs in both models, I see a lot of longish
  relative paths; suggest you change these to absolute paths if possible
<ALEX>Prefer to keep; they work fine</ALEX>
- /nd:networks/nd:network:/link/link-id is the list key but not the
  first leaf listed
- incomplete sentence: “augmentations can in turn against augmenting
  modules”
<ALEX>  fixed </ALEX>
- s/need to specified/need to be specified/
- s/if the link-to-links mapping known/if the link-to-links mapping
  are known/
- s/each link known/each link are known/
- s/the operational datastore/<operational>/
- s/into the data model without relying/into <operational> without relying/
<ALEX> updated </ALEX>
- s/in the following two companion modules/the following two companion modules/
<ALEX> keeping this one, original reads better than the substitution </ALEX>
- s/that represent a state model/to represent the operational state/
<ALEX> ok </ALEX>

Thanks,
Kent



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