Re: [MBONED] draft-ietf-mboned-multicast-yang-model-04: partial review

zhang.zheng@zte.com.cn Wed, 12 May 2021 03:20 UTC

Return-Path: <zhang.zheng@zte.com.cn>
X-Original-To: mboned@ietfa.amsl.com
Delivered-To: mboned@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ABDFF3A313E for <mboned@ietfa.amsl.com>; Tue, 11 May 2021 20:20:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.894
X-Spam-Level:
X-Spam-Status: No, score=-1.894 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, 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 IzOqwtcoqN3V for <mboned@ietfa.amsl.com>; Tue, 11 May 2021 20:20:33 -0700 (PDT)
Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.217.80.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 312D33A313D for <mboned@ietf.org>; Tue, 11 May 2021 20:20:32 -0700 (PDT)
Received: from mxct.zte.com.cn (unknown [192.168.164.217]) by Forcepoint Email with ESMTPS id F111814BB72B1B245BB5 for <mboned@ietf.org>; Wed, 12 May 2021 11:20:30 +0800 (CST)
Received: from mse-fl1.zte.com.cn (unknown [10.30.14.238]) by Forcepoint Email with ESMTPS id CB6A0A12BF026E8F7C12; Wed, 12 May 2021 11:20:30 +0800 (CST)
Received: from njxapp04.zte.com.cn ([10.41.132.203]) by mse-fl1.zte.com.cn with SMTP id 14C3K5XK053767; Wed, 12 May 2021 11:20:05 +0800 (GMT-8) (envelope-from zhang.zheng@zte.com.cn)
Received: from mapi (njxapp05[null]) by mapi (Zmail) with MAPI id mid203; Wed, 12 May 2021 11:20:05 +0800 (CST)
Date: Wed, 12 May 2021 11:20:05 +0800
X-Zmail-TransId: 2afd609b49655f8b9cec
X-Mailer: Zmail v1.0
Message-ID: <202105121120051602419@zte.com.cn>
In-Reply-To: <1DB1AAE5-7B15-4D64-8C47-09B6A568A769@akamai.com>
References: 1DB1AAE5-7B15-4D64-8C47-09B6A568A769@akamai.com
Mime-Version: 1.0
From: zhang.zheng@zte.com.cn
To: jholland@akamai.com
Cc: mboned@ietf.org
Content-Type: multipart/mixed; boundary="=====_001_next====="
X-MAIL: mse-fl1.zte.com.cn 14C3K5XK053767
Archived-At: <https://mailarchive.ietf.org/arch/msg/mboned/334brUlmL-lru5VdFP2lgxFiEO4>
Subject: Re: [MBONED] draft-ietf-mboned-multicast-yang-model-04: partial review
X-BeenThere: mboned@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Mail List for the Mboned Working Group <mboned.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mboned>, <mailto:mboned-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mboned/>
List-Post: <mailto:mboned@ietf.org>
List-Help: <mailto:mboned-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mboned>, <mailto:mboned-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 May 2021 03:20:38 -0000

Hi Jake, 


Thank you very much for your detailed review! 


The empty transport-pim needs to be added a group-address leaf. 


It might be ignored when I merge versions. 


Appreciate for your review!


Best regards,


Sandy





原始邮件



发件人:Holland,Jake
收件人:张征00007940;
抄送人:mboned@ietf.org;
日 期 :2021年05月09日 07:12
主 题 :Re: draft-ietf-mboned-multicast-yang-model-04: partial review




Hi Sandy,
 
Thanks for the response, and I'm glad the review was helpful.  Thanks
also for the updated links for the Open Daylight project.
 
You asked a question and had one response I'm still confused about,
so I'm cutting to respond just to those:
 
From: "zhang.zheng@zte.com.cn" <zhang.zheng@zte.com.cn> 
> Date: Sat,2021-05-08 at 12:57 AM
> 
> 8.
> In the model:
> I don't understand the "module-loaded" and "module-unloaded" options
> in the head-end-event notification.  It sounds like these are
> referring to a change in the RESTCONF/NETCONF server, rather than a
> change in the head-end?  Or I don't understand what this is saying,
> or what a client might do in response to this.
>           enum module-loaded {
>             description
>               "The new modules that can be used by multicast
>                flows have been loaded.";
>           }
>           enum module-unloaded {
>             description
>               "The new modules that can be used by multicast
>                flows have been unloaded.";
>           }
> Sandy> In some device, the protocol is also called a module. But I think you are right, the description may lead to confusion. 
> Do you think it's better: protocol-enabled and protocol-disabled?  
 
Ah, I get it now.  Yes, I think protocol-enabled and protocol-disabled
does sound better to me, thanks.
 
> 9.
> In the model:
> I'm confused about the transport-pim grouping that's empty.  Is
> the point of that to have something that can be augmented?  Is
> there an example of augmentations that are used here?
> Sandy> Because this model works together with other protocols model, PIM YANG can also be used. If there is some parameters need to be set, it should be set in PIM YANG model.
> 
> This is an extension point?  If so, would it be reasonable to
> add any guidance explaining when it would be useful or necessary
> to use it?
> Sandy> I used boolean type for it, when it was set to 1 mean that this leaf is used. 
> But when this model was review by YANG doctors, they said it's more better to use the current way.
> 
> 10.
> Same thing for the several empty cases in overlay-tech and
> underlay-tech.
> 
> Would it make sense to define an identity like
> "underlay-technology-identity" and use that as a base for a
> type that would appear in the data instance?  The way it stands
> now, I'm not sure I see how it would distinguish between an
> underlay-tech that's bgp vs. isis, since both are empty, so the
> underlay-tech container would just be empty in both cases.
> Sandy> Please find my answer in 9. 
 
I took a look at the YANG doctor review from Mahesh and the email
thread it references to see if I could better understand their
suggestion as you mentioned in the response to #9:
https://mailarchive.ietf.org/arch/msg/yang-doctors/dv_-0qZ6mpkNmA4_ArRvczagYLI/
https://mailarchive.ietf.org/arch/msg/yang-doctors/Kw2o-kLv4MnGsiGgHHgZcKeakYY/
 
Is that the review you meant?
 
I saw one comment from Mahesh that looked to me like a very similar
question to what I thought I was asking:
 
(From Mahesh):
"Secondly, it is not clear what the purpose of empty containers is in the YANG model. For example, container bgp has no attributes. Is this an augmentation point or a mount point? If so, who is expected to augment or use as a mount point for the container? The draft gives no guidelines on how the container is expected to be used. Again, an example would have helped. If they are meant to be an indication what the routing protocol for the underlay is, why do you need a container? A boolean leaf should have sufficed. As defined, one can have multiple routing protocols defined for a given underlay. Was this the intent?" 
 
I hope the examples will clarify this some, but even if the
presence of the "pim" container in the "transport-tech" grouping
is used as a selector for whether pim is in use, I don't understand
what the empty "transport-pim" grouping is for, or how extensions
are expected to use it.
 
I'll also say that my reading of Mahesh's comment is suggesting that
a boolean leaf would be a better choice than an empty container, if
the point is to just indicate presence or non-presence, which seems
backwards from what I thought you were saying?  Maybe I'm confused
about which review you meant?
 
Anyway, I think the examples with explanations of how the controller
will behave with the examples might be the right next step.  Right
now I feel like I might have an understanding gap on what the intent
is here, so I'm not sure any suggestions on the structure I can make
will make good sense.
 
Thanks and regards,
Jake