Re: [netconf] YANG encoding in CBOR
Andy Bierman <andy@yumaworks.com> Thu, 28 March 2019 15:50 UTC
Return-Path: <andy@yumaworks.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4769E1203C7 for <netconf@ietfa.amsl.com>; Thu, 28 Mar 2019 08:50:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 TKZ5qzCuz-fB for <netconf@ietfa.amsl.com>; Thu, 28 Mar 2019 08:50:48 -0700 (PDT)
Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (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 A177D120298 for <netconf@ietf.org>; Thu, 28 Mar 2019 08:50:47 -0700 (PDT)
Received: by mail-lj1-x230.google.com with SMTP id y6so18072531ljd.12 for <netconf@ietf.org>; Thu, 28 Mar 2019 08:50:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VBi5/65t6qirOCDG0oQiS2Vlet1D9L3yon1BaCSU56s=; b=e3DYuFI6VeYHH2OSyfFI9NBL6btTZJwfy6uq998x/CyLUMOKJcp1TEDGNI8NI6bTkB SNdaWPIKlTzJFAllJs6tOqOl4CT5U2toC1aGep8jAQTUmPkcYJoKeCkmIv7Q12CX5jXZ 1eybxGYumQrcZ7kWRR4VerRH4qPWPeKBsHX4vrOlofRwn/zpO3krzd/YceNfUHcUpcaZ EQDedpeG9aYFJ6V97i9roDhoM+L9XnExLmCvZOLqVIRL5uVmDptwN+ea0hKtgb/KiMbL 616nFZrYxikCJHdXvdBLYDUCQ1BnXTtEp3Q09CUeA/rBKTjxZcxqKgZ6baJAkXk1XoZj oQrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VBi5/65t6qirOCDG0oQiS2Vlet1D9L3yon1BaCSU56s=; b=UbwXOVZhroj6IxpTXCLxfOGK84yEQ84z5bTIMBazTBNVDt4+aD4CADjpk8yigDjt/d umEujcQD9S7/b/lXT1SKBbUB6e48JdId8da+9khdxvl8GjwL8UeMF+iJOmi5PKE52sK8 ya4sfhygtWGZblmBx+dgRxUSZhTYK6M29np80MBYqckFzrk7rM3JHQvcGxog9fpzHwO1 IB5X1jpRDmQpMxT1T2okJj+b0PSrDCyy3yfWL1qQKsr2u6yRDzrWQMjXzQ0q878ariI7 k2mK2AQpPg+s7o8m0oZuN98rgKWkWQ5OH+4p5RX3UAAmDVXXcUW9l06dfXz5lQrfhXzm cPWg==
X-Gm-Message-State: APjAAAXUWoGLyaSG6aLeddnpfcSHJAgce3OjF/tQz859cIu0w/9dikXH 121a6XVXgA9PXc2oqWZCtmEh3z8lQl5gFUT0AlzvUQ==
X-Google-Smtp-Source: APXvYqz9ioTdszjv1p3sR6NiPNMOd8FocSqCh6twmMD75nfYaf6FfNORIEwCP7VyKKqwoU5dHPqXutogWDKcTMzv/oI=
X-Received: by 2002:a2e:9e4d:: with SMTP id g13mr10393892ljk.12.1553788245832; Thu, 28 Mar 2019 08:50:45 -0700 (PDT)
MIME-Version: 1.0
References: <6235c6683ff14848a661f8b8cec94280@XCH-RCD-007.cisco.com> <BL0PR06MB5042823429DB7CDA0F33408B9A430@BL0PR06MB5042.namprd06.prod.outlook.com> <588401AB-483E-40F5-95BB-20A066E56DAC@tzi.org> <15fbaf84b20343a1b83f40b571149a14@XCH-RCD-007.cisco.com> <1ADF8201-ABB4-44FD-A515-F3F8E0DBF5FC@tzi.org> <20190323101003.gp3zvsvqqwc26jip@anna.jacobs.jacobs-university.de> <871s2vqsxi.fsf@nic.cz> <BL0PR06MB5042C9AA6B4A0CCD913F50D89A580@BL0PR06MB5042.namprd06.prod.outlook.com> <20190327061637.g5a7t7nulk7kyh2v@anna.jacobs.jacobs-university.de> <BL0PR06MB5042C28B79FF95078C8A881F9A580@BL0PR06MB5042.namprd06.prod.outlook.com> <20190328113018.uzujjtc7a2ukhovl@anna.jacobs.jacobs-university.de> <4656560A-2135-4F51-B3E7-8DB31B43B17D@tzi.org> <BL0PR06MB5042C392E675385B2AB0148A9A590@BL0PR06MB5042.namprd06.prod.outlook.com>
In-Reply-To: <BL0PR06MB5042C392E675385B2AB0148A9A590@BL0PR06MB5042.namprd06.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 28 Mar 2019 08:50:34 -0700
Message-ID: <CABCOCHRvoUnWewVSzLJD7pT0LDC8xmqdqqrtNB=SRTEVgQRheA@mail.gmail.com>
To: Michel Veillette <Michel.Veillette@trilliant.com>
Cc: Carsten Bormann <cabo@tzi.org>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "core@ietf.org" <core@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000073086d058529847c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/7yC4Uox8aG5HWBtF1DquP3A9amM>
Subject: Re: [netconf] YANG encoding in CBOR
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Mar 2019 15:50:55 -0000
On Thu, Mar 28, 2019 at 7:06 AM Michel Veillette < Michel.Veillette@trilliant.com> wrote: > +1 for value outside, string inside union > > This is simple, but I was trying to support some very common types (like ip-address) that are unions of strings, and are desirable to send as binary instead of string representation. Andy My rational: > > - SID can have up to 8 bytes and will provide a marginal compression. > - Generating SID for all 'enumeration' and 'bits' in case they are used in > 'union' is lot of overhead to revolve a corner case. > - YANG also support the 'choice' statement ( > https://tools.ietf.org/html/rfc7950#section-4.2.7) which is similar to > the concept of type tagging within union. This construct can be used by > YANG modules specifically created for > embedded applications to take advantage of 'enumeration' encoded as > value and 'bits' encoded as bit. > > Michel > > > -----Original Message----- > From: Carsten Bormann <cabo@tzi.org> > Sent: Thursday, March 28, 2019 9:47 AM > To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> > Cc: Michel Veillette <Michel.Veillette@trilliant.com>; Ladislav Lhotka < > lhotka@nic.cz>; netconf@ietf.org; core@ietf.org > Subject: Re: [netconf] YANG encoding in CBOR > > So for enum/bits we are back to value outside, string inside union? > Can we use SIDs instead of the strings for the latter? > This can’t be much more complicated than assigning a SID to each string > that occurs in an enum/bits in a union. > > Grüße, Carsten > > _______________________________________________ > netconf mailing list > netconf@ietf.org > https://www.ietf.org/mailman/listinfo/netconf >
- Re: [netconf] YANG encoding in CBOR Ladislav Lhotka
- Re: [netconf] [core] YANG encoding in CBOR Ladislav Lhotka
- Re: [netconf] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] [core] YANG encoding in CBOR Andy Bierman
- [netconf] YANG encoding in CBOR Rob Wilton (rwilton)
- Re: [netconf] YANG encoding in CBOR Michel Veillette
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] [core] YANG encoding in CBOR Andy Bierman
- Re: [netconf] [core] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] YANG encoding in CBOR Rob Wilton (rwilton)
- Re: [netconf] YANG encoding in CBOR Rob Wilton (rwilton)
- Re: [netconf] YANG encoding in CBOR Michel Veillette
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] [core] YANG encoding in CBOR Andy Bierman
- Re: [netconf] [core] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] [core] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] [core] YANG encoding in CBOR Andy Bierman
- Re: [netconf] [core] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] [core] YANG encoding in CBOR ivaylo petrov
- Re: [netconf] [core] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] [core] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] YANG encoding in CBOR Ladislav Lhotka
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] YANG encoding in CBOR Ladislav Lhotka
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] YANG encoding in CBOR Ladislav Lhotka
- Re: [netconf] YANG encoding in CBOR Michel Veillette
- Re: [netconf] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] YANG encoding in CBOR Ladislav Lhotka
- Re: [netconf] YANG encoding in CBOR Michel Veillette
- Re: [netconf] YANG encoding in CBOR Michel Veillette
- Re: [netconf] [core] YANG encoding in CBOR Andy Bierman
- Re: [netconf] [core] YANG encoding in CBOR Ladislav Lhotka
- Re: [netconf] [core] YANG encoding in CBOR Andy Bierman
- Re: [netconf] YANG encoding in CBOR Carsten Bormann
- Re: [netconf] YANG encoding in CBOR Michel Veillette
- Re: [netconf] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] [core] YANG encoding in CBOR ivaylo petrov
- Re: [netconf] YANG encoding in CBOR Andy Bierman
- Re: [netconf] YANG encoding in CBOR Juergen Schoenwaelder
- Re: [netconf] YANG encoding in CBOR Andy Bierman
- Re: [netconf] YANG encoding in CBOR Michel Veillette