Re: [babel] [patch] Info model: fix little inconsistencies in naming, use singular for objects.

"STARK, BARBARA H" <bs7652@att.com> Tue, 21 January 2020 21:26 UTC

Return-Path: <bs7652@att.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6CF581208FA for <babel@ietfa.amsl.com>; Tue, 21 Jan 2020 13:26:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-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 7YWdl_jjD0aV for <babel@ietfa.amsl.com>; Tue, 21 Jan 2020 13:26:28 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) (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 30FA01208AE for <babel@ietf.org>; Tue, 21 Jan 2020 13:26:28 -0800 (PST)
Received: from pps.filterd (m0083689.ppops.net [127.0.0.1]) by m0083689.ppops.net-00191d01. (8.16.0.42/8.16.0.42) with SMTP id 00LL6WBY007878; Tue, 21 Jan 2020 16:26:25 -0500
Received: from alpi154.enaf.aldc.att.com (sbcsmtp6.sbc.com [144.160.229.23]) by m0083689.ppops.net-00191d01. with ESMTP id 2xp78xtvnx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2020 16:26:25 -0500
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 00LLQO2O020390; Tue, 21 Jan 2020 16:26:25 -0500
Received: from zlp30487.vci.att.com (zlp30487.vci.att.com [135.47.91.176]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id 00LLQIwH020224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 21 Jan 2020 16:26:18 -0500
Received: from zlp30487.vci.att.com (zlp30487.vci.att.com [127.0.0.1]) by zlp30487.vci.att.com (Service) with ESMTP id 902D4400AE35; Tue, 21 Jan 2020 21:26:18 +0000 (GMT)
Received: from GAALPA1MSGHUBAB.ITServices.sbc.com (unknown [130.8.218.151]) by zlp30487.vci.att.com (Service) with ESMTPS id 74CFD400AE34; Tue, 21 Jan 2020 21:26:18 +0000 (GMT)
Received: from GAALPA1MSGUSRBF.ITServices.sbc.com ([169.254.5.85]) by GAALPA1MSGHUBAB.ITServices.sbc.com ([130.8.218.151]) with mapi id 14.03.0468.000; Tue, 21 Jan 2020 16:26:18 -0500
From: "STARK, BARBARA H" <bs7652@att.com>
To: 'Antonin Décimo' <antonin.decimo@gmail.com>, 'Mahesh Jethanandani' <mjethanandani@gmail.com>, "'babel@ietf.org'" <babel@ietf.org>
Thread-Topic: [babel] [patch] Info model: fix little inconsistencies in naming, use singular for objects.
Thread-Index: AQHV0JPjhrwDJEDQaUmtIxXf5gS+96f1nYcA
Date: Tue, 21 Jan 2020 21:26:17 +0000
Message-ID: <2D09D61DDFA73D4C884805CC7865E611537595E5@GAALPA1MSGUSRBF.ITServices.sbc.com>
References: <CAC=54BKONDYv44iY6kRPO9pADe=mE+naRDa2n027X8sng+ZKmw@mail.gmail.com>
In-Reply-To: <CAC=54BKONDYv44iY6kRPO9pADe=mE+naRDa2n027X8sng+ZKmw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.70.112.151]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-17_05:2020-01-16, 2020-01-17 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 clxscore=1015 impostorscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001210157
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/jHZXkVMwFePpToyVd954FeUuszU>
Subject: Re: [babel] [patch] Info model: fix little inconsistencies in naming, use singular for objects.
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Jan 2020 21:26:36 -0000

Hi Antonin,
I don't remember why I made them plural. I'm sure it was because I saw it done that way, somewhere. I try to avoid having original thoughts.
But I agree with you completely. In my BBF TR-181 data model, the object names are all singular, because that's the BBF convention.
Since it looks like we've got some other little changes coming in, it wouldn't bother me to make the object names all singular. But I don't know how Mahesh feels about this. I know the YANG model maintains the plural forms; but the list names would still be plural (only the -obj definitions would change to singular) -- so the YANG model wouldn't need to change. 
Barbara
 
> Hello Barbara, hello Mahesh,
> 
> While reading carefully the Information Model with all the recent discussions,
> I've found some small inconsistencies in the naming of objects which I've
> fixed in the patch below.
> 
> What bothered me more was that the name of object types was pluralized.
> I'm much more comfortable with singular, for instance I find it better to read
> "Definition of babel-route-obj" and then the composition of the object,
> rather than "Definition of
> babel-routes-obj": why was it pluralized?
> I also find it better to have the field (for instance) "babel-routes<0..*>;" be a
> set of objects of type "babel-route-obj".
> 
> -- Antonin
> 
> ---
>  draft-ietf-babel-information-model.md | 56 +++++++++++++--------------
>  1 file changed, 28 insertions(+), 28 deletions(-)
> 
> diff --git a/draft-ietf-babel-information-model.md
> b/draft-ietf-babel-information-model.md
> index ad2a64a..9b66f2d 100644
> --- a/draft-ietf-babel-information-model.md
> +++ b/draft-ietf-babel-information-model.md
> @@ -15,7 +15,7 @@ title: Babel Information Model
>  area: Routing
>  wg: Babel routing protocol
>  kw: Babel
> -date: 2019
> +date: 2020
>  author:
>  - ins: B. H. Stark
>    name: Barbara Stark
> @@ -332,10 +332,10 @@ model definitions in subsequent sections, the error
> is in this overview.
>        [boolean                  rw babel-stats-enable;]
>        [operation                   babel-stats-reset;]
>         babel-constants-obj      ro babel-constants;
> -       babel-interfaces-obj     ro babel-interfaces<0..*>;
> -       babel-routes-obj         ro babel-routes<0..*>;
> -      [babel-mac-key-sets-obj   rw babel-mac-key-sets<0..*>;]
> -      [babel-dtls-cert-sets-obj rw babel-dtls-cert-sets<0..*>;]
> +       babel-interface-obj      ro babel-interfaces<0..*>;
> +       babel-route-obj          ro babel-routes<0..*>;
> +      [babel-mac-key-set-obj    rw babel-mac-key-sets<0..*>;]
> +      [babel-dtls-cert-set-obj  rw babel-dtls-cert-sets<0..*>;]
>     } babel-information-obj;
>  ~~~~
>  {: artwork-align="left"}
> @@ -407,14 +407,14 @@ babel-routes:
>    node.
> 
>  babel-mac-key-sets:
> -: A babel-mac-key-sets-obj object. If this
> +: A set of babel-mac-key-set-obj objects. If this
>    object is implemented, it
>    provides access to parameters related to the MAC security mechanism.
>    An implementation MAY choose
>    to expose this object as read-only ("ro").
> 
>  babel-dtls-cert-sets:
> -: A babel-dtls-cert-sets-obj object. If this
> +: A set of babel-dtls-cert-set-obj objects. If this
>    object is implemented, it
>    provides access to parameters related to the DTLS security mechanism.
>    An implementation MAY choose
> @@ -446,7 +446,7 @@ babel-mcast-group:
>    to expose this parameter as read-only ("ro").
> 
> 
> -## Definition of babel-interfaces-obj
> +## Definition of babel-interface-obj
> 
> 
>  ~~~~
> @@ -468,8 +468,8 @@ babel-mcast-group:
>        [boolean              rw babel-packet-log-enable;]
>        [reference            ro babel-packet-log;]
>        [babel-if-stats-obj   ro babel-if-stats;]
> -       babel-neighbors-obj  ro babel-neighbors<0..*>;
> -   } babel-interfaces-obj;
> +       babel-neighbor-obj   ro babel-neighbors<0..*>;
> +   } babel-interface-obj;
>  ~~~~
>  {: artwork-align="left"}
> 
> @@ -594,7 +594,7 @@ babel-if-stats:
>  : Statistics collection object for this interface.
> 
>  babel-neighbors:
> -: A set of babel-neighbors-obj objects.
> +: A set of babel-neighbor-obj objects.
> 
> 
>  ## Definition of babel-if-stats-obj
> @@ -631,7 +631,7 @@ babel-received-packets:
>  : A count of the number of Babel packets received on this interface.
> 
> 
> -## Definition of babel-neighbors-obj
> +## Definition of babel-neighbor-obj
> 
>  ~~~~
>    object {
> @@ -645,7 +645,7 @@ babel-received-packets:
>        [uint                ro babel-ucast-hello-interval;]
>        [uint                ro babel-rxcost;]
>        [uint                ro babel-cost;]
> -   } babel-neighbors-obj;
> +   } babel-neighbor-obj;
>  ~~~~
>  {: artwork-align="left"}
> 
> @@ -727,7 +727,7 @@ babel-cost:
>    This is a 16-bit unsigned integer.
> 
> 
> -## Definition of babel-routes-obj
> +## Definition of babel-route-obj
> 
>  ~~~~
>    object {
> @@ -741,7 +741,7 @@ babel-cost:
>         ip-address           ro babel-route-next-hop;
>         boolean              ro babel-route-feasible;
>         boolean              ro babel-route-selected;
> -   } babel-routes-obj;
> +   } babel-route-obj;
>  ~~~~
>  {: artwork-align="left"}
> 
> @@ -808,13 +808,13 @@ babel-route-selected:
>    is being advertised).
> 
> 
> -## Definition of babel-mac-key-sets-obj
> +## Definition of babel-mac-key-set-obj
> 
>  ~~~~
>    object {
>         boolean               rw babel-mac-default-apply;
> -       babel-mac-keys-obj    rw babel-mac-keys<0..*>;
> -   } babel-mac-obj;
> +       babel-mac-key-obj     rw babel-mac-keys<0..*>;
> +   } babel-mac-key-set-obj;
>  ~~~~
>  {: artwork-align="left"}
> 
> @@ -831,9 +831,9 @@ babel-mac-default-apply:
>    to expose this parameter as read-only ("ro").
> 
>  babel-mac-keys:
> -: A set of babel-mac-keys-obj objects.
> +: A set of babel-mac-key-obj objects.
> 
> -## Definition of babel-mac-keys-obj
> +## Definition of babel-mac-key-obj
> 
>  ~~~~
>    object {
> @@ -843,7 +843,7 @@ babel-mac-keys:
>         binary                -- babel-mac-key-value;
>         string                rw babel-mac-key-algorithm;
>        [operation                babel-mac-key-test;]
> -   } babel-mac-keys-obj;
> +   } babel-mac-key-obj;
>  ~~~~
>  {: artwork-align="left"}
> 
> @@ -902,13 +902,13 @@ babel-mac-test:
>    as a binary string.
> 
> 
> -## Definition of babel-dtls-cert-sets-obj
> +## Definition of babel-dtls-cert-set-obj
> 
>  ~~~~
>    object {
>         boolean               rw babel-dtls-default-apply;
> -       babel-dtls-certs-obj  rw babel-dtls-certs<0..*>;
> -   } babel-dtls-obj;
> +       babel-dtls-cert-obj   rw babel-dtls-certs<0..*>;
> +   } babel-dtls-cert-set-obj;
>  ~~~~
>  {: artwork-align="left"}
> 
> @@ -924,14 +924,14 @@ babel-dtls-default-apply:
>    An implementation MAY choose
>    to expose this parameter as read-only ("ro").
> 
> -babel-dtls-certs:
> -: A set of babel-dtls-keys-obj objects. This contains both certificates
> +babel-dtls-cert:
> +: A set of babel-dtls-cert-obj objects. This contains both certificates
>    for this implementation to present for authentication, and to accept
>    from others. Certificates with a non-empty babel-cert-private-key can
>    be presented by this implementation for authentication.
> 
> 
> -## Definition of babel-dtls-certs-obj
> +## Definition of babel-dtls-cert-obj
> 
>  ~~~~
>    object {
> @@ -940,7 +940,7 @@ babel-dtls-certs:
>         string                rw babel-cert-type;
>         binary                -- babel-cert-private-key;
>        [operation                babel-cert-test;]
> -   } babel-dtls-certs-obj;
> +   } babel-dtls-cert-obj;
>  ~~~~
>  {: artwork-align="left"}
> 
> --
> 2.25.0