Re: [netmod] [Editorial Errata Reported] RFC7950 (5642)

Balázs Lengyel <balazs.lengyel@ericsson.com> Fri, 22 February 2019 12:45 UTC

Return-Path: <balazs.lengyel@ericsson.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 99769129619 for <netmod@ietfa.amsl.com>; Fri, 22 Feb 2019 04:45:23 -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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=LrCAAXFu; dkim=pass (1024-bit key) header.d=ericsson.com header.b=anTX83C+
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 Cap6gitf1D_w for <netmod@ietfa.amsl.com>; Fri, 22 Feb 2019 04:45:21 -0800 (PST)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (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 6B8F4124BF6 for <netmod@ietf.org>; Fri, 22 Feb 2019 04:45:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1550839518; x=1553431518; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZIU8itmY5P5WUJPXXIzQsUL7ilj4+WXq9xAIrTeF4EY=; b=LrCAAXFuWjsPFV1qpwR+cEkuzAdC3u3dsC+WvO9B//N4wx5XGVp0dhMkRGRgFQeN sa6IiW+3DAnfmVEd4vdktCo87j55bS4syrWZUQLU3CLgfqHXVkew6maSHIRAixUq nUJARCJL0Qt3KZunQm8aNdr5Po0xLasFRMkqwx/YrHg=;
X-AuditID: c1b4fb3a-167ff7000000672c-76-5c6feedefbdf
Received: from ESESSMB503.ericsson.se (Unknown_Domain [153.88.183.121]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id 1B.2B.26412.EDEEF6C5; Fri, 22 Feb 2019 13:45:18 +0100 (CET)
Received: from ESESBMR502.ericsson.se (153.88.183.134) by ESESSMB503.ericsson.se (153.88.183.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 22 Feb 2019 13:45:18 +0100
Received: from ESESBMB505.ericsson.se (153.88.183.172) by ESESBMR502.ericsson.se (153.88.183.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 22 Feb 2019 13:45:18 +0100
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB505.ericsson.se (153.88.183.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Fri, 22 Feb 2019 13:45:18 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZIU8itmY5P5WUJPXXIzQsUL7ilj4+WXq9xAIrTeF4EY=; b=anTX83C+jfQ9LCopI1GqHzeXY77vQnjDnz+bZ/LAXa6Wr0j0d44IuOZzLg5v4AWIxdjGNqs8LdN4bTg5o+zIYjb+VNDkaNY4+wzMHvxU6NK5KaHVGBDrDaMB9Jmgn567xftGFaNsv4e6hLHMu7+HZQl9UoUNc0OSLiNXkjXhqFg=
Received: from AM0PR07MB3841.eurprd07.prod.outlook.com (52.134.82.16) by AM0PR07MB4626.eurprd07.prod.outlook.com (52.135.151.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.6; Fri, 22 Feb 2019 12:45:16 +0000
Received: from AM0PR07MB3841.eurprd07.prod.outlook.com ([fe80::e1db:cd5a:d70f:32bd]) by AM0PR07MB3841.eurprd07.prod.outlook.com ([fe80::e1db:cd5a:d70f:32bd%2]) with mapi id 15.20.1665.008; Fri, 22 Feb 2019 12:45:16 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: Andy Bierman <andy@yumaworks.com>, Martin Bjorklund <mbj@tail-f.com>, Ignas Bagdonas <ibagdona@gmail.com>, Peter Loborg <peter.loborg@ericsson.com>, Warren Kumari <warren@kumari.net>, NetMod WG <netmod@ietf.org>, RFC Editor <rfc-editor@rfc-editor.org>
Thread-Topic: [netmod] [Editorial Errata Reported] RFC7950 (5642)
Thread-Index: AQHUyp0hpy1TPbcsmEy9OTSaC70r9KXrqH8AgAAbLQA=
Date: Fri, 22 Feb 2019 12:45:16 +0000
Message-ID: <af04bd6a-9177-f9cf-9b6a-5779ecacf743@ericsson.com>
References: <20190221163919.5196EB81AF4@rfc-editor.org> <20190221.175336.1995849216024607593.mbj@tail-f.com> <CABCOCHQMAq-vzANerP3ehY1y9fiiQZKY_S4dEh0qfhO=7bS8hA@mail.gmail.com> <eaa99bfa-16ca-8164-0fdf-7a873ef26ee0@ericsson.com> <20190222110756.bsggrzyxjtft7heg@anna.jacobs.jacobs-university.de>
In-Reply-To: <20190222110756.bsggrzyxjtft7heg@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [89.135.192.225]
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1
x-clientproxiedby: HE1PR05CA0282.eurprd05.prod.outlook.com (2603:10a6:3:fc::34) To AM0PR07MB3841.eurprd07.prod.outlook.com (2603:10a6:208:45::16)
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: aec92b21-550b-4089-c729-08d698c39885
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(49563074)(7193020); SRVR:AM0PR07MB4626;
x-ms-traffictypediagnostic: AM0PR07MB4626:
x-microsoft-exchange-diagnostics: 1;AM0PR07MB4626;23:rXpUIFQWNy3M6WoWpaHyEvDcSOtwviXwkBFLudnpXOaYqLQVGrbObKK+dpgisNXuzMrQHu7GRhaRvmjsd2nQPUS/o3YjFNn4atZoSD9CPRrmuC37hgOB4NRSZkNrlPIBPPtH0es3hRmCz9Fkdqrhqls8Ekfvm9p1GDNRsI/5No4oPI9kd/2zKEaEoNWwDfFGbGIi801VJDAh75xY/SmQZILP+dMcYw9vysM1WLsHhHaWFLIbUqaao7lk0aZf1dhZDQiYU7qYh3RUnnjIJ3Oqn26waZQQxAoK96ZlvgKqm61uvubw0AwUrQ3AtqER7JDyEmJlqqB+rAoFu9TE3RXvhSQvHiS+Et/gq9R/hGNks3Vp4Ozkav/zv/Zx9desOGHDSuPf+eK7NIsg64zWDKldTD0MB88AwuK0xAQkN5IAn795U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626.eurprd07.prod.outlook.com>
x-forefront-prvs: 09565527D6
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(136003)(376002)(346002)(396003)(199004)(189003)(58126008)(66574012)(86362001)(81166006)(81156014)(31696002)(31686004)(85182001)(110136005)(186003)(5660300002)(64126003)(14454004)(316002)(6116002)(85202003)(229853002)(106356001)(3846002)(6486002)(66066001)(65956001)(65806001)(97736004)(256004)(6246003)(76176011)(54896002)(6436002)(105586002)(236005)(6512007)(476003)(446003)(6506007)(7736002)(386003)(11346002)(52116002)(71190400001)(71200400001)(36756003)(2616005)(53936002)(99936001)(6346003)(2906002)(68736007)(102836004)(478600001)(486006)(93886005)(8936002)(26005)(65826007)(25786009)(8676002)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR07MB4626; H:AM0PR07MB3841.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: cWqiVJtVH54D1w6ff8KgXBfhIMEIYiV/rGeInExE0jdwt9vzU+WfQxUgMLD1J7P038xXvdJYQosNl7furXnNTMu41RuuXul+YLA0E5V+TgxmSAMObe+7D9XqYQsasMYG4bNXl4fk9PAnf86bwgVrVQ1WIRUrY6J1yYTMkmgttxT8m8qdtWnFeGwIZ2JjF0BJ9tqTxidYmo7VO7TttTApQoRayofzc4JiBWVsD20i8B8HsagPNX+U4dVebJdhWG7+1dzsE7aWIZvBW0YDjDI8zX6c7gU6mtJyhZD4inKMPJm2YNjmq/xV8UmmuPW620jUR9cI3Px0pzAKSR9ZZY6Q9nj1m8H/mSIUl7Q6J/00hfBeHbuMkqnPoKA8g43E0p7pFyqMqRnTxy3ZDDmmC18e0YGNYt5MODg4ilkN6/1rBwY=
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms070701060407000105020800"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: aec92b21-550b-4089-c729-08d698c39885
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2019 12:45:16.6364 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4626
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA1WSe0hTURzHO/fe3TtXg9Oc+suyx8gQKzN7sB5YasX+KEqCqDBy5C1N3WTX IqVAxQe6xPVQdD10KkPULM3MKLSZvRE0w0yzNJdW4nqolWnZtlNR/32+5/M7v9/5wRHTsgzW Uxylied1GnWMgpUwBbuvJyx9adOG+Z9u8VH2Nhs55UhyJqPU6wc4ZWFbskiZ0jjGKu/ca6c2 sqobxh5OVVo6Tqm6Oyc5VVL6PZGq+nsJo0rNaWN2sHsl6yP4mKijvG5ZYLgkcsRiEMV92HSs 1TDKJqGWwCzkIga8EjLe9IiykEQsw80ImgfqKRK+ILhcPsX8DWbrbURCKQVVBZdYR2CwgYbO FyM0MacpqJts4Eh4jeDt+TzaMYbFmyDD1ujsLMdpFGRXlTmFK94I+txeJ8txELSnP2UJrwXr cCXnYAZ7Q42p33kuxRvggamHJROuUDD+pQE5hAveDubsqyIHI+wOXx9VUg6msQd0WQspsqwc +toes4Td4F3/TxFhBeS/73KyG94HV8/mOvcBnIvAZuumSdESaHlmRYS94Emh/jdvg1dnBhG5 0I+gvPfU766+oB+oZol45QrfOi4wRETDxW81HOE5kJfymDWgZcZ/Xmu036FxJoLUjz84o3Pv mfCwwMoYkdguFoE5TfF/vYMXg9k0RBNeB/nfLSzhBXBW38cRXgVDdz8hwivAXPWDLUKScuQm 8IIQeyggwI/XRR0QBK3GT8PH1yD7l7TUTqytR5bBoCaExUgxQ7r5uTZMJlIfFRJim9BCe5/X VypakSej0Wp4hVw6bdCupRHqhERep92vOxLDC01otphReEgnZTPDZPiQOp6P5vk4XvfHUmIX zySUeWJnUbFJZQjGo6urfOe5HS/piJtfFF0ReTDkXHtec58lduI40x8qNGb47plSjHUG58wK rw3J9j55c3zLxdDq4M0bSor99D7XVPKtc/J+anhXz/qe1jTT2+IVH/P9K4fL5gXfSgxJN8x1 t9Xx4/dnH941PfwlE7TG6+Tqz0nJmZXdCkaIVC/3pXWC+hc1nQQQmgMAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/OfK_F4mf3hUic7EIRzfzMmg5MSk>
Subject: Re: [netmod] [Editorial Errata Reported] RFC7950 (5642)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Feb 2019 12:45:24 -0000

I am not asking for a change, but ...

IMHO it would be better if YANG would not allow whitespace in enum names.
It is a rarely needed freedom that degrades usability and can lead to mistakes
and higher tool development costs. So it is bad for both people and tools.

  • It is misleading, as a human user can mistakenly think that "this is legal" is actually 3 separate values
  • Some tools tend to consider spaces as separators
  • When creating code from YANG this needs special handling

regards Balazs

On 2019. 02. 22. 12:07, Juergen Schoenwaelder wrote:
On Fri, Feb 22, 2019 at 10:55:31AM +0000, Balázs Lengyel wrote:
Do people really use enum names with whitespace within?
I always had the feeling that the name of the enum is like an identifier, so
it should follow maybe not the exact same but at least similar rules.

When such an enum name is translated into a programing language AFAIK the
translation needs to replace the spaces with something.
Not just spaces. Tool implementors will have to address this and what
needs special handling varies from target language to target language
(some target languages or implementations of target languages also
have interesting length contraints).

I think it is fine if BCPs like RFC 8407 provide guidelines that
people should avoid characters that are likely to be problematic but
the YANG specification is relatively clear that YANG itself puts
little constraints on such names (and hence tool makers in charge
to handle this).

/js

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
Senior Specialist
Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com