Re: [netmod] type equivalence

"Rob Wilton (rwilton)" <rwilton@cisco.com> Thu, 25 February 2021 17:10 UTC

Return-Path: <rwilton@cisco.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 5E1E13A1C87 for <netmod@ietfa.amsl.com>; Thu, 25 Feb 2021 09:10:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.598
X-Spam-Level:
X-Spam-Status: No, score=-9.598 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=AE4+gCxV; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=UkP+oAvV
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 gYLfqZBcYu3k for <netmod@ietfa.amsl.com>; Thu, 25 Feb 2021 09:10:25 -0800 (PST)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 19DB73A1873 for <netmod@ietf.org>; Thu, 25 Feb 2021 09:10:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5953; q=dns/txt; s=iport; t=1614273024; x=1615482624; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=hFuilqXfHLiN/9kll95ZV3SbOsL2kBBDGpR+qLqtUqM=; b=AE4+gCxVDv4XgAjaA5I7noVE7aZiXosToMU2Jg9RZWKMctaz6VJAmAyr W4naqP/zVoiIjRpVHKCxsvr9rvuVcoj+04Z5oEwvqtYwMLOXiUAM4MuqF rHoTSV8u4iUtsRQsUOl+QmtsoPaXfZ4XH8kk/rEs/R6yGWY3HzNqiVJ3d E=;
IronPort-PHdr: 9a23:TWUdiBAnv+Dq9kW2Ld7sUyQJPHJ1sqjoPgMT9pssgq5PdaLm5Zn5IUjD/qw01A2VA9uLrelJ2KLasKHlDGoH55vJ8HUPa4dFWBJNj8IK1xchD8iIBQyeTrbqYiU2Ed4EWApj+He2YhQLRpa4fFCB6nG35CQZTxP4Mwc9L+/pG4nU2sKw0e36+5DabwhSwjSnZrYnJxStpgKXvc4T0oY=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0D6CwC02Ddg/5BdJa1fAx4BAQsSDECDIlEHdlo2MQoBh34DhTmIYwOZIIJTA1QLAQEBDQEBHQ0IAgQBAYQJRAKBeAIlOBMCAwEBCwEBBQEBAQIBBgRxhWENhkQBAQEBAwEBPgEBLAsBCwICAgEIEAEEAQEBLhsMCx0IAgQBDQUIgmmCVQMvAQMLpVACiiV0gTSDBAEBBoFHQYMaGIISAwYFgTOCdopNJhyBQUKBEUOCVz6CXQEBAwGBXh8mgwOCK4FqYGQEU1s9RzmRC4w4nFIKgnyJP5MAo02UTos8kgmEVQIEAgQFAg4BAQaBayOBV3AVO4JpUBcCDY4fg28zhGGFRXM4AgYBCQEBAwl8iggBgQ4BAQ
X-IronPort-AV: E=Sophos;i="5.81,206,1610409600"; d="scan'208";a="840631563"
Received: from rcdn-core-8.cisco.com ([173.37.93.144]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 25 Feb 2021 17:10:23 +0000
Received: from mail.cisco.com (xbe-rcd-005.cisco.com [173.37.102.20]) by rcdn-core-8.cisco.com (8.15.2/8.15.2) with ESMTPS id 11PHANm5010244 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=OK); Thu, 25 Feb 2021 17:10:23 GMT
Received: from xfe-aln-003.cisco.com (173.37.135.123) by xbe-rcd-005.cisco.com (173.37.102.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 25 Feb 2021 11:10:23 -0600
Received: from xfe-aln-001.cisco.com (173.37.135.121) by xfe-aln-003.cisco.com (173.37.135.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 25 Feb 2021 11:10:22 -0600
Received: from NAM04-BN3-obe.outbound.protection.outlook.com (173.37.151.57) by xfe-aln-001.cisco.com (173.37.135.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3 via Frontend Transport; Thu, 25 Feb 2021 11:10:22 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S8iWCN0wdQlHZKsQD1fexmOY9qyFN6zHEFIcNXsonpGuqfnHPDX5dhalp3bM8FSe8IY8f6Sfj3ZGclKpckjnnOQDJti9JSqAFirLTiLUIbRz7CHuISU04Ims1YhwZgXC7p9DyjutUftfjDCLPSruUZvq6tTLau7OtoYLf1lxcgaJD9/EVj15SgVueoQNDB+x+YDOz6AJ6WOkwqiE2BMLOPeVmupz1zPl+KVE/nZCrwVQUaQPrll4aSLXLL3ZC+YtQwv9xYDeRzdeUcIVXLE2Tr4HEHbgJXiWFnkGA8DTXczlhhByZIXrYDj3lebG8wAXOHxoJt1bers79ybov8BTNw==
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=2P4D/Ku4AqacyPia0oYiVWllLk1T8CisBYrid8KOwsY=; b=LeB0MDGoyHcnXALX5eeRxGSL9iaFWQVJscOM86SO6TrbF0m9ERAthXe+Ew5ojl0tvEtSv5d8EhTG4fctTxhJAOMo3N9+r+dRf6WLv6QWlzf/B045n8IPgW3+BXYKGpAO9tsoXEY5BeIU/MeKd5eiVHImiE0NW+RJuQDs4J5l4cHUn8r2SWLWYkg0/8ugGieJbq8Kd/3gsrk/f/nD9o2IV6ofhokTh4N1zP13ig6bXV0WHY3KubbRk17gu1Fp2d9EMadJ5DJc02heqk1Ps435K+sg2714JuR/k3rreWUiDW54P8XKNQ0kq5GEuewkmv2v7Re1NiNWIulSPGQ8XiJqoQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2P4D/Ku4AqacyPia0oYiVWllLk1T8CisBYrid8KOwsY=; b=UkP+oAvVqljzZBw9Xmtf9UpfjCSce5h+j+RfTsEdMV8Yru4WdRxdj5Xqg8RioQ+H2CFfiPLA1ukAUjMZAJMTPM3y6jvdpqEmYbohDiEO/rgQOtTpwKpzhnQbWuoTweLW4dMv0nXKZKi/p+Jx/vcnYH1wFy/QMguXZ4Sz3n/DhfM=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by MN2PR11MB4111.namprd11.prod.outlook.com (2603:10b6:208:138::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.33; Thu, 25 Feb 2021 17:10:21 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::24c4:4c09:f6f0:5510]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::24c4:4c09:f6f0:5510%2]) with mapi id 15.20.3868.033; Thu, 25 Feb 2021 17:10:21 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Martin Björklund <mbj+ietf@4668.se>, "j.schoenwaelder@jacobs-university.de" <j.schoenwaelder@jacobs-university.de>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] type equivalence
Thread-Index: AQHXBuAq1qfCOH6jZk2wI7AlPAHCcKpfukcAgAAPWQCAADYYAIAD67GAgAAG5wCAAAVmgIAAAVWAgAUqs2A=
Date: Thu, 25 Feb 2021 17:10:21 +0000
Message-ID: <MN2PR11MB4366A13AD09AB4EC9CFD8DB7B59E9@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <20210222092455.qupjm2d4lpm4ay4n@anna.jacobs.jacobs-university.de> <20210222.104938.680142326480637892.id@4668.se> <20210222100857.ovetw7udo4ccbezx@anna.jacobs.jacobs-university.de> <20210222.111343.254950973345362316.id@4668.se>
In-Reply-To: <20210222.111343.254950973345362316.id@4668.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: 4668.se; dkim=none (message not signed) header.d=none;4668.se; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [82.12.233.180]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1a7d5b6f-6340-4801-1cbb-08d8d9b03c0f
x-ms-traffictypediagnostic: MN2PR11MB4111:
x-ms-exchange-minimumurldomainage: jacobs-university.de#0
x-microsoft-antispam-prvs: <MN2PR11MB4111931C8292FF4387D83589B59E9@MN2PR11MB4111.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: y/l7AIhAk6Qs7EZqsoVyAmDadqIbxg0aAfByKwJtOau2HdaDrOkC3Qp2kScwYCbU3fvYX0Jj7SprXJaU8NP+3Zo+WaVWxMNx0KGPjdkBekDb9ikhLZ5WGw7BP7Rm7ux2WC+zvYfSL6FzLOtrsVDRje1eEWS5H98FLiqyFgMZiLoGq2iJ3tte2bbiJX6YTLJ6ZPzntclSm9HfGTpq4mHOUBEnf5ihImY8YabcBhsw8vHcUI85/UJSf/ZGa8KdkI+EhEZJtW8v3+8AMT00qCzDhnJe4SEkWE0a8gqgA/ngOiEVBF66nMH9ENHiVCVf09e+S9Ba6r1QxBhsdxtWLDNoEuSmS5nu240x5Nq/bGicL+em5DaQgj0zUKDdpTI+B9eBIfHmWP6e5svy3UE3IwqlktJFnv14xAeYp9rZTaS+3k6e6u+YjLEJp2zcbk7N21l6FblqB4oEgqXWVCG8R9bgrN/WeY1h8yu3N1Fnw0sNuWASHa1E9wY6vGFzp3ifLWNIVc7KxNq2jtec1L4h3PMzIWgHd7vC3pPIzWMkDkDYHmPF/PYlmAZMLZv5JU/E84q1SiHdJ8yM+QyJCLgyTSKn47FWojyhi6hETrSnp3cc/YM=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(136003)(366004)(39860400002)(396003)(376002)(7696005)(66476007)(186003)(66946007)(316002)(76116006)(66556008)(110136005)(64756008)(66446008)(26005)(2906002)(53546011)(83380400001)(52536014)(5660300002)(8676002)(966005)(66574015)(8936002)(86362001)(55016002)(33656002)(4326008)(71200400001)(9686003)(478600001)(6506007); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: DLDccJ8SWYlrLjHNSslJgJ7w9avYtDbnN6t57TM7VtIZB7LKK6ChktfE6SnywQRZP3pLqoaRLReACZ/mt5/DXqoh+dhn6OGjRYo3DzYd0PnihCQeAJQS0r98HhZ/D+qE09ULbeX5VUsYFU2MZigm3YkSbYYVBc27ZEli/16W6OZna9OJV8bo+o67uOfh6vUW4n7E1AUYrB0Vno32WuxkHWC0FTf3TSDA2usE9oNv+KXI3DN4UYNdE0aCb8U0/v0SjOcBfT8cAphQRuWiultN+POw2IzP4yaQDgCKhU2GRsrLTDpqkcWmLs4zcVHfPdeFO/OCiAW63HSuYfYgyVYTAVFEwJMuCdFYL3KFEipfx/9SuwwWCGXCliEC5y2O6x/Y8jtpqJN6k751vutz/kh0xO2QARgtyb9iENT/lxgjU2c9GTaAUn+k6HqtuBTHJafUhWHsCRGMzttciTA2hJwRHIzlh+NxnFcjkX3VGc37HFEv08mMnKfqnlujQbddHWbdC12TO24eSGkJQa5m44X/O/jkfzRCjGGH3sKqQg/txwtfvPdEfMJX57/hlOMmRklJYRIh6Qj7Sd/mNzLpyaPJoudaG6bBsW/fZVzfseULShOMLc+MoJbwnn2Va3h9dDvXgwjky7LNAPcGlTysTBx5f28H4VLOEjzsRR3oRQ2AJaexbOsYChTZK4tNroBNn95gx1gaeU3L0SEGg0nphgnxsxQEytVvOpwlKombthuIoMVk+uk4bG4l8vjCDP7oS3yRcNdZ8Oj9xBiIWGwpRkQ6/Lwza81MiF8JA3scEtkXcG4d9TLld2FEKiChm+mlf5GPUiTWy0fqZrCzU4DrX7IoCmvmuvI4DFuulyVNdW5sdcRc30x3ivXMJMiUGQ/hjr9eRPWY12IvqhZli9w/XmOsU7rvF6pi4bQOi1LGpgCPdk2HzJWeebTkCjSkbFN0Fb5AANdPuHnmHV8a3rRwFewQJNhgH2xB1BWxSb6chrBVvu3LQ/7N2qYnWRIU4SvyHf7gQW34iFIoUwP4VbwZ85UqB1sDTRaIKAddk29SHZGWRbrZflZ7VevN7S9vIF+wivMHygmanP3QGKbsTfqQ35Ku5e3MUJVepxOkcclgaxwVh3PNR40VWz2A6THJoBv261bkBWIyZaizWaIKI2bo0RyNAzFqad0kj4ovQMbLiB8mbHQbC6G6LZFQspN02lGK5KxQJvkqaRgPyhGsiMIwXPytc1Fa/MIc/jpH6H88Yd2tk1H8sh0y19pt8PfLt33mUolmTA94OlAvSf/huD1/njgTeI9Nyf0uWq3z5WXeh4eU+dsc3h+2u+c7rMvJL/gvCD/D
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4366.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1a7d5b6f-6340-4801-1cbb-08d8d9b03c0f
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2021 17:10:21.7230 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ORhkXpaTwf36mi3VM2FCsAhzfE5m8bxObz9ZGO0l2/53vwvbMWCCxIMmo4tE7NDQFrSrR8129fWztHjfP1TOqA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4111
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.20, xbe-rcd-005.cisco.com
X-Outbound-Node: rcdn-core-8.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/OTwtohmURc81vIzc-MjFAEdJUjg>
Subject: Re: [netmod] type equivalence
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: Thu, 25 Feb 2021 17:10:27 -0000


> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Martin Björklund
> Sent: 22 February 2021 10:14
> To: j.schoenwaelder@jacobs-university.de
> Cc: netmod@ietf.org
> Subject: Re: [netmod] type equivalence
> 
> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> > Thanks Martin,
> >
> > so you are saying that
> >
> >   int8 { range "1..10"; }
> >
> > is indeed different from
> >
> >   uint8 { range "1..10"; }
> >
> > and
> >
> >   int32 { range "1..10"; }
> 
> Yes.
> 
> > The use of the word "syntax" in the text you quote may be a left-over
> > from SMIv2 times
> 
> [That's what I thought as well, but I couldn't find it in the SMIv2
> RFCs.  Perhaps it was from some sming text?]
> 
> > , it does not really seem to be aligned with how the
> > term 'syntax' is used elsewhere in RFC 7950. Anyway, if the agreement
> > back then was that you can't change base types (regardless of type
> > restrictions), it would have been nice if the text would say this more
> > clearly.
> 
> Agreed.
[RW] 

Since the YANG module versioning draft clarifies the BC/NBC rules, perhaps we could add text to clarify this in that draft?

I.e., perhaps something for section 3.1.3 of https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-module-versioning/

Regards,
Rob

// As a contributor.


> 
> 
> /martin
> 
> 
> 
> >
> > /js
> >
> > On Mon, Feb 22, 2021 at 10:49:38AM +0100, Martin Björklund wrote:
> > > Hi,
> > >
> > > Section 11 of RFC 7950 says:
> > >
> > >    o  A "type" statement may be replaced with another "type" statement
> > >       that does not change the syntax or semantics of the type.  For
> > >       example, an inline type definition may be replaced with a
> typedef,
> > >       but an int8 type cannot be replaced by an int16, since the
> syntax
> > >       would change.
> > >
> > > If we're just considering XML, then the syntax or encoding wouldn't
> > > change if we went from
> > >
> > >   type int64 { range "2..4"; }
> > >
> > > to
> > >
> > >   type string { pattern "2|3|4"; }
> > >
> > > or
> > >
> > >   type enumeration {
> > >     enum 2;
> > >     enum 3;
> > >     enum 4;
> > >   }
> > >
> > > or
> > >
> > >   type union {
> > >     type uint8 { range "2"; }
> > >     type string { pattern "3"; }
> > >     type enumeration { enum 4; }
> > >   }
> > >
> > >
> > > But I don't think this is reasonable, and not the intention.  I think
> > > that changing the base built-in type always should be considered
> > > non-backwards compatible (which the quoted text above seems to imply).
> > >
> > >
> > > /martin
> > >
> > >
> > >
> > >
> > > Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> > > > On Fri, Feb 19, 2021 at 10:32:34PM +0100, Carsten Bormann wrote:
> > > > >
> > > > >
> > > > > > On 2021-02-19, at 19:18, Juergen Schoenwaelder
> <j.schoenwaelder@jacobs-university.de> wrote:
> > > > > >
> > > > > > I think the CBOR encoding picks different tags depending on the
> > > > > > signedness of the base type and this is why things are not that
> simple
> > > > > > anymore.
> > > > >
> > > > > (This is not the CBOR encoding, but the COMI encoding of keys in
> URIs.)
> > > >
> > > > OK. The CBOR document indeed says:
> > > >
> > > > 6.1.  The unsigned integer Types
> > > >
> > > >    Leafs of type uint8, uint16, uint32 and uint64 MUST be encoded
> using
> > > >    a CBOR unsigned integer data item (major type 0).
> > > >
> > > > 6.2.  The integer Types
> > > >
> > > >    Leafs of type int8, int16, int32 and int64 MUST be encoded using
> > > >    either CBOR unsigned integer (major type 0) or CBOR negative
> integer
> > > >    (major type 1), depending on the actual value.
> > > >
> > > > This means the type 'int8 { range 0..10; }' leads to the same
> > > > encodings as the type 'uint8 { range 0..10; }'.
> > > >
> > > > > > For the XML and JSON encodings, all definitions lead to the
> > > > > > same on-the-wire representation, hence the difference is more an
> > > > > > implementation detail. I have no clue what the gnmi people do.
> The
> > > > > > more diverse encodings we add, the more complex things get.
> > > > >
> > > > > Well, if the equivalence expectation that I was trying to describe
> actually is ingrained, then whoever designs an encoding (COMI for its URI
> encoding included) needs to respect it.  That would be important to know.
> > > > >
> > > >
> > > > Exactly. I think we never defined this. And of course, this can get
> > > > even more fun if you consider string based encodings. The type
> > > >
> > > >    type string { pattern "1|2|3|4"; }
> > > >
> > > > yields the same _XML encoded_ value space as
> > > >
> > > >    type int32 { range "1..4"; }
> > > >
> > > > but as far as I recall the JSON/CBOR encodings will treat these two
> > > > differently. So yes, ideally the YANG language would have clear
> rules
> > > > what YANG's type equivalences are.
> > > >
> > > > /js
> > > >
> > > > --
> > > > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > > > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen |
> Germany
> > > > Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> > > >
> > > > _______________________________________________
> > > > netmod mailing list
> > > > netmod@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/netmod
> >
> > --
> > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod