Re: [netmod] draft-ietf-softwire-yang-13

tom petch <ietfc@btconnect.com> Fri, 28 December 2018 15:38 UTC

Return-Path: <ietfc@btconnect.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 71937130DDA for <netmod@ietfa.amsl.com>; Fri, 28 Dec 2018 07:38:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.197
X-Spam-Level: ***
X-Spam-Status: No, score=3.197 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RATWARE_MS_HASH=2.148, RATWARE_OUTLOOK_NONAME=2.95, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.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 Sq4HPSYYTLFf for <netmod@ietfa.amsl.com>; Fri, 28 Dec 2018 07:38:01 -0800 (PST)
Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30118.outbound.protection.outlook.com [40.107.3.118]) (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 A938812D84C for <netmod@ietf.org>; Fri, 28 Dec 2018 07:38:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1Dat+YSNMWRX4NmuSJX8m1XnNjbUUFaNFJDQmgug/IA=; b=DE9MM9q7xz/ZMK2/qnEU9ScZbLeI9UDioej0vq7ChGLPL2T5Swy1EyvHIhPCcGi4eSTDLNKYjZED5PUmHcWwn0O7pdq+xvWmqHxtnCDouTLOOA6PljHpwoH0D7hNVkUgu0ZTQpn/SLaYCsRLAmbBU/2w+qlvQBxJJoZP0PqHiJ8=
Received: from AM0PR07MB5506.eurprd07.prod.outlook.com (20.178.23.17) by AM0PR07MB4513.eurprd07.prod.outlook.com (52.135.151.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1471.14; Fri, 28 Dec 2018 15:37:58 +0000
Received: from AM0PR07MB5506.eurprd07.prod.outlook.com ([fe80::4435:9a03:4e44:c258]) by AM0PR07MB5506.eurprd07.prod.outlook.com ([fe80::4435:9a03:4e44:c258%4]) with mapi id 15.20.1471.019; Fri, 28 Dec 2018 15:37:58 +0000
From: tom petch <ietfc@btconnect.com>
To: Ladislav Lhotka <lhotka@nic.cz>, Martin Bjorklund <mbj@tail-f.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] draft-ietf-softwire-yang-13
Thread-Index: AQHUnfWuzVXJFxSfFEa3jgnayWbDRg==
Date: Fri, 28 Dec 2018 15:37:58 +0000
Message-ID: <003701d49ec3$479bef40$4001a8c0@gateway.2wire.net>
References: <cd7412d5-3ad4-c9ff-a6f5-88348beed4dc@ericsson.com> <20181218.171018.1430858087061589506.mbj@tail-f.com> <01e801d49ba8$d6181320$4001a8c0@gateway.2wire.net> <20181227.130836.708030498710454309.mbj@tail-f.com> <003601d49df5$a7d094c0$4001a8c0@gateway.2wire.net> <87d0pm149u.fsf@nic.cz> <00be01d49ea1$6a0f5520$4001a8c0@gateway.2wire.net> <0687c7291fba3b69336cb7e4a12c640b49cb75ea.camel@nic.cz>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: LO2P265CA0303.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a5::27) To AM0PR07MB5506.eurprd07.prod.outlook.com (2603:10a6:208:103::17)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [86.139.215.184]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM0PR07MB4513; 6:Ho6w3J1onEKlqwJCFedysvm6KNN0ZDEMMAcOqyZ1I0nzQLkavcfzUs4TgisnMxJig3XClK0IdLUyvPFbuOLxeugkchqEAwglBK7+6R8CYj5+e/mwzOle4Xl13UhCk3p6o7iluSphg4dgKOMT3Rghh97tR7cfEQPTpI60vBQHSW/sGeOrfmECMRqhYqc3EV7NRiD2q41kiXVOfZ4jBwbtZeJJLxP0wPNoRxQfg+04W6BZULS+d3mgUjfxMwKHjId57GaFjsj57IDFzu2L/2MOaeJvz74MqQ9dDrgWLM3eB7hD/Z8bdVgHgCOrgjvGtAVo5T10YEl7Qc4o8citO/i3uqiszSKK2YWORHqUlbhpLX5n6oD9CWkTBe8HlONAm06PP8Mn66HmDlvD/gW5bDGWJySb75NczLmX1Ak06aEDdlIpduRmQoOieyvNRIKswXgN7bk5Jlz03sPNE1SrueX1Bw==; 5:kLbIwigxxiOH5BpggKBSd9K0aLh6FQu36KCcgULc0kND+UZHY7YuCzMv2vLzSutnNsjR7VwuB9xE46jMcDhCnTw4c1DVZXkpzaOhbQCGGJUj0n7skMjXpyQYDXq1TMNfaxafsz41vHCuU0kVqlSCkiZupV1taVCX/1nxm2dcpIE=; 7:p3rg/+T78DNdpXoIezMYnPUf3T1Kr9Tth9VzXosdsLztbKobUaO12md/WFCBr/ALrkeJ5J7rH4Zuh+6Pl/lU9aA9UbwxFvl63Cxc3g9gDeHfA3Ucnqx87tDI6duG4bfydpcZ0JD27FJY3fEeHRP1+Q==
x-ms-office365-filtering-correlation-id: caebfb77-e62a-4396-9142-08d66cda7166
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM0PR07MB4513;
x-ms-traffictypediagnostic: AM0PR07MB4513:
x-microsoft-antispam-prvs: <AM0PR07MB451339C585321DC7AB9F670AA0B70@AM0PR07MB4513.eurprd07.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(93006095)(93001095)(3231475)(944501520)(52105112)(10201501046)(3002001)(6055026)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR07MB4513; BCL:0; PCL:0; RULEID:; SRVR:AM0PR07MB4513;
x-forefront-prvs: 09007040D4
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(346002)(366004)(396003)(136003)(376002)(13464003)(189003)(199004)(9686003)(6512007)(97736004)(81166006)(256004)(4001150100001)(106356001)(6486002)(6436002)(446003)(53936002)(33896004)(8676002)(4326008)(105586002)(76176011)(93886005)(229853002)(8936002)(25786009)(84392002)(386003)(14496001)(44736005)(6506007)(1556002)(186003)(99286004)(102836004)(71190400001)(52116002)(114624004)(26005)(81156014)(478600001)(486006)(68736007)(476003)(5660300001)(6246003)(7736002)(66066001)(316002)(110136005)(305945005)(3846002)(71200400001)(86152003)(6116002)(2906002)(86362001)(14454004); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR07MB4513; H:AM0PR07MB5506.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:0;
received-spf: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: BSC4NrG8kE7U1PgdqRAFtevu3KkZtjU39jHuyLGg9KvGE+HkE25JYijENuDjDTO489fjrAWdIAdm4mc9gQOG+qQyo1+c2WU9uYIDNtcaaR5tG98L/M5Ppt1rVKG8KjYm6yaDjUZbjxFQT1HD8aQpx7hCBJCCvSZFVTwt/wH8XJz+kgjHcLngcR2wmumvWlbqKLqGH3dnwTmGtP8sI8iwVP5m1gf9Ua6S0jrDP1zdr1ETlT6X/PR/HL8LC4UEOPbFPVr/GsFl1EkgfitSIipYXTfrdwbZfE98Mxpjsw9ltduM55FQfitIAigHEEYe7MXs
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <A9F49959B3FC9742BA1AE27B0812273E@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: caebfb77-e62a-4396-9142-08d66cda7166
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2018 15:37:58.4404 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4513
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qDh7q7VCKJzhbb2z6sgrmpMzNCU>
Subject: Re: [netmod] draft-ietf-softwire-yang-13
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, 28 Dec 2018 15:38:03 -0000

----- Original Message -----
From: "Ladislav Lhotka" <lhotka@nic.cz>
Sent: Friday, December 28, 2018 1:03 PM

> On Fri, 2018-12-28 at 11:35 +0000, tom petch wrote:
> > ----- Original Message -----
> > From: "Ladislav Lhotka" <lhotka@nic.cz>
> > Sent: Friday, December 28, 2018 7:47 AM

<snip>

 On a different tack, I was looking at teas-types and seeing
> > uses path-objective-function_config
> > Hang on, is underscore valid? Yes, but why use it? RFC8407 suggests
do
> > not.
>
> Maybe the use of the underscore has some meaning? I personally woudn't
be so
> strict regarding naming conventions, as long as it makes sense to the
module
> authors and users. And as Randy Presuhn recently explained, there may
in fact be
> no practical difference between RFC 2119 terms MAY and SHOULD in cases
like
> this.
>
> > or
> >     type union {
> >         type string {  length 0; // empty string      }
> >         type string {  pattern ...
> > and thinking why?  With no length restriction on the pattern, what
does
> > the complexity of a YANG union add?
>
> It is either an empty string or a string matching the pattern. Of
course, it
> would be possible to make the pattern match an empty string.
>
> > or
> >   description  "Then index of the label restriction list entry."; }
> >     container label-start {
> >       must "not(../label-end/te-label/direction) or "
> >         + "not(te-label/direction) "
> >         + "or ../label-end/te-label/direction = te-label/direction"
{
> >         error-message "label-start and label-end must have the same
> > direction.";
> > where the error message tells me what is going on (not the
description)
> > but I wondered about the second 'not'  which I asssume is to cater
for
> >  "(te-label/direction) "
> > not having a value.  All they want is
> > 'start direction must = end direction'
> > but it seems you need to be a contortionist to get there.
>
> A simpler way to express this could be
>
>     must "not(../label-end/te-label/direction != te-label/direction)"
>
> The inequality test turns false if either of the terms doesn't exist.

Ah yes, thanks for that; I was missing the fact that non-existent terms
make the inequality false.

Tom Petch

> Lada
>
> >
> > I would appreciate any comment on this last - is there a simpler way
of
> > doing it?   After which, I shall return to lurking.
> >
> > Tom Petch
> >
> > > Lada
> > >
> > > > Tom Petch
> > > >
> > > > > /martin
> > > > >
> > > >
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
>