Re: [CCAMP] Yangdoctors last call review of draft-ietf-ccamp-optical-impairment-topology-yang-12

"Sergio Belotti (Nokia)" <sergio.belotti@nokia.com> Thu, 25 May 2023 15:23 UTC

Return-Path: <sergio.belotti@nokia.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 37CF2C15109D; Thu, 25 May 2023 08:23:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nokia.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T2e4bkMw5E-p; Thu, 25 May 2023 08:23:22 -0700 (PDT)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0717.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::717]) (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 10096C15DD6A; Thu, 25 May 2023 08:23:18 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U0WhzpqkK5Sgaq8xTKTUoJhU61PmuY6zZjmjXiSegvYegoV1yd70bYHPBkwuZ+SL9/slfBiqfvrrPncIIlHo0Q5hkdacTAOI5bMX5ja6Hp1W2kEMpMhGNWMCXCAOZsc9WXFC3lG9Osd10dLV+A81i0yzajx4jLSpctoyeQT3926IxWEVae1wTpicDAgJXop5uuB8dfY46RtRd48MvtbleC5mEUHdMURVKNZOYIYGvKWdFbxI9oASFitSF/Iw1+351S1k6y7fJ0uRFG+Fxdd6WoGsGQjViXiPFDR9CqS6Orm5l51yFumO9d6l4CrQXY3tYeku9/ogjNIDt8L1v61tQg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pH/KvFE7BiLkEHHINurb/+1HG6QEyrep9LYqSZeZyLo=; b=BriSMtSiR2Z1lUxx46fTCMQ1IreN6V0WPB/d6a+dR6B+9GBxN/GtMDsmn+BxzzlM/K2EdZz+thz7nAwmxIJK+K+qeyIbOBAetXBty0U3FyNPBiKNPaWk5xJNgDj2ykPEaXUgKSmiDlXoS8WLVQUEYx9ZLo4k7/C9v6lJZZjdJf8EmgkLwjpJr01M6huihCmsg4t9CYBd66l2A0pYTNtJepej2DDYeDGmBLuSX7tQYYJTtYtO+ris5h11NK0yvCJ/vfLgP/PuBEozfwEh+BzkgG1FB3gkL+6w94Kc2umHBJojZnFBlXFWoPqVNCzYDavE9lLR6FA4pMgS1VtN8L7FDA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pH/KvFE7BiLkEHHINurb/+1HG6QEyrep9LYqSZeZyLo=; b=F3ccANVgVNAzstTt7tTUluDhXlacTCexcD0mveZsRveRJipW+WlHlp7B2K+YbBYYYfi7B7Hj3J+smyOn3TihpmLwniqwh6GpRrup86yHUiwttEWDVHLmztIwh4l6bK9ll9+FnA4X+OjpjfnyDJutYTEk9SfEo9lDDqNOeg+VQe5wXzWT5V+0UQWNWdV648yjyWfCfO1jgnkDYnVKvcWtOcrz4MZvtrpgPF9yFOO+nkRCJYHzvTwfuzW+JZTyzDKLitdtlAkfIDOA+B+07jhQsCMZF6EV2+F3loFaPO4yPPb3aJJ6RX08B8kqmeOLFbe1XZ2HjxK4zio9Vz+fLrWLQg==
Received: from AM0PR07MB5490.eurprd07.prod.outlook.com (2603:10a6:208:104::27) by AS1PR07MB8781.eurprd07.prod.outlook.com (2603:10a6:20b:479::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15; Thu, 25 May 2023 15:23:13 +0000
Received: from AM0PR07MB5490.eurprd07.prod.outlook.com ([fe80::3ee9:fb3:811c:d50e]) by AM0PR07MB5490.eurprd07.prod.outlook.com ([fe80::3ee9:fb3:811c:d50e%5]) with mapi id 15.20.6433.015; Thu, 25 May 2023 15:23:13 +0000
From: "Sergio Belotti (Nokia)" <sergio.belotti@nokia.com>
To: Michal Vaško <mvasko@cesnet.cz>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
CC: "ccamp@ietf.org" <ccamp@ietf.org>, "draft-ietf-ccamp-optical-impairment-topology-yang.all@ietf.org" <draft-ietf-ccamp-optical-impairment-topology-yang.all@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, Italo Busi <italo.busi@huawei.com>
Thread-Topic: Yangdoctors last call review of draft-ietf-ccamp-optical-impairment-topology-yang-12
Thread-Index: AQHZZtv5uz+5l2GTvkmCgQ9riuVARK9raDDg
Date: Thu, 25 May 2023 15:23:13 +0000
Message-ID: <AM0PR07MB54906316E0FBC538D268928991469@AM0PR07MB5490.eurprd07.prod.outlook.com>
References: <168060229076.58564.15467594733169768324@ietfa.amsl.com>
In-Reply-To: <168060229076.58564.15467594733169768324@ietfa.amsl.com>
Accept-Language: it-IT, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AM0PR07MB5490:EE_|AS1PR07MB8781:EE_
x-ms-office365-filtering-correlation-id: e89224e9-c04b-4460-2833-08db5d33f4d7
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: aH5WpoL/l9ZKEUYgFMrGQl+1+kpVWbxKYH3ZBjgj+2/VcHvxRI0Bn3AsS/06hGI8VeAwhG4rejcpn2+ElKZnDS7vy2d2oHXx362MOUpk3CGtSO8YoE3VRwYE8NT6A3sfrrA1XgXYeogazS9DjIFnE/bkkF0LMRDwcRbajokS2xzSFOAA3tRCMy18veGlSruNwSXhBcxrshw1QqvbHFLzOKtLgmBz+rlT8ybYbMuV/pNSMdeyAKC/CpIc8v/dMZFAh0udbhiVi9muLVhl7I/MYsA+NHA17jPgaPY+899fMxLGgFrL6FZdqHFeuaxg03C9D4bPpKqwCL64Plnhamd+hw6fpQXWoEB7O/oImpsS6Sq6Y8X2XebHE5oKLxeO6i+5oztsoV8ifRFInftGd6O2F8/DTJp4tR2fIXNnobV4NNBlXhKYxsPfsAJm16B0bBKHwiAGzF1l08ThxQcMsLSnyWQVAygaK5/Nf1+qC9I9MhOTmkuHW2K++0GZBS6SiFD6mBEZAXUYQRUHVNO450lftCWSSrOhR12H048px9yIvBkxS8zgPxr5jwKnJ1GfGvZX8+cbaUDRzuQHu7qZqDA3hgSAGBIxt4YV+3u2lY70Q/HWqoeGFJOVmHJZPQK25rWOLS6WgBJ3ZW/eCl4soWyF3B/Voz+Zzju6qxBh0KcvKLSPiAuK60Zs0SXnE6sIWVqG3UQlohp0baUdH2qSvJA6L7t6jflQoi/YBiEmCrKRyMs=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR07MB5490.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(136003)(39860400002)(396003)(376002)(366004)(346002)(451199021)(2906002)(966005)(186003)(55016003)(8936002)(8676002)(9686003)(5660300002)(53546011)(26005)(6506007)(52536014)(478600001)(66446008)(76116006)(66946007)(66476007)(66556008)(4326008)(64756008)(86362001)(54906003)(38100700002)(38070700005)(110136005)(82960400001)(122000001)(83380400001)(7696005)(66574015)(316002)(41300700001)(71200400001)(33656002)(10090945012); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: /OhmS52xO78YQKnfCcSERjdb/u1t91Outf9/aovGT2fSZEpzN7MR5iU6zgkVsIaQBzbKeIzp2a0vCDbqiPeM6znGIFO2BkGb489OlNPOg4GiqglUim9daxq5FA/IAY3cWvlosGUmrCvfgHH6TIPLQt5c8dfBybdbgN7d6jNWhJcV1WAEPRYfqfmmBnjupDMd1+/BEPhtfOamXXwz5i3qWvBVXyqJJKAAl43+bsHZw/EPB8kPu7p8T/f0fSTDUDNw5xSDK25gjInMS3Jv0K4d+eg99hqTsspqp/PFXs88C0tsHIIbYtrAJevx2POz0T18Pnh1nd8M4dy3bPtavZpciSG2d/+eBMyEGlI6cmrS0anKSng6YCe3HLZvitZfsI1AS/zX632e2Qx6Mww1cphfSfjIQwnerdzOvSbGIDNJ1nAt8+qPQMhwk6ROkCK3KZ7fSfB0SXhM2ni7lhQgT3o4iQExe57LnOAlFawiwORlPscV01AgMGoMMdlH4uY/NqImcW9OpqaIsip1l3w6bh2L6BVysh9L3FDfPteIYmt1tPdccSmdZcZhgxaajpxn/QurhSgJZnYnZ76/AiOnLDw++14hocDKJumyBWCVDQRgYbDMvODfxLTZDX62IpNhCCDtOBTFUdrxiACYfxEDXt2Hbq5b5TdAQx0s05UcgrfMKFf79bHkiG6Nf9ggJ3R98xGHiuTX2v6ytNZa1riGqB8E3XFJMconkbHxjQnXLmWdmMr3LbKMh/Tspr5+9pU5UuIeK8YXc293tw4iVKJts6lJsVGPH72knFV4WtopJx8q2rqza7k4l+LstdqinjpB/tg6qV2n78PYPBOT2r052EPJnaflAp8nJ4Hnpq8U1ktimozrYDzSt9zmdkQV62Fs4bmOIIN8V1xDcebBsf5pcfhoyOxhsv9/8yqV/EM1KdUYDQDL4kcFXkmZl+oA9swHJKcutVCWCyRst5YOftqGFxOPeHiva3OnO86GY7udsifUOPrIuvgl85FiA0QtaWlGr9hcOqNAG08u1OzjyJeiBTMXpIU77/hmG1k1wlD6QUdrzNS/4rMJAgYYeK6DdQRHckGcxgKi18MyhQlTsFJG03tk/EF5pJqM69O3fETdv2ffdl9QxGBzfqz1BMMSzf2jVG6bRGDw8LrMFe40HB7We0vCXoIX2Pdnvj4aIenmOz+WQI9dN1MLYksxTPHUcvOxiN2l2AcXJGVvPElDUV4YBUj7oVp1lxgvQmRvi0tG/PnSERiSUH8BeBKC/UW/1QjCtOaHi774AYOZb5jWb1ZR7HnC9R7OmD1t8AU3dOscdRW657Vzbdgn5vD/ns/aNDgG+H+PvVBzGrWOUn42kDAUDdLiYuky5T5Nemyjzv7mD+QYCjURgX3ObW1ju0ZXipw+7w8ShXZfKwaCZLswxsdrLruhHmirrbEItgZQTlFr0FIXs9fSX8/wbD6tNvii5kdPGZUzZppHIkPxiwh0IxYgtqXq34Pdz9BG0/Vrzvl1Prs5HNdbXVQzFbOqyTVgdcmEOhG5T4p9fqN56Z63208BDvigqo3nAqrqnOx5zKWMKTetMWaXaSJIwBSvg1OGuXDSO5aj
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM0PR07MB5490.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e89224e9-c04b-4460-2833-08db5d33f4d7
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2023 15:23:13.5443 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: QFwIGu7JD3Krnp7YrnfziIAhAta0MFNGLV+ET6ZH8KKlGJCno97R7KGvEexn6Y2larRhN0NuGysqHKzG3LhfznVrHJGOZD4z1Qw3tOxv4G4=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR07MB8781
Archived-At: <https://mailarchive.ietf.org/arch/msg/ccamp/0TuVgR5h_fmvH0R8HcGcAq-PLRs>
Subject: Re: [CCAMP] Yangdoctors last call review of draft-ietf-ccamp-optical-impairment-topology-yang-12
X-BeenThere: ccamp@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 25 May 2023 15:23:27 -0000

Hi Michal,
Thanks a lot for your careful review and comments.

We have updated the model following your suggestion in most of the indicated points, where we do not follow suggestion we provided a comment on line .
You can find the YANG updated module and diff with the previous one at https://github.com/ietf-ccamp-wg/draft-ietf-ccamp-optical-impairment-topology-yang/pull/135

See in line  for comments marked [Belotti, Sergio-Italo Busi]

Thanks
Italo and Sergio

> -----Original Message-----
> From: Michal Vaško via Datatracker <noreply@ietf.org>
> Sent: Tuesday, April 4, 2023 11:58 AM
> To: yang-doctors@ietf.org
> Cc: ccamp@ietf.org; draft-ietf-ccamp-optical-impairment-topology-
> yang.all@ietf.org; last-call@ietf.org
> Subject: Yangdoctors last call review of draft-ietf-ccamp-optical-impairment-
> topology-yang-12
> 
> 
> CAUTION: This is an external email. Please be very careful when clicking links
> or opening attachments. See http://nok.it/ext for additional information.
> 
> 
> 
> Reviewer: Michal Vaško
> Review result: On the Right Track
> 
> The reviewed YANG module should describe the parameters it intends to
> describe but there are lots of formal shortcomings in YANG formatting and
> general consistency. To fix formatting, pyang tool can be used. Description
> texts should be full sentences. Data examples are not valid (even include a
> note that they need to be updated), use yanglint to validate them against the
> YANG module. Other than that, some specific improvements:
> 
> ## line 170: leaf out-voa
> - units dB seems redundant, it is part of the used type name
[Belotti, Sergio-Italo Busi] YES, it's true . We have already defined typedef power-in-db-or-null.

> 
> ## 326 - 379: grouping roadm-add-path
> ## 426 - 478: grouping roadm-drop-path
> - all the 5 leaves seems to match exactly those in the grouping roadm-
> express-path above so I would just put uses in this grouping
> 
[Belotti, Sergio-Italo Busi] we have created a new grouping roadm-common-path, and then put "uses" in the other different groupings (add, drop, express).


> ## 405, 571: leaf roadm-noise-figure
> - lots of the leaves are using types from l0-types
> - a local typedef can be defined (if no existing one can be used) that would
> prevent duplication of all the information and move type specifics out of the
> data nodes - alternatively a grouping with this leaf can be defined to avoid
> description duplication but that is up to you, seems unnecessary
> 
[Belotti, Sergio-Italo Busi] RFC9093-bis specifically hosting common structure for any L0 YANG modules. So, we followed your suggestion defining a new typedef decimal-5-digits-or-null and decimal-5-digits,  not local  but in RFC9093-bis like  for 2 digits.


> ## 631: leaf nominal-power-spectral-density
> - similar problem as the previous one except a grouping makes no sense, just
> a typedef
> 
[Belotti, Sergio-Italo Busi] ok , we have defined a typedef decimal-16-digits and then a typedef decimal-16-digits-or-null  in RFC9093-bis like for 2 digits, and 5 digits above.



> ## 287, 298, 635, 686:
> - union with an empty type is used a lot and selecting this type is usually
> explained but not in these cases
> 
[Belotti, Sergio-Italo Busi] The usage of “empty” type in the module is described on top of the module, in the description :… ” Within this module, if the value of a mandatory attribute is unknown, it MUST be reported using the empty type. If an optional attribute is applicable but its value is unknown, it MUST be reported using the empty type.”.


> ## 880: augment "/nw:networks/nw:network/nw:network-types/tet:te-
> topology"
> - adding an empty presence container, which does not make sense on its
> own unless other foreign augments are expected - following 2 augments add
> into this container, why not merge all 3 augments into one to prevent any
> confusion?
> 
[Belotti, Sergio-Italo Busi] This model is augmenting ietf- te-topology , that is also augmenting ietf-network. For this augmentation related to the type of network both are following the guideline in section 4.3 of RFC8345 that, among other things says: “….First, a new network type needs to be defined; this is done by defining a presence container that represents the new network type. The new network type is inserted, by means of augmentation, below the network-types container……”
So the augmentation with adding an empty presence container has its own meaning.
The other augmentation you mention have a different xpath , so they cannot be put together with the first augmentation. 


> ## 899: container otsi-information
> - including "information" in the identifier seems redundant
> 
 [Belotti, Sergio-Italo Busi] ok, any suggestion to avoid leaving just otsi as name of container? In the container there is for example the definition of otsi-group that it could represents more than 1 otsi , the idea of adding “information” at the end ot otsi name is to represent the fact the container contains any otsi related “information” e.g. otsi-group . Maybe “information” can be redundant but leaving otsi only does not add clarity.


> ## 1293, 1315, 1335, 1359, 1412, 1468: leaf roadm-path-impairments
> - all the leaves are "config false" when augments are applied but some have
> it specified explicitly some not -
>
 [Belotti, Sergio-Italo Busi] OK, we have aligned the code : 1315 and 1294 needed to be aligned with “config false”


 if the leafref path is changed to an absolute
> path, the leaf can be in a grouping and used at all the places
> 
 [Belotti, Sergio-Italo Busi]  see mail thread with YANG doctor https://mailarchive.ietf.org/arch/msg/yang-doctors/8EHiqGRcAxJkv2OtSLcU9a7i848/
The absolute path should anyway indicate network-id and node-id as keys for the network and node list. So you need again relative path inside. It is not viable to define a new grouping because the relative path is different in the different locations and as said before changing the relative path into an absolute path requires anyway adding relative paths to identify the network-id and the node-id.


> ## 1492 - 1509; 1524 - 1541; 1570 - 1579; 1614 - 1623:
> - both leaves add-path-impairments and drop-path-impairments use the
> same absolute path leafref so a single typedef can be defined (also used for
> the leafref in the leaf roadm-path-impairments above) - then both leaves can
> be put into a grouping and used at all 4 places
> 
 [Belotti, Sergio-Italo Busi] : as said above It is not viable to define a new grouping because the relative path is different in the different locations and as said before changing the relative path into an absolute path requires anyway adding relative paths to identify the network-id and the node-id.


> Regards,
> Michal
>