Re: [yang-doctors] Mixed naming conventions

Andy Bierman <andy@yumaworks.com> Tue, 04 September 2018 18:29 UTC

Return-Path: <andy@yumaworks.com>
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 9FE8B130F53 for <yang-doctors@ietfa.amsl.com>; Tue, 4 Sep 2018 11:29:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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 (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 Rbup3LOrPfJl for <yang-doctors@ietfa.amsl.com>; Tue, 4 Sep 2018 11:29:16 -0700 (PDT)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 B4EF5130E47 for <yang-doctors@ietf.org>; Tue, 4 Sep 2018 11:29:15 -0700 (PDT)
Received: by mail-lj1-x22a.google.com with SMTP id u83-v6so3979110lje.12 for <yang-doctors@ietf.org>; Tue, 04 Sep 2018 11:29:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XGC4Q83xY4NzER3GiMhpw2t0n5iYTG2mW3aKVvViuHc=; b=yqNIv6Pecvi865XkMOer8N+q9Jh7nmYa9Cdsmsw4x68QOjL6QqVdl2eRUfgCQn0kM0 q0yR715CcC6P5PrbNoBfcGyiiNaLfC6Mdhcl0llJcBrXs6rkOP2CvF4tVRMY0BPPgA7T rGWZgqzKNIX5BCKBj5SBzNyEb/V8mJ5zSbDHCagMmGTpKqlzvO9P0Y/aBXmT9skj8QGW 5REgRiF1zfPdSnrtZbIOvLcM9zlBpJHBpKOoB2wL5yHO9XG3vZorXTxvzDLbfMyKK5Pb qVEYKwO3rbZdW1xa5IJ3AzKC539gxhUGm95hF6/v13c16kQz4MwJUfWmYoFTfwS9h7ZF UOrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XGC4Q83xY4NzER3GiMhpw2t0n5iYTG2mW3aKVvViuHc=; b=ChXtD/f3dkMvlohxsiPhK2S7dbGiwa7ltWKNvi4sZxfpj5CiOhiF3rgAZ2ydECOh3k JF32GvYoiTLKrHzi4U6ZkHVsnMmZOwQAi4hKGC0DSvfLXYIWZKdL+7UjjFNdOnhr2ya4 t3VQ/36FcFvveGcmXRz+uSLEZUX3T7zM8H2Vwe09kHlyLvw8UKQ2BjWHrRcnnegpUeYz JwJSgqbKyUdkpWL28vfQIE2xSevojbQb07Bsy3M9Xx7sZGqDZ2nksQyOULdqI93E4nVR 1bO3lAXhDGpshegK5OJ+X91ZSoKaBm6EkMIc9HVDFWvmXuMkpwMc+TzNZH08wrQ6YC35 dA8Q==
X-Gm-Message-State: APzg51CTgAIT49XSuc+iQ3xDQ31BlYRkQ08qW8lsqVcbZf7vIY5SfF6S nAYS8FWdsm+b6rgPmRS6xzoRtYyRTrWPessvYR7D9Q==
X-Google-Smtp-Source: ANB0VdZNIUmYVFhZTla2H4x9EC0MFLw/0pZQd3cnL1cWelS0cARom9nfsQBMilfcLbIi4AQJ1PynaEunPQ8POca2RBc=
X-Received: by 2002:a2e:58b:: with SMTP id 133-v6mr20591267ljf.28.1536085753759; Tue, 04 Sep 2018 11:29:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:5116:0:0:0:0:0 with HTTP; Tue, 4 Sep 2018 11:29:12 -0700 (PDT)
In-Reply-To: <20180904151813.j6yfdjzsteig2dxx@smtp.juniper.net>
References: <297d867e-0ac1-3c6e-8d72-17384282e7f2@ericsson.com> <E26D66D6-19DF-4DEC-A32D-B9513BDECAC5@cisco.com> <20180903200719.b5r2v5q3sskabdxn@smtp.juniper.net> <20180903.222119.1072617763156546549.mbj@tail-f.com> <20180904151813.j6yfdjzsteig2dxx@smtp.juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 04 Sep 2018 11:29:12 -0700
Message-ID: <CABCOCHTtVLScHS-8oT3HT34w-HYCL_0z1U-17hKR3AkrgxP4DA@mail.gmail.com>
To: Ebben Aries <exa@juniper.net>
Cc: Martin Bjorklund <mbj@tail-f.com>, YANG Doctors <yang-doctors@ietf.org>, Balazs Lengyel <balazs.lengyel@ericsson.com>, ronan.monahan@ericsson.com, rrahman=40cisco.com@dmarc.ietf.org
Content-Type: multipart/alternative; boundary="000000000000b2bf0805750fd51f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/1YWg9vghdV-cyOLFmdJAu58uK98>
Subject: Re: [yang-doctors] Mixed naming conventions
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
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, 04 Sep 2018 18:29:19 -0000

On Tue, Sep 4, 2018 at 8:18 AM, Ebben Aries <exa@juniper.net> wrote:

> On Sep 03 22:21 PM, Martin Bjorklund wrote:
> > Ebben Aries <exa@juniper.net> wrote:
> > > I've seen this in other SDO/initiative models quite frequently but also
> > > within published IETF models (such as RFC5277 w/ stopTime and
> startTime)
> >
> > 5277 is pre-YANG.  The YANG model for subscriptions uses start-time
> > and stop-time (in draft-ietf-netconf-subscribed-notifications).
> >
>
> While I don't believe there is an officially "published" module for
> 5277, the demand for support still comes up which I've seen result in
> modules built from 5277 specifications
>
> https://www.yangcatalog.org/yang-search/show_node.php?
> module=notifications&path=%2FncEvent%3Acreate-
> subscription&revision=2013-03-15
> https://github.com/YangModels/yang/blob/master/vendor/cisco/
> xr/651/notifications.yang#L56
>
> But I suppose that falls into it's own unique bucket and possibly not
> the best example atm
>

This module has been on Netconf Central for a long time:
http://www.netconfcentral.org/modulereport/notifications

IMO naming conventions are not very important, and rather subjective.
In this case, consistency with the origin document was considered more
important.

I have no problem parsing between some-term or some_term or someTerm.
Arguing which one is best is not useful.


Andy




>
> More frequent in other SDO produced models...
>
> > > As pointed out in the section below, this is a SHOULD but the mix and
> > > match that we've seen to date is not good for consistency sake
> >
> > I agree.  The 6087bis says that hyphens SHOULD be used but other
> > styles MAY be used when it is well-known.  In this case they should
> > probably stick to hyphens; people probably understand what
> > ipv4-local-address means.
> >
> >
> > /martin
> >
> >
> >
> > >
> > > On Sep 03 19:23 PM, Reshad Rahman (rrahman) wrote:
> > > > From https://urldefense.proofpoint.com/v2/url?u=https-3A__www.
> ietf.org_id_draft-2Dietf-2Dnetmod-2Drfc6087bis-2D20.txt&d=DwIGaQ&c=
> HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=GIehbDpQlo31lSi6WbnEkA&m=
> 83tXynvUuAMBssZZmAoIQxuQH3pn-H_0EgUp3Rgefjc&s=lbyLKxetx_
> jnpO5mrKxVyx6RzwpKwuyAs3W5xkQGWVY&e=
> > > >
> > > > 4.3.1.  Identifier Naming Conventions
> > > >
> > > >    Identifiers SHOULD follow a consistent naming pattern throughout
> the
> > > >    module.  Only lower-case letters, numbers, and dashes SHOULD be
> used
> > > >    in identifier names.  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.  YANG does not
> permit
> > > >    any other characters in YANG identifiers.
> > > >
> > > >
> > > > On 2018-09-03, 11:17 AM, "yang-doctors on behalf of Balazs Lengyel"
> <yang-doctors-bounces@ietf.org on behalf of balazs.lengyel@ericsson.com>
> wrote:
> > > >
> > > >     Hello,
> > > >
> > > >     I was looking at the YANG module
> > > >     https://urldefense.proofpoint.com/v2/url?u=https-3A__www.
> yangcatalog.org_yang-2Dsearch_module-5Fdetails.php-3Fmodule-
> 3Dietf-2Ddmm-2Dthreegpp&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-
> ndb3voDTXcWzoCI&r=GIehbDpQlo31lSi6WbnEkA&m=83tXynvUuAMBssZZmAoIQxuQH3pn-
> H_0EgUp3Rgefjc&s=efSXVx9kInJhf-c_Sa8vMApTKIHOCQnd9EAL_7CLuMQ&e=
> > > >
> > > >     I noticed that it is partly following the 3GPP naming style
> using
> > > >     camelCase instead of the usual dashed lowercase identifiers.
> They
> > > >     probably just lifted these names from the 3gpp specs.
> > > >
> > > >     Is this a good thing to do? Is this a preferred way?
> > > >
> > > >     regards Balazs
> > > >
> > > >     --
> > > >     Balazs Lengyel                       Ericsson Hungary Ltd.
> > > >     Senior Specialist
> > > >     Mobile: +36-70-330-7909              email:
> Balazs.Lengyel@ericsson.com
> > > >
> > > >     _______________________________________________
> > > >     yang-doctors mailing list
> > > >     yang-doctors@ietf.org
> > > >     https://urldefense.proofpoint.com/v2/url?u=https-3A__www.
> ietf.org_mailman_listinfo_yang-2Ddoctors&d=DwIGaQ&c=
> HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=GIehbDpQlo31lSi6WbnEkA&m=
> 83tXynvUuAMBssZZmAoIQxuQH3pn-H_0EgUp3Rgefjc&s=
> KGU0UtCj27gWFwopMi8gF1Qh7aQ7oQUuy1ADr2C-VBc&e=
> > > >
> > > >
> > > > _______________________________________________
> > > > yang-doctors mailing list
> > > > yang-doctors@ietf.org
> > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.
> ietf.org_mailman_listinfo_yang-2Ddoctors&d=DwIGaQ&c=
> HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=GIehbDpQlo31lSi6WbnEkA&m=
> 83tXynvUuAMBssZZmAoIQxuQH3pn-H_0EgUp3Rgefjc&s=
> KGU0UtCj27gWFwopMi8gF1Qh7aQ7oQUuy1ADr2C-VBc&e=
> > >
> > > _______________________________________________
> > > yang-doctors mailing list
> > > yang-doctors@ietf.org
> > > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.
> ietf.org_mailman_listinfo_yang-2Ddoctors&d=DwIGaQ&c=
> HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=GIehbDpQlo31lSi6WbnEkA&m=_-
> n1ntKPunZZ-UTyuLtVn5j8udeDj5_YNjIUYyD5BJo&s=eGJogG4vuWbqy54SPfwW6b6TaaI2P2
> I1cD4keT42Unk&e=
>
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>