Re: [yang-doctors] YANG dialects?

Ebben Aries <exa@arrcus.com> Thu, 19 December 2019 17:32 UTC

Return-Path: <exa@arrcus.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 DED661208F1 for <yang-doctors@ietfa.amsl.com>; Thu, 19 Dec 2019 09:32:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=netorgft1331857.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 Nn5nlk3qsuoR for <yang-doctors@ietfa.amsl.com>; Thu, 19 Dec 2019 09:32:22 -0800 (PST)
Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2054.outbound.protection.outlook.com [40.107.244.54]) (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 57E96120900 for <yang-doctors@ietf.org>; Thu, 19 Dec 2019 09:32:22 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ugp9lC90j8YrWRk/QmX+F2Nq1XK9zTFKn29Qbl6hjo1d/elZExuWKb9azLPD6vcqAtwJ+s3AGx/Zte4UQVKqbsZSKB+r0Pr2/H8WHn7Ui2ZU1gKW6PXpyNP0WSg3xs72mw3kGZe+chW0iIqv8qcLFS2jeJP8jvs6HNyoIkqlPXC8+fWCqOL7FULzZ70BYxZmPQAtVo0WmzCF8QQkgEIQuTaEmjRVl86RUzEFsNbFssJguSC1lTAFxxZDQol1roX/KFuySv6RjhJ/34bZy1ebeiKp7VwibN3USO8CR/p0nua8gJgQ1qWxaBe8kndt/GOEO1C+43yPNvxRF6n34N/psg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v7AiVQkCd9MTZafd21nEB8DXHfbJXC5RdQm4lrxL0hU=; b=iYmuDqXRGjmZ9GT+subDt+VdLUvke/BBevg7p1bPVSUREtIk4gT7Bq3fBHz+Rl7dpjcB7VluBeUG/jeM1asFV2eW1Y8+qh8z9OSbVNm2zakRWhEREKlqc1FPzxVx1iNurNucxUUOfvn4WvRimVssL2dsIBac6JfUFTHS/j8GD/zmtHuq2PhdFOIvOl4oOJxNpjmx/ykxY0m0EZFttoE64FwcHbbsfSC8PH6jFLMcSf1rPbWkAfxe4XBgol2BEPNFwxo7h9GgTJesp2Ja4wlsJrF0t0lNqZhIb9nyqAZF8UWS5addnK1MPjMOp6yujL2LzuhzZH36LW8M7sa/73hE6w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arrcus.com; dmarc=pass action=none header.from=arrcus.com; dkim=pass header.d=arrcus.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORGFT1331857.onmicrosoft.com; s=selector2-NETORGFT1331857-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v7AiVQkCd9MTZafd21nEB8DXHfbJXC5RdQm4lrxL0hU=; b=s41jUWYX5e/6oZ2rZx62+hWop6wMc0nDnkHNFg/Z7DojAC4ZKE01I/UNUdlt+R6XHnaOP6c91mmSWg5zrj075Pt/qKNSRDSX5qduJF6hShoT3uNF/8qnb9pfDmgO0tYMqpREAZNhQGLLaYZptWmKnna2oWs6vzS6Akm/2mFtSk0=
Received: from DM6PR18MB2602.namprd18.prod.outlook.com (20.179.71.89) by DM6PR18MB2475.namprd18.prod.outlook.com (20.179.104.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.13; Thu, 19 Dec 2019 17:32:20 +0000
Received: from DM6PR18MB2602.namprd18.prod.outlook.com ([fe80::dd68:42dd:4816:4680]) by DM6PR18MB2602.namprd18.prod.outlook.com ([fe80::dd68:42dd:4816:4680%3]) with mapi id 15.20.2559.016; Thu, 19 Dec 2019 17:32:20 +0000
Received: from localhost (2601:283:4600:80a0:363c:65c2:3b5f:a926) by CY4PR21CA0034.namprd21.prod.outlook.com (2603:10b6:903:12b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.3 via Frontend Transport; Thu, 19 Dec 2019 17:32:19 +0000
From: Ebben Aries <exa@arrcus.com>
To: =?iso-8859-1?Q?Sch=F6nw=E4lder=2C_J=FCrgen?= <J.Schoenwaelder@jacobs-university.de>
CC: Ladislav Lhotka <lhotka@nic.cz>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Thread-Topic: [yang-doctors] YANG dialects?
Thread-Index: AQHVtdlBiDrIDBw1+UiTBDP6K5hpMqfAYPEAgAAgvoCAAJk8AIAAkKwAgAAE3YCAAAhfAA==
Date: Thu, 19 Dec 2019 17:32:20 +0000
Message-ID: <20191219173218.ejnmwg7jmfge4wxv@localhost>
References: <CABCOCHTB+V6sV8hRcAC+OfseBBN=jUQnHQxzEVB_1drWhaEVXg@mail.gmail.com> <20191218.220130.545256750871048075.mbj@tail-f.com> <CABCOCHRfNrz+cNMA8ciRYGEM-7aR=S2NYJzU-t8JQ620Zs=hvQ@mail.gmail.com> <20191219.090708.1031388562992503497.mbj@tail-f.com> <3af2480448c6378906378d158f84ae10177172a2.camel@nic.cz> <20191219170220.dgu3lnwhbcnoaebr@anna.jacobs.jacobs-university.de>
In-Reply-To: <20191219170220.dgu3lnwhbcnoaebr@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: CY4PR21CA0034.namprd21.prod.outlook.com (2603:10b6:903:12b::20) To DM6PR18MB2602.namprd18.prod.outlook.com (2603:10b6:5:15d::25)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=exa@arrcus.com;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [2601:283:4600:80a0:363c:65c2:3b5f:a926]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0cc32865-3dd0-450b-b2e7-08d784a96662
x-ms-traffictypediagnostic: DM6PR18MB2475:
x-microsoft-antispam-prvs: <DM6PR18MB2475E50176E886EA2957403ECD520@DM6PR18MB2475.namprd18.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0256C18696
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(346002)(376002)(396003)(39830400003)(199004)(189003)(33716001)(5660300002)(186003)(86362001)(16526019)(66574012)(55016002)(66446008)(64756008)(66476007)(66946007)(66556008)(1076003)(71200400001)(6496006)(9576002)(8936002)(6666004)(6916009)(9686003)(966005)(2906002)(8676002)(81156014)(316002)(4326008)(508600001)(52116002)(81166006)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR18MB2475; H:DM6PR18MB2602.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: arrcus.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: oTXKWiVdnYwRvhMHx1jlX6/CpPnSPPFfGD0q8o9yH/9iXoR3iLIC/uboOH5dyJaE1p8p1FpcbpQEdl0fyV4hYb0RE4f6ozuLAUqPeUDkcVr1cql5PRqW1PWEjJOd4xzPO5Bzvc6zDtrphcXpNT3hiffmmbxaFNOE5HGAspZVbg4o3YD/BeysWFGNgYo7GwDAkKxS/P9HYg9IPVA8FIgpFq1xnz9px3btKqWojLESv+xTmKk790eYF6+Jsx1WpNhoHcZXzF2xdlLlXu4KWGZs8Y8NGgUaCrksEbBa3n0ZFGTPGe1q5qWS4u+O9eMGJkOCMt5Tb19j1YxL0ZqM55ASsB40LfQfbRamiIfCteA5tjjEiNMPZSmK8Ji2RB6YHVqw1MrwQsvFfDqgjkqxkyEN4QqQW6CBbmFpKmP43lGKPORzXj3xOtoWCYkwbHBHbrAob7PXjASoTMPF4GO7/C2BZ6n9Wuy4tSEyBE6rZHV801k=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <3AA2A0FB362ACF47B68F0BF609DEE828@namprd18.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: arrcus.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0cc32865-3dd0-450b-b2e7-08d784a96662
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2019 17:32:20.0916 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 697b3529-5c2b-40cf-a019-193eb78f6820
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 0ju9gIgFUpPJtfAOdLUT2snSfub74cDP3cJDl3lA+8KUabo4Mur4h6QMR8uda9p9
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2475
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/fcRmfasvyP4z_jr6Tqr1myqFZxc>
Subject: Re: [yang-doctors] YANG dialects?
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, 19 Dec 2019 17:32:26 -0000

On Dec 19 17:02 PM, Schönwälder, Jürgen wrote:
> On Thu, Dec 19, 2019 at 05:44:56PM +0100, Ladislav Lhotka wrote:
> > > 
> > > I think the solution is trivial, and it has been proposed to
> > > OpenConfig - introduce a new extension statement oc:posix-pattern.
> > > This will make the modules *legal*, and tools can use existing
> > > mechanisms to deal (or not) with this new statement.
> > 
> > I don't think it is legal, because
> > 
> > o  extension: An extension attaches non-YANG semantics to statements.
> > 
> > This is not the case here, it is only syntactically compatible. If tool A says
> > that some instance data is valid, but tool B says it isn't, then the standard is
> > gone.
> 
> Right now, things are even worse. If they were defining an extension
> and they would update their modules and tools to use it and they would
> fix the pattern in the pattern statements to comply to RFCs, things
> would be much better. But somehow I doubt any of this will happen
> since they could have done all this already years ago.

Unfortunately when the extension was introduced in OC, the current
intention is that it is only a top-level module extension used to
"signal" to the module consumer on how to interpret the existing pattern
statement.  This obviously does not suffice unless all tools understand
this extension to then diverge the spec.

This has been talked abt many times and still an issue.  In my
conversations, the intention here is however to revert all current
pattern statements to XSD compliant w/ a possible parallel statement for
the posix-pattern

https://github.com/openconfig/public/issues/271