[yang-doctors] Identities vs Choice statement

Mahesh Jethanandani <mjethanandani@gmail.com> Tue, 26 September 2017 01:44 UTC

Return-Path: <mjethanandani@gmail.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 EECE9132F65 for <yang-doctors@ietfa.amsl.com>; Mon, 25 Sep 2017 18:44:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 l9sz9Mtolhc1 for <yang-doctors@ietfa.amsl.com>; Mon, 25 Sep 2017 18:44:20 -0700 (PDT)
Received: from mail-pg0-x22a.google.com (mail-pg0-x22a.google.com [IPv6:2607:f8b0:400e:c05::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 A878C132D18 for <yang-doctors@ietf.org>; Mon, 25 Sep 2017 18:44:20 -0700 (PDT)
Received: by mail-pg0-x22a.google.com with SMTP id b11so5055293pgn.12 for <yang-doctors@ietf.org>; Mon, 25 Sep 2017 18:44:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=2S2eTJCPBN0SZdOJpvLOavXKSd4CsOkThD7bca+ZvOg=; b=eCo/EE+YXzUZ0QxKj/VeafRnmsatOsYdwxSs5pcZv2bNhz1lq8cMd9AodWcbfvTywp xUnjnGuIqOv+Kr5c/U/R263gel/E8d2I+amUrG0GM1TKMYyZWHcN45kFyfFLkgmuR5u8 +CkNftuE0U7VzkBg4vuyKNbQVVeZiqXk48Q+AlV1ZFH9r0Py3hcyluldnwmvOmqWI1XN rmLng2OCpFiwYjmR+/e15ibj7ed8ceJEVqcjztprh/0DYTGBHMugR9ymDyR8rEWw0QxP sLxjW/nMu/63+yce0J46GqTai6ivH5ylmNzckMaVGsFAxEGDLfAmuHxxm9jGR+8rXJDp y43w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=2S2eTJCPBN0SZdOJpvLOavXKSd4CsOkThD7bca+ZvOg=; b=jnXPKY2XqAKUaFAjMuxLkaBalSTiMHsifeXzxfDPPLkDigDG6gPhV1UXzlUeSwlxnU fOqyENRIbel/wYeFp3e+3dvow/fyE8aDAv+FQPIYGOrQBlyCTpTYUdl1TYoqetBcoTHF HHsX1LAfbC/pfKMoW1Q7f7X0z/sNTzYMKIGvjdfvxf/M56MlomO+Y9shBTSaK0+WQfGZ f2pULfLISeb6cN2Y7OOSBRwbqmIimWInZZGKVuC3oICwfwnepBrA/lwbf4vxhdCMeeRk gwGh71ADih9hR/x3O99rHy4z6HL3Me+GstgBAZaDWLMaud/hLr9xPb5fhDE7ZIcEtN+h 1OBw==
X-Gm-Message-State: AHPjjUjAJnpmyDJvaS0YGUHahzHofKdcix/Nc5Ku5Aq5+6K/32pQSE8c IxfncqLh6+aNEYvHodpQcOyOnQwt
X-Google-Smtp-Source: AOwi7QBXkQkEdG/5eIZZbt2MYGRSXWMY1Dfj520uy/nd0Eri1QjBb0Ua53boUeL2tZp6QaXTJRrlJw==
X-Received: by 10.84.133.164 with SMTP id f33mr9169460plf.73.1506390260101; Mon, 25 Sep 2017 18:44:20 -0700 (PDT)
Received: from ?IPv6:2001:420:30d:1320:65b7:9fab:cfca:b3ab? ([2001:420:30d:1320:65b7:9fab:cfca:b3ab]) by smtp.gmail.com with ESMTPSA id 75sm13533050pfx.145.2017.09.25.18.44.19 for <yang-doctors@ietf.org> (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Sep 2017 18:44:19 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message-Id: <3B1FB6B8-C489-4A55-86CC-D61F63339A28@gmail.com>
Date: Mon, 25 Sep 2017 18:44:18 -0700
To: YANG Doctors <yang-doctors@ietf.org>
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/5fn9t4ZIjSy-ysghYTm24ukCVJE>
Subject: [yang-doctors] Identities vs Choice statement
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
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, 26 Sep 2017 01:44:22 -0000

What are the advantages/disadvantages of using identities vs choice statement?

Background info: There is no central authority on options that can be defined as part of the statement. While the model will define a set of options, extensibility is important. Also, assume that the options are mutually exclusive. The entity being defined is an action, which could be considered abstract, and is not of a particular type, but is scoped locally, and at least at this point does not need to be globally unique.

How would doctors model this?

Mahesh Jethanandani
mjethanandani@gmail.com