Re: [CCAMP] Yangdoctors last call review of draft-ietf-ccamp-mw-yang-05 capitals

"t.petch" <ietfc@btconnect.com> Tue, 12 June 2018 12:00 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: ccamp@ietfa.amsl.com
Delivered-To: ccamp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E5A35130E29; Tue, 12 Jun 2018 05:00:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.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 Z1xNmS1058xf; Tue, 12 Jun 2018 04:59:55 -0700 (PDT)
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on071b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe09::71b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1D0AB130DDA; Tue, 12 Jun 2018 04:59:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KkJjU4jjR4BWqqGGCS4qcAXnLWM9AU+CduXh3fAoGpg=; b=cj4CQ+z/dE9i7Vqh56v8Aj7+FX7IMCF5QSyTukCeYVUNiGIHRSZwtyTFya91vlvN0fGvtyzz3fn/n403639ZF0+xH+f6c1SubLaA7wvkd0++CYYPEO15kJl6o48czs+Qvq9Uf2WPijaiydwq0AahORw98wkuJ8i8/2+XueuQm84=
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
Received: from pc6 (86.165.129.94) by DB5PR07MB0821.eurprd07.prod.outlook.com (2a01:111:e400:5105::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.6; Tue, 12 Jun 2018 11:59:43 +0000
Message-ID: <040701d40244$92fa5ce0$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: Jonas Ahlberg <jonas.ahlberg@ericsson.com>, Jan Lindblad <janl@tail-f.com>
Cc: yang-doctors@ietf.org, ccamp@ietf.org, "Yemin (Amy)" <amy.yemin@huawei.com>, draft-ietf-ccamp-mw-yang.all@ietf.org, ietf <ietf@ietf.org>
References: <152836670897.30871.16818219844116536782@ietfa.amsl.com> <9C5FD3EFA72E1740A3D41BADDE0B461FCF9DE258@dggemm508-mbx.china.huawei.com> <HE1PR0701MB2332F59B6B96EDFC974C823189780@HE1PR0701MB2332.eurprd07.prod.outlook.com> <B986ADA5-4131-43FA-A21B-0C789382EF97@tail-f.com> <HE1PR0701MB2332B8DECF4116EFACA55D9F897F0@HE1PR0701MB2332.eurprd07.prod.outlook.com>
Date: Tue, 12 Jun 2018 12:55:35 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [86.165.129.94]
X-ClientProxiedBy: LO2P265CA0177.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a::21) To DB5PR07MB0821.eurprd07.prod.outlook.com (2a01:111:e400:5105::14)
X-MS-PublicTrafficType: Email
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989080)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7193020); SRVR:DB5PR07MB0821;
X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0821; 3:0kwL+a1BCvEO8cjI65mZWTaGa1ud+DwUtx8lJoUXFWnJ3gUopCczv5g3RenX9t5nz4VfmbcVWOmZXspMzf4yywJfYoEuSmoWMkA9uZDT/rPPqokk4LXHZVcddHxD2fbSMPahodLKzNLdI4EvLO7SG6TfnQ+2aSmKNWef3DE2fKxGscMXkki0hPIn8HK5LHf7oTLDPmSU0Dt7DsKSFTMEhlfoH8Lbql6o3GmDisGHR753kPiTyZzTMJtxl2BPgtQ9; 25:zwvxGGM9rAsdxkf/KqyOOap1pXhoerFZiXlcaIt264dVxuyGLws+pZMattYwEqkF+V2KuC1QQM5DfbMnavrl4aSv1nXBRnz0lih71e4f9dME0LmK4owOhPAb0xKDP7hDgC2zleIzHort9ylh0i42lFclR3qLwJBHjTmqpU0PTKfm7HX/wdjiS31ruVxCzHDcQB/i1QXUm9hHEDiiOQ/WINW1PTnP78A8DwMCGupTtB6Kg/NUlyOObafmMISg3L0Go7aL4C5ZfQiyyecnn0y6330GOfrmGHiWn2U54AXudLR0nwNyQx7l2VcUsraFFqdRSlzILbQ9QuVMQVFRTun++vIS3pX4a8PdH5Ld8qYl3F0=; 31:kP5VeY2HdBknjX4arS0l4vBV60fz9xjl6lZf9h7Y1fM0ICCRBqz75SZaBmy73GAep2STAytiAw4m6WZkdM5Lzkh4DLLOG6PBM9Pw7X2FPFDgqOhVEGO67lKwhMlzh0oH7jal7qqQXn2m5tHoFDeAo5UvbI0v7MuE7dKLZzcTOjAYW4m3QNxiVRNrXOLEO8VceoZSNj7rhHIt7S7AYhijt3HXa8zf00omk0rcXk20igs=
X-MS-TrafficTypeDiagnostic: DB5PR07MB0821:
X-Microsoft-Antispam-PRVS: <DB5PR07MB08213B1A2B6E465F1EF82725A07F0@DB5PR07MB0821.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(37575265505322)(278428928389397)(50582790962513)(788757137089)(17755550239193);
X-MS-Exchange-SenderADCheck: 1
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB5PR07MB0821; BCL:0; PCL:0; RULEID:; SRVR:DB5PR07MB0821;
X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0821; 4:0ZcEsokLvfhuL+eAvCCn9Bk4LFAl2ekv5zWk6atcdnjyopjVcLrWRjAbJ7+XX8zNgSYWjwsY7ojmRSnai6NQV97i7QPhZ+Q/B071Y/0b8D0dVffJNe1u8Ej5vg/3ALXYzA7uxIio4Z5z0nEJrIRqcGhCF0p2UcCpIRGwa5HBBro8nV14gipClwd/T2e1NISj/QffesqbZXKmfMLPUyv10wBBQm3C6symO+6RjDd/cgQiH8oS9lG+qqqrN61AJTqwAm4MPoAa6uhGh4eeI+zYgtbY7iryk+4xi2U340qsZ65X6nZYcArVTqggyEJN8EkqgNva7vNmQ0xe4xoqpvOf1VoZo0+5D7dUuduQXSgtlecISFi9EMGYb3qZ/gjk8LlS8t7+yiEt+kCTv3j1Qrdf5xOmBCJM55qJL+8vH55duaVhWv7f1PxdnEVFV2U4TDdC
X-Forefront-PRVS: 07013D7479
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(396003)(346002)(376002)(39860400002)(366004)(39380400002)(51444003)(40764003)(199004)(189003)(76094002)(13464003)(16526019)(186003)(110136005)(33896004)(26005)(6486002)(23676004)(2486003)(68736007)(345774005)(6666003)(5660300001)(50466002)(84392002)(59450400001)(8936002)(386003)(44736005)(66066001)(25786009)(81686011)(53936002)(4326008)(47776003)(3846002)(6116002)(44716002)(50226002)(62236002)(6246003)(76176011)(81816011)(52116002)(54906003)(6496006)(81156014)(81166006)(4720700003)(8676002)(14496001)(561944003)(551934003)(9686003)(2906002)(97736004)(316002)(93886005)(106356001)(61296003)(7736002)(305945005)(105586002)(86362001)(446003)(2870700001)(1556002)(956004)(229853002)(486006)(476003)(478600001)(74416001)(7726001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR07MB0821; H:pc6; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1;
Received-SPF: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: 1;DB5PR07MB0821;23:ChFcYS+l6Ssq42qfbXq2yP0+d9DtCtghirS805h+VEkTxChaAgj3y/MzPJsjmrB1aDwGaHJA+hA21h+PeL0mLMARlfxysmh+ADIr5WrsuMZVC7SwrTHEIkQCRPBe+m0c767OT7Sqs0s7PWX+irt/MVLMDtB86ClAqKYl7kXytJrFpwULrMzlm/mkiDzUgeml2Scy61krQxau6i34NuUUfijE/Q8hZE3jpl5wDc2K0NMavD+vR3AgwQGgmbUk3SFHPGgZevD/Ksq6g/FeMQz7ZtThg4Or51NmSPv3t8whT1cl/E8gbbMItiXD/w42iJCVE4XY/8r46sfRB84hJPVeqhExfNxsZZxmR3Nv6GMhFupFgXGjuRvdlAbgWwlJ6lR+cM6lS65v3voDUTTaivclKh7NYsY36Xpkbeijjf4VCP27a6o9ZHl6u0kC6/ZOxrZ0Rr/iK45wxzs+q/w0yHoOS2ijhZG3ELlld0/idwacezKsmxOpYRbNo27kJVjqFN06ev9tgD01n7iP6XncUafh62hv3qeA6PpfDsPUQHq579ZaRkXsytTQzF+w2gMkCfSY6b7x4pPQY6sCnxuDJ5R8Ekh8tQpc2QZVTkCFopoXdh7dhRJ9zITMN1x6giLEofDNtJvgnFu0mb5ni/J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avscHMQ2pUHxgOCBLfZI17ZIX7qT8FrT1W0FkwTdTfxxCK7yw+zXAfn0NooxzddQGaSmmspRF4xSxUkHYln7bkX/TBY7A4tCAHH9vqfd1nhbn5vKgzvcnffGXQnV++aZuZCVC2UicO0ZpnknojGtjvLr0l9Wf1SA3k+2aU/eJ8PD7pwWFOhnpkgEDMRlcpIAR
X-MS-Office365-Filtering-Correlation-Id: 13876c9b-6ecf-4ba4-656e-08d5d05bfcbe
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2018 11:59:43.8516 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 13876c9b-6ecf-4ba4-656e-08d5d05bfcbe
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB0821
Archived-At: <https://mailarchive.ietf.org/arch/msg/ccamp/nUz8UQdiGQQdJyJYwBQ3cRSeSMg>
Subject: Re: [CCAMP] Yangdoctors last call review of draft-ietf-ccamp-mw-yang-05 capitals
X-BeenThere: ccamp@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Discussion list for the CCAMP working group <ccamp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ccamp>, <mailto:ccamp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ccamp/>
List-Post: <mailto:ccamp@ietf.org>
List-Help: <mailto:ccamp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ccamp>, <mailto:ccamp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Jun 2018 12:00:04 -0000

Top posting and tweaking the subject line slightly since I am picking up
one minor point only

> There are a couple of identities with capitals. Consider changing to
all lowercase; that is the YANG convention.
>
>   identity E1 {
>   identity STM-1 {
> [Amy] will fix it.
> [Jonas] OK.

Disagree!  If I see e1 I will probably think exponent - if I see E1, I
know exactly what is intended, in a wide range of contexts.  YANG
guidelines allows
"Upper-case characters, the period character,
   and the underscore character MAY be used if the identifier represents
   a well-known value that uses these characters.  "
and I think that E1 and STM-1 fall within that MAY.

I see
identity client-signal-OC3_STM1
in
draft-ietf-ccamp-otn-tunnel-model-01
and
identity STM-1 {
in
draft-fioccola-ccamp-l1csm-yang-01

so I think that CCAMP needs to decide between STM-1 and STM1 - the
former works for me - and then tell the YANG doctors that that is how it
is:-) YMMV

Tom Petch

----- Original Message -----
From: "Jonas Ahlberg" <jonas.ahlberg@ericsson.com>
To: "Jan Lindblad" <janl@tail-f.com>


> Hi Jan & Amy,
> See comments & questions in green [Jonas2].
> Regards
> JonasA
>
> From: Jan Lindblad <janl@tail-f.com>
> Sent: den 11 juni 2018 15:29

>
> Jonas,
>
> Thank you for your review and valuable comments.
> I’ve not responded to the latest mail since I have added comments to
some of the items removed in that mail.
> I’ve copied and pasted your comments into this mail instead, in order
to make the thread of comments complete.
>
> I’ve added my comments in green [Jonas].
>
> [janl2] Very good. Sorry for deleting text prematurely ;-)
>
> I would like to ask CCAMP for support with the question about if the
protection group is likely to be reused elsewhere or if it can be merged
with the microwave module again.
>
> Regards
> JonasA
>
> From: Yemin (Amy) <amy.yemin@huawei.com<mailto:amy.yemin@huawei.com>>
> Sent: den 8 juni 2018 11:37
>
> Hi Jan,
>
> Thanks very much for the comments. I found them are quiet useful to
improve the models.
> Please see my reply below in blue.
> The draft co-authors may add more reply to your comments.
>
> BR,
> Amy
> -----Original Message-----
> From: CCAMP [mailto:ccamp-bounces@ietf.org] On Behalf Of Jan Lindblad
> Sent: Thursday, June 07, 2018 6:18 PM
>
> Reviewer: Jan Lindblad
> Review result: Ready with Issues
>
> YD review of draft-ietf-ccamp-mw-yang
>
> I have now reviewed the YANG modules and corresponding examples of
the -05 version of this draft. I have not read much of the RFC text, so
I can't vouch for how well the text aligns with the model. I find the
proposed modules in good shape. Most of my comments below are alternate
ways of modeling something that the wg may consider, or a few things
where I propose a better option for something that would be acceptable
even as it is. There is a single issue that must be fixed IMO, see #8
below.
>
> Let's start with module ietf-microwave-types.
>
> #1) Consider adding structure to related identities
>
> This module consists mostly of a long list of identities based off of
coding-modulation. If it makes sense that in the future someone might be
interested in doing something with all qam-4096 based identities or
all -strong identities, say, it may make sense to model the identities
as based on each other in a tree style. E.g.
>
>   identity qam-4096 {
>     base coding-modulation;
>     description
>       "4096 QAM coding and modulation scheme.";
>   }
>
>   identity qam-4096-strong {
>     base qam-4096;
>     description
>       "4096 QAM strong coding and modulation scheme.";
>   }
>
>   identity qam-4096-light {
>     base qam-4096;
>     description
>       "4096 QAM light coding and modulation scheme.";
>   }
>
> Or even go to "multiple inheritance" with multiple bases for
identities, e.g.
> for qam-4096 and strong. This would allow future applications to
filter the identities on such criteria. Just a thought.
> [Amy] change to base qam-4096. Multiple bases seem not applicable
here.
> [Jonas] I agree.
>
> #2) Convention to use all lowercase in YANG symbols
>
> There are a couple of identities with capitals. Consider changing to
all lowercase; that is the YANG convention.
>
>   identity E1 {
>   identity STM-1 {
> [Amy] will fix it.
> [Jonas] OK.
>
> Next, let's look at module ietf-interface-protection.
>
> I can't say I understand exactly why this is a separate module. It
publishes a single grouping, which is required by
ietf-microwave-radio-link, and as far as I understand would probably
never be used anywhere else. When the grouping is used a single time in
ietf-microwave-radio-link, it is immediately refined.
> Would probably reduce the clutter by merging the two modules and
resolving the refine.
> [Amy] They were in one model. During the WG discussion, comment was
raised that the interface protection function could be generic and be
used by other technologies in future, so we split the models.
> I’m open to discuss about this.
> [janl] Ok, I didn't quite see how the grouping would be used anywhere
else, but if it indeed is usable elsewhere, having it in a separate
module isn't a bad idea.
> [Jonas] I’m in favor of reverting back to one single module gain,
since it will simplify the model as you mention above. The argument for
breaking it out into a separate module is that it can be used elsewhere.
I’m doubtful if it ever will be, but here I think we need input from the
rest of the community (at least from the CCAMP WG).
>
>
> #3) Config true leaf name status
>
> I find it counter-intuitive that a leaf called status (or state) is a
configuration item. I had to re-read the model several times to get my
head around the fact that this is indeed meant to be config true.
Perhaps consider a name change?
>
>       leaf status {
> [Amy] status should be config false.
> [Jonas] Correct. Our mistake.
>
> #4) Action external-commands
>
> There is a single action called external-commands (even in plural). It
takes a single argument, which is the name of the operation to execute.
No output. To me, a more natural modeling would be to make each of the
external commands an action, over time possibly with different input and
output.
> [Amy] add output to describe the action result (success, fail,
inprogress). But prefer to use one action.
> Change the name to external-command.
> [janl] Hmm, I don't quite understand your preference for a single
action. I see how this choice closes doors, but no real benefit. This is
no big deal, though, what you have works. Just feels less evolvable for
no reason.
> [Jonas] I’m not quite sure I’ve understood what you propose. Do you
mean that we should replace the single action statement and the list of
identifiers with several action statements:
> action manual-switch-working;
> action manual-switch-protection;
> …
> action clear;
> The reason for using identities was that we wanted to make it easy to
extend the module with additional, potentially vendor specific, commands
by augmentation.
> But maybe there are other ways to handle that in case of using the
alternative approach you suggest.
>
> [janl2] Yes, exactly. Separate actions like this has the advantage
that they can take (different) input and output parameters, and that
they can be access controlled separately using NACM. This way different
operators could have/not have access to different operations. Future
standard or vendor modules could still augment whatever additional
actions they like to the same location in the tree.
> [Jonas2] OK I understand and I see the advantage of this approach.
Amy, should we consider change to this or are there other benefits with
the original approach?
>
> Finally, we have module ietf-microwave-radio-link.
>
> #5) Use derived-from when comparing identities
>
> It's more future-proof and more likely to be interoperable if you use
proper XPATH functions to determine kinship than using plain equality
>
>   augment "/if:interfaces/if:interface" {
>     when "if:type = 'mw-types:radio-link-terminal'";
>
> is better written as
>
>   augment "/if:interfaces/if:interface" {
>     when "derived-from-or-self(if:type,
'mw-types:radio-link-terminal')";
>
> This allows future sub-typing (sub-classing) of radio-link-terminal,
i.e. new identities that are based on radio-link-terminal to reflect
some special kind of RLT. It also improves chances of interoperability.
> [Amy] will adopt this.
> [Jonas] Agree.
>
> #6) Blank id reasonable?
>
> Leafs that function as an id usually do not have defaults. Does a
blank id make sense here? If it does, maybe it would make more sense to
leave it without a default and explain what happens if not set in the
description instead? Or mark it as mandatory if it has to be set.
>
>     leaf id {
>       type string;
>       default "";
> [Amy] remove default. Add mandatory.
> [Jonas] I think that the name of the attribute could be misleading. It
’s not a formal id of the terminal, it is a text string that is used by
an optional system feature in a far-end RLT (on the opposite end of the
microwave link) to verify that the correct two RLTs (far-end and
near-end) are connected.
> I don’t think we should make it mandatory. I would suggest to leave it
without default and clarify the consequences in the description.
>
> #7) Use derived-from when comparing identities (again)
>
>     leaf-list carrier-terminations {
>       type if:interface-ref;
>       must "/if:interfaces/if:interface[if:name = current()]"
>          + "/if:type = 'mw-types:carrier-termination'" {
>
> is better written as
>
>       must "derived-from-or-self(/if:interfaces/if:interface[if:name =
>       current()]"
>          + "/if:type, 'mw-types:carrier-termination')" {
>
> It is possible to write this in a more compact way, but there's
nothing wrong with the above.
>
>       must "derived-from-or-self(deref(current())/.."
>          + "/if:type, 'mw-types:carrier-termination')" {
> [Amy] will adopt this.
> [Jonas] Agree.
>
> #8) Badly broken frequency duplex config
>
> If you read the descriptions in these related leafs:
>
>     leaf tx-frequency {
>       type uint32;
>       units "kHz";
>       mandatory true;
>       description
>         "Selected transmitter frequency.";
>     }
>    leaf rx-frequency {
>       type uint32;
>       units "kHz";
>       description
>         "Selected receiver frequency.
>          Overrides existing value in duplex-distance.
>          Calculated from tx-frequency and duplex-distance if
>          only duplex-distance is configured.
>          Must match duplex-distance if both leaves are
>          configured in a single operation.";
>     }
>
>     leaf duplex-distance {
>       type uint32;
>       units "kHz";
>       description
>         "Distance between Tx & Rx frequencies.
>          Used to calculate rx-frequency when
>          rx-frequency is not specifically configured.
>          Overrides existing value in rx-frequency.
>          Calculated from tx-frequency and rx-frequency if only
>          rx-frequency is configured.
>          Must match rx-frequency if both leaves are configured
>          in a single operation.";
>     }
>
> It appears that the author intends the system to fill in the value for
one of these leaves based on the value set for the other. This is a big
no-no. A system should never alter its own configuration, or automation
flows (which is the whole purpose with YANG and NETCONF, remember) will
break. Also, the validity of the configuration should not depend on how
many operations are used to inject it.
>
> I find this a serious flaw that must be fixed before the module can be
released.
>
> I propose fixing it like this:
>
>     leaf tx-frequency {
>       type uint32;
>       units "kHz";
>       mandatory true;
>       description
>         "Selected transmitter frequency.";
>     }
>     choice freq-or-distance {
>       leaf rx-frequency {
>         type uint32;
>         units "kHz";
>         description
>           "Selected receiver frequency."
>       }
>       leaf duplex-distance {
>         type uint32;
>         units "kHz";
>         description
>           "Distance between Tx & Rx frequencies."
>       }
>     }
>
> If you would like to have read-only computed values accessible in the
model, maybe you could add:
>
>     leaf actual-rx-frequency {
>       type uint32;
>       units "kHz";
>       description
>         "Computed receiver frequency."
>       config false;
>     }
>     leaf actual-duplex-distance {
>       type uint32;
>       units "kHz";
>       description
>         "Computed distance between Tx & Rx frequencies."
>       config false;
>     }
>
> Many other ways of doing this properly are also possible. Let me know
if you'd like to discuss options.
> [Amy] I think choice is a good way to model those leafs. I suggest to
use it.
> That’s the real value of YANG doctors! Thanks.
> [Jonas] Thanks for your help. We have discussed this a lot without
finding a good solution. I agree that we should use it.
> The only question I have is the name of the attributes. Should the
attribute used for configuration or the attribute showing the resulting
be called rx-frequency?
> config-rx-frequency & rx-frequency   v.s.   rx-frequency &
actual-rx-frequency
>
> [janl2] I used actual-rx-frequency because you had some other leafs
called actual-...
>
> Yet another possibility could be to model it like this (pseudo YANG):
>
> leaf tx { ... }
> choice freq-or-dist {
>   container by-frequency {
>     leaf rx { ... }
>     leaf dist { config false; }
>   }
>   container by-distance {
>     leaf dist { ... }
>     leaf rx { config false; }
>   }
> }
>
> I.e. three leaves with the same names, just different paths (since the
container names differ) and different configness. I think my initial
proposal is a little cleaner, tho, which is why I went with that one
earlier. Or you could move the actual-... leaves into the choice, so
that only the one that's meaningful exists.
>
> [Jonas2] I think that your first proposal has a benefit of always
providing access to the actual configuration through the same leafs (and
path) (tx-frequency, actual-rx-frequency, actual-duplex-distance,
independent of how they have been configured.
> One use-case we have discussed is that an operator uses
duplex-distance for the initial configuration of the rx-frequency and
then in a second step fine tuning it by setting the rx-frequency
directly. Would that work with a choice statement, i.e. that you first
choose duplex-distance and then in a subsequent operation overrides that
and choose rx-frequency?
>
> #9) Check that lower threshold is less than upper threshold
>
> Would it make sense to add a must statement checking that the lower
threshold is less than (or equal?) to the upper threshold?
>
>     leaf atpc-lower-threshold  {
>       when "../power-mode = 'atpc'";
>       type power {
>         range "-99..-30";
>       }
>       units "dBm";
>       mandatory true;
>       description
>         "The lower threshold for the input power at far-end
>          used in the ATPC mode.";
>       reference "ETSI EN 302 217-1";
>     }
>     leaf atpc-upper-threshold  {
> [Amy] can add the must statement.
> [Jonas] Good!
>
> #10) Choice more convenient
>
> There are a few leafs that act as discriminators for when clauses in
other leafs. Such constructs might be a little smoother when modeled as
a choice instead. I'll take one and show as an example. This power-mode
construct:
>
>     leaf power-mode {
>       type enumeration {
>         enum rtpc {
>           description
>             "Remote Transmit Power Control (RTPC).";
>           reference "ETSI EN 302 217-1";
>         }
>
>         enum atpc {
>           description
>             "Automatic Transmit Power Control (ATPC).";
>           reference "ETSI EN 302 217-1";
>         }
>       }
>       mandatory true;
>       description
>         "A choice of Remote Transmit Power Control (RTPC)
>          or Automatic Transmit Power Control (ATPC).";
>     }
>
>     leaf maximum-nominal-power {
>       type power {
>         range "-99..40";
>       }
>       units "dBm";
>       mandatory true;
>       description
>         "Selected output power in RTPC mode and selected
>          maximum output power in ATPC mode. Minimum output
>          power in ATPC mode is the same as the system
>          capability, available-min-output-power.";
>       reference "ETSI EN 302 217-1";
>     }
>
>     leaf atpc-lower-threshold  {
>       when "../power-mode = 'atpc'";
>       type power {
>         range "-99..-30";
>       }
>       units "dBm";
>       mandatory true;
>       description
>         "The lower threshold for the input power at far-end
>          used in the ATPC mode.";
>       reference "ETSI EN 302 217-1";
>     }
>     leaf atpc-upper-threshold  {
>       when "../power-mode = 'atpc'";
>       type power {
>         range "-99..-30";
>       }
>       units "dBm";
>       mandatory true;
>       description
>         "The upper threshold for the input power at far-end
>          used in the ATPC mode.";
>       reference "ETSI EN 302 217-1";
>     }
>
> could be modeled as:
>
>     choice power-mode {
>       container rtpc {
>         description
>           "Remote Transmit Power Control (RTPC).";
>         reference "ETSI EN 302 217-1";
>         leaf maximum-nominal-power {
>           type power {
>             range "-99..40";
>           }
>           units "dBm";
>           mandatory true;
>           description
>             "Selected output power.";
>           reference "ETSI EN 302 217-1";
>         }
>       }
>       container atpc {
>         description
>           "Automatic Transmit Power Control (ATPC).";
>         reference "ETSI EN 302 217-1";
>
>         leaf maximum-nominal-power {
>           type power {
>             range "-99..40";
>           }
>           units "dBm";
>           mandatory true;
>           description
>              "Selected maximum output power. Minimum output
>              power is the same as the system
>              capability, available-min-output-power.";
>           reference "ETSI EN 302 217-1";
>         }
>
>         leaf atpc-lower-threshold  {
>           type power {
>             range "-99..-30";
>           }
>           units "dBm";
>           mandatory true;
>           description
>             "The lower threshold for the input power at far-end
>              used in the ATPC mode.";
>           reference "ETSI EN 302 217-1";
>         }
>         leaf atpc-upper-threshold  {
>           type power {
>             range "-99..-30";
>           }
>           units "dBm";
>           mandatory true;
>           description
>             "The upper threshold for the input power at far-end
>              used in the ATPC mode.";
>           reference "ETSI EN 302 217-1";
>         }
>       }
>       mandatory true;
>       description
>         "A choice of Remote Transmit Power Control (RTPC)
>          or Automatic Transmit Power Control (ATPC).";
> }
>
> [Amy] Choice is a better way. Is it possible to further refine your
proposal?
> Since maximum-nominal-power will be used by both RTPC and ATPC, how
about to move it out of the choice, then use maximum-nominal-power in
the choice? Like this:
>         leaf maximum-nominal-power {
>           type power {
>             range "-99..40";
>           }
>           units "dBm";
>          mandatory true;
>           description
>              "Selected maximum output power. Minimum output
>              power is the same as the system
>              capability, available-min-output-power.";
>           reference "ETSI EN 302 217-1";
>         }
>
>     choice power-mode {
>       container rtpc {
>         description
>           "Remote Transmit Power Control (RTPC).";
>         reference "ETSI EN 302 217-1";
>
>         use maximum-nominal-power;
>       }
>       container atpc {
>         description
>           "Automatic Transmit Power Control (ATPC).";
>         reference "ETSI EN 302 217-1";
>
>         use maximum-nominal-power;
>
>         leaf atpc-lower-threshold  {
>           type power {
>             range "-99..-30";
>           }
>           units "dBm";
>           mandatory true;
>           description
>             "The lower threshold for the input power at far-end
>              used in the ATPC mode.";
>           reference "ETSI EN 302 217-1";
>         }
>         leaf atpc-upper-threshold  {
>           type power {
>             range "-99..-30";
>           }
>           units "dBm";
>           mandatory true;
>           description
>             "The upper threshold for the input power at far-end
>              used in the ATPC mode.";
>           reference "ETSI EN 302 217-1";
>         }
>       }
>       mandatory true;
>       description
>         "A choice of Remote Transmit Power Control (RTPC)
>          or Automatic Transmit Power Control (ATPC).";
>     }
>
> [janl] Yes, this is certainly very reasonable. I placed the
maximum-nominal-power inside the choice because the description string
was giving the leaf different interpretations in each case. In that case
I felt it better to have separate leaves with clear descriptions. If you
feel the leaf can be shared between the options with a clear definition
of its meaning, this is reasonable.
> [Jonas] One purpose of the mode attribute was to show if the
carrier-termination was configured for RTPC or ATPC, but I guess the
same can be achieved by looking for which container, rtpc or atpc, has
been instantiated.
>
> [janl2] Yes, that's the idea.
> [Jonas2]. Good!
>
> I suggest that we go for Jan’s proposal since the attribute has
different meaning in the two cases. One purpose of the
>
> #11) Choice more convenient (again)
>
> Same thing again for
>
>     leaf coding-modulation-mode {
> [Amy] will update it.
> [Jonas] OK, see above.
>
> #12) Unusual exponential notation
>
> Do you really mean 10e-9 (=10*10^-9 =10^-8), or do you mean the more
traditional notation 1e-9?
>
>       leaf ber-alarm-threshold {
>         type enumeration {
>           enum "10e-9" {
> [Amy] should be 1e-9. Need to confirm with the co-authors.
> [Jonas] Yes, we mean 10^-9, 10^-8, …, 10^-1.
>
> [janl2] A perpahs simpler way to model this would be to only keep the
part that contains information, i.e. as
>
> leaf ber-alarm-threshold {
>   type int8 {
>     range -9..-1;
>   }
>   default -6;
>   description "Specification of at which BER as a power of 10 an alarm
should be raised. 10^-6 is the default.";
>   reference "ETSI EN 302 217-1";
> }
>
> #13) Separate module with grouping, used a single time with refine
>
> Module ietf-interface-protection defines a grouping
(protection-groups), which is used a single time, yet is refined when it
is used below. As noted before comment #3, I find this way of laying out
the YANG unnecessarily hard to read and understand, for no clear
benefit.
>
>   container radio-link-protection-groups { ....
>     uses ifprot:protection-groups {
>
>       refine protection-group/members {
>         must "/if:interfaces/if:interface[if:name = current()]"
>            + "/if:type = 'mw-types:carrier-termination'" {
>
> Also, as noted in comment #7, the must statement is better written
using derived-from-or-self. This applies regardless of the current
refine statement is kept, or if the must statement moves to the actual
leaf-list it applies to.
> [Amy] Will update the must statement.
> [Jonas] If I remember correctly, I think it was done with the ambition
that it should be made generic so that other interface technologies
could use the same protection module. In case, we revert back to one
single module I suggest that we also simply the structure as Jan
suggests.
>
> Appendix A.1 & A.2
>
> Besides the actual YANG modules, there are also a couple of examples
in Appendix A.1 and A.2. I tried to use them and uncovered a couple of
issues.
>
> #14) Config false leaf in config example
>
> Both examples list
>
>         "tx-oper-status": on
>
> This is a config false item, which could never be part of a
configuration message (and it also lacks comma at the end).
> [Amy] will remove it.
> [Jonas] OK
>
> #15) Wrong type in example
>
> Both examples list
>
>         "coding-modulation-mode": 0,
>
> 0 not a legal value, should be "single" to match the rest of the
example data.
> [Amy] will fix it.
> [Jonas] OK
>
> #16) Missing mandatory parameter
>
> Both examples lacks leaf maximum-nominal-power, which is mandatory
according to the YANG, so the transaction fails to validate.
> [Amy] will add it.
> [Jonas] OK
>
> #17) Examples perhaps a tad basic
>
> The examples are demonstrating only a small part of the module
functionality. A bigger example, e.g. including xpic with interface
pointers might be useful.
>
> Feel free to reach out to me to discuss any of this. Thank you.
> [Amy] will add additional example.
> [Jonas] Good suggestion. Amy, let’s what configuration to show.
>
>
> Best Regards,
> /jan
>
>