Re: [netmod] draft-ietf-softwire-yang-13
tom petch <ietfc@btconnect.com> Fri, 28 December 2018 11:35 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 3382D12950A for <netmod@ietfa.amsl.com>; Fri, 28 Dec 2018 03:35:39 -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 oGcaz5tlG_WY for <netmod@ietfa.amsl.com>; Fri, 28 Dec 2018 03:35:36 -0800 (PST)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40111.outbound.protection.outlook.com [40.107.4.111]) (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 73DC6130DBE for <netmod@ietf.org>; Fri, 28 Dec 2018 03:35:35 -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=YHMWwIBX+EFjL/J9F49oIJxvEZXfBW6UiI7yVZhrXek=; b=UNaM27UgjB6tP1c0J6PeVb5BpZY+Kx0jlG0RkW2hRdJx5yz+icEaOvJb6MZBPbcmrwyxik0jDD9aVzakQfD9kG+0fQ9KMPHnp8ZYVkygrOaCEPHrLKXn4Hu+KgKGPzfRNpKzKSybGmc1+rRm224vocIcy+KD3WJ0Ll1TsZ9xjcU=
Received: from AM0PR07MB5506.eurprd07.prod.outlook.com (20.178.23.17) by AM0PR07MB4946.eurprd07.prod.outlook.com (20.178.19.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1471.13; Fri, 28 Dec 2018 11:35:33 +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 11:35:33 +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 11:35:33 +0000
Message-ID: <00be01d49ea1$6a0f5520$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>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: LNXP265CA0001.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::13) 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; AM0PR07MB4946; 6:fDiNmiUFq2z3yJFiHjG+gwybq9IFvSJL8Vg7qUWqxQUPgMsYOFAipH9aS3yJv/TzciSOUXYiIFHUmaQTRRbiXMtCKe4VToNtz/zgxxVBrcctoF6kR/3eVGwkuZaKvBwZx2F5czvFsJbECRUQqYY3SW5uDkQHqz67ZlxqXxLxsT/a/fP3KXBJ9dS6jFPpRh3vDdIy+E3TVlJzmOfpjBH5DIal9rBxIokJwI4xDTywjiWiPO8QyP+0rmBYFYUHQZIUlFyy9rJAXcB/QeXaep2ZQz6eXJRniYFa/nQpVHZsMTReY5Af3o5CBsuNV3J1inTW/d3YGISzFJYapqDlyzVKX+PBB5C2AAK4v0bfoOSVPoqEUfQLgCeLJRdS1nO06/kyi6dn5OdqT189GMhagPqd1ZpOktt5YhYVYSiII0qj1bzwp9Y9FnkjuKuZSWob+YYgkldOy6g/Sa/CCxKUSVngCg==; 5:FXAhzap1FrXmOxovyjI6l1Yda3JVjH1mhSpEDT93gbLJ/I53u0+AfKYVzptBelBR0i4dc3fNguEgCaU+pWPvpp90H3nKBkh1KCQjKsiu7lEFPMyJA3BUw25AlSAWoI463A8Ly+KEtE8mHTZdu9WysQjKH3+aEtx6urBzQWqu2Xs=; 7:/0gqDz3etWh+GAoMTHVCmMHQu39oXbbzW+Ag5AnqVNsAZZPUnLtu4PLW/eg2f3E/sd4j/T7jf0VxJfTNpwrqylj8z8yDgDP/BugDfVliVbDi91GHAzbnIULv4I+bvyyYBgnt0+VPUV7d5HMSmSZ17g==
x-ms-office365-filtering-correlation-id: b315e4a3-18f0-408d-0f87-08d66cb893ee
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM0PR07MB4946;
x-ms-traffictypediagnostic: AM0PR07MB4946:
x-microsoft-antispam-prvs: <AM0PR07MB49466EE1AE3AC5DADDF07736A0B70@AM0PR07MB4946.eurprd07.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(3231475)(944501520)(52105112)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR07MB4946; BCL:0; PCL:0; RULEID:; SRVR:AM0PR07MB4946;
x-forefront-prvs: 09007040D4
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(396003)(136003)(376002)(39860400002)(346002)(51444003)(13464003)(199004)(189003)(8936002)(81156014)(5660300001)(86152003)(966005)(345774005)(81166006)(84392002)(71190400001)(71200400001)(6436002)(93886005)(229853002)(14454004)(6512007)(106356001)(478600001)(8676002)(44736005)(86362001)(68736007)(446003)(99286004)(105586002)(25786009)(9686003)(6306002)(186003)(114624004)(486006)(316002)(97736004)(256004)(476003)(14496001)(52116002)(7736002)(53936002)(6246003)(1556002)(3846002)(6116002)(4326008)(102836004)(6486002)(26005)(110136005)(66066001)(33896004)(76176011)(2906002)(305945005)(386003)(6506007); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR07MB4946; H:AM0PR07MB5506.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1;
received-spf: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: 2+5S/OYE+HkmgL6mcRAMS+GRk3aKYlEHRzINcwEzpDwv/OMg44LaeyNBWS5Cy37U3+vQ42m5nDTcIkbd6i5fvmb2PxzL5tnO7YVXc42VGB+oVEuheErfiWfuiYQK62zG26lErHP3ulUm70WICQMqpzFWh7BnWr4k7V71f7P2MEhqezy6+GTW/08gukZOQAvvK5S60UvO66BAD93QWTpavJEQpQoE7dVZyz49IIX4FDHkzKFB8FJytjRzkcSgr84Vk9SL8vQRW12szNgey9Ju6OfIvR+KILTAQFObrQik2AHSo+z2slREad/pwFSn4vOw
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <1A523E17310A6D4D882EF51A34F0AD5F@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: b315e4a3-18f0-408d-0f87-08d66cb893ee
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2018 11:35:33.3910 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4946
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/zaHaWkbSckK4_Sa7oDGn5vHt_fo>
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 11:35:39 -0000
----- Original Message ----- From: "Ladislav Lhotka" <lhotka@nic.cz> Sent: Friday, December 28, 2018 7:47 AM > tom petch <ietfc@btconnect.com> writes: > > > ----- Original Message ----- > > From: "Martin Bjorklund" mbj@tail-f.com > > Sent: Thursday, December 27, 2018 12:08 PM > > > >> tom petch <ietfc@btconnect.com> wrote: > >> > Martin > >> > > >> > The Acknowledgements for > >> > draft-ietf-softwire-yang-13 > >> > thank you for your work on this I-D (on the IESG Telechat for 10th > >> > January 2019) so can you tell me where my YANG is going wrong. > >> > > >> > The module has > >> > augment "/if:interfaces/if:interface" { > >> > when "derived-from(if:type, 'iana-tunnel-type:aplusp')"; > >> > and defines aplusp as a tunnel type in section 10. > >> > > >> > A suggestion I made last October was to have a base for the three > >> > protocols covered here - MAP-E, MAP-T, Lw406 - and then derive three > >> > separate entities therefrom for the three protocols; I can see no > >> > derivation. In which case, when is > >> > > >> > when "derived-from(if:type, 'iana-tunnel-type:aplusp')"; > >> > > >> > going to be true? > >> > >> Right; either they have to define derived identities as you suggested, > >> or this need to change to 'derived-from-or-self'. > > > > ... or drop the 'derived' altogether; if there is only 'aplusp', as at > > present, then I see no need for 'derived' and inserting one > > unnecessarily leaves scope for a future addition to be true when it is > > not wanted. I can see it either way. > > Do you mean writing something like > > when "if:type = 'iana-tunnel-type:aplusp'"; > > ? > > This is brittle and shouldn't be used because it is a plain string > equality test and the result depends (in XML representation) on the > prefix that is declared for the namespace URI of the iana-tunnel-type > module. > > It is true that derived-from/derived-from-or-self leaves scope for > future additions. However, if ever an identity is defined that > is derived from 'iana-tunnel-type:aplusp', then it IMO makes sense only > if the properties of the latter are inherited, so the "when" test > should still be true (and the augment applicable). Lada Thanks for that; I did indeed have the string equality test in mind, even though RFC8407 says otherwise. I think that all this is too complicated, for me if not for the authors of I-D coming out of the Routing Area - I-D such as this one have already have several makeovers, courtesy of such as Martin and I, and for this in its present form to be on the next IESG Telechat - well, par for the course. 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. 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? 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. 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 > >> > > > > _______________________________________________ > > netmod mailing list > > netmod@ietf.org > > https://www.ietf.org/mailman/listinfo/netmod > > -- > Ladislav Lhotka > Head, CZ.NIC Labs > PGP Key ID: 0xB8F92B08A9F76C67
- [netmod] Any implementation of ietf-snmp.yang RFC… Balázs Lengyel
- Re: [netmod] Any implementation of ietf-snmp.yang… Martin Bjorklund
- Re: [netmod] Any implementation of ietf-snmp.yang… Balázs Lengyel
- [netmod] draft-ietf-softwire-yang-13 tom petch
- Re: [netmod] draft-ietf-softwire-yang-13 Martin Bjorklund
- Re: [netmod] draft-ietf-softwire-yang-13 tom petch
- Re: [netmod] draft-ietf-softwire-yang-13 Ladislav Lhotka
- Re: [netmod] draft-ietf-softwire-yang-13 tom petch
- Re: [netmod] draft-ietf-softwire-yang-13 Ladislav Lhotka
- Re: [netmod] draft-ietf-softwire-yang-13 tom petch