[yang-doctors] Advise
Mahesh Jethanandani <mjethanandani@gmail.com> Thu, 25 February 2021 23:32 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 D99F73A1128
for <yang-doctors@ietfa.amsl.com>; Thu, 25 Feb 2021 15:32:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001,
HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=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 Ym5waKGSN86O for <yang-doctors@ietfa.amsl.com>;
Thu, 25 Feb 2021 15:32:39 -0800 (PST)
Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com
[IPv6:2607:f8b0:4864:20::42b])
(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 42D6A3A1127
for <yang-doctors@ietf.org>; Thu, 25 Feb 2021 15:32:39 -0800 (PST)
Received: by mail-pf1-x42b.google.com with SMTP id e3so722300pfj.6
for <yang-doctors@ietf.org>; Thu, 25 Feb 2021 15:32:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:mime-version:subject:message-id:date:to;
bh=txmNR3cFmhfCEaWEbq5L2BwRg9PBCTYzSlSwGNjDjIQ=;
b=RhRxDE9nMaqdfyJvIqmLCUeNmUM3KsVYcwRgMscHmyf46JIPj5Z87D7kRDiSTCs7dv
MKWhQQL0D91EihetB6OaHz2afo319A9W0b+NsfxvdqO8GvrpUH3+0z0aNhmzPf+zWRRp
LJ9OUH3uIa4qI99bYv4Ty8YQImh0fYlqD/bfsWiU1em0vCybndh3zzJvhhNJhyWFSd3p
A6W51IkBi8Jt4whSZrQQsUFKx3ZkVxJuN7kko76MQgA3V4uJFxrdFy+Idvrs0KuQNORU
42MUJ0u+mHrLbFTxHYThZOP1uig8Z7KULFSkpPaJ3d0AkORz/3NcoQ/sc7DbovE5372z
fMog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:mime-version:subject:message-id:date:to;
bh=txmNR3cFmhfCEaWEbq5L2BwRg9PBCTYzSlSwGNjDjIQ=;
b=MeHelF6FyRwgA6H1YOieHy2nX+IIwaFB/NiMj9LM6c8FhzHnYHwGoGdYQMDIMJPjXi
wxVaw4VyIrRIDw2SFPE+8/IC/5PPsTs6M1GsAMu9KbL2NKwVaqcfEQ2wPhOy9lRdiNJc
K0tXm0ddsLxJyJ+rO3aHa7RLb3T0uRfoyPMhozmgUvG02NuE3cn/tofURt/i2r5RD554
+eOhOwFB3D0oDb0BKYdS0i0iZpfrThtU4pnj8Z6VPAbXSla/p8PBtak2z5potocURvhV
Ozy42tdJdojoU/BJ/AbPraW6JoNqOI7hP5DVbIObXwAgOA1nj9nraDLQ2VJqymNsrUjx
huAA==
X-Gm-Message-State: AOAM531QBpOF79AhDVZ+SK1IpsiblY+1GRn340mriOb3ZG5BTiSiY4Qv
yUdogwk2fUKcpeBxi9FdXjc2w/DNSt8gmA==
X-Google-Smtp-Source: ABdhPJzEQW1Fy9NuJkAqfVaxruGJfhZNSg9HpQowIc37FcD8B04UPn1kQ3VAQee4K6jNzyserRP4FA==
X-Received: by 2002:a63:4956:: with SMTP id y22mr269524pgk.309.1614295958462;
Thu, 25 Feb 2021 15:32:38 -0800 (PST)
Received: from ?IPv6:2601:647:5600:5020:618a:20f3:8ab5:41ca?
([2601:647:5600:5020:618a:20f3:8ab5:41ca])
by smtp.gmail.com with ESMTPSA id v12sm7007838pjr.28.2021.02.25.15.32.37
for <yang-doctors@ietf.org>
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Thu, 25 Feb 2021 15:32:38 -0800 (PST)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_EF15F5CD-EDDD-4A42-B049-92F140C3D868"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
Message-Id: <FFD5660B-5696-4713-A694-3B1B4E807E29@gmail.com>
Date: Thu, 25 Feb 2021 15:32:36 -0800
To: yang-doctors@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/-hhIux8lZpMnTSwRHGOipC-AbIU>
Subject: [yang-doctors] Advise
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: Thu, 25 Feb 2021 23:32:41 -0000
Hi Fellow YANG experts,
I am reviewing the YANG model being published as part of draft-ietf-ccamp-flexigrid-yang <https://datatracker.ietf.org/doc/html/draft-ietf-ccamp-flexigrid-yang-09#section-6> which is tightly tied to the YANG model in draft-ietf-ccamp-wson-yang draft, that Acee is reviewing.
I find the approach that this models and the approach other models have taken from the same WG as unusual, and I was wondering if there was any advise one could give on the design of the model. Maybe it is just me but when I see 80 augment statements in a model, something looks unusual.
The first thing that stood out for me was a presence container that was used to identify the type of topology the model supports, with nothing else in the container.
augment "/nw:networks/nw:network/nw:network-types"
+ "/tet:te-topology" {
description
"Augment network types to define flexi-grid topology type.";
container flexi-grid-topology {
presence
"Its presence identifies the flexi-grid topology type.";
description
"Introduce new network type for flexi-grid topology.";
}
}
That presence container is then used all over the model to support a ‘when’ statement:
when "/nw:networks/nw:network/nw:network-types"
+ "/tet:te-topology/tet-flexig:flexi-grid-topology" {
description
"Augmentation parameters apply only for networks with
flexi-grid topology type.";
}
Could a simple ’type’ node have achieved the same purpose? Or maybe a ‘feature’ statement??
The rest of the model is a set of 80 augment statement, each augmenting a particular node in the topology defined by the ietf-te-topology model to add a few nodes to that branch of the topology, most of that being one node.
augment /nw:networks/nw:network/nt:link/tet:te
/tet:information-source-entry/tet:label-restrictions
/tet:label-restriction/tet:label-end/tet:te-label
/tet:technology:
+--:(flexi-grid)
+--ro flexi-n? l0-types:flexi-n
Could this be better designed? As an operator, I would find configuration using this model to be very tedious. Not being an expert of Traffic Engineering (TE), I am not able to comment if this is how TE expects the configuration to happen, or if it this design that is flawed. Any advise?
Mahesh Jethanandani
mjethanandani@gmail.com
- [yang-doctors] Advise Mahesh Jethanandani
- Re: [yang-doctors] Advise Andy Bierman
- Re: [yang-doctors] Advise Mahesh Jethanandani