Re: [netmod] CBOR tags for Common YANG Data Types (RFC6991/bis)

Michael Richardson <mcr+ietf@sandelman.ca> Wed, 17 August 2022 13:32 UTC

Return-Path: <mcr+ietf@sandelman.ca>
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 A97C4C1522B6; Wed, 17 Aug 2022 06:32:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.706
X-Spam-Level:
X-Spam-Status: No, score=-6.706 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=sandelman.ca
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iZMUyCYpPobb; Wed, 17 Aug 2022 06:32:41 -0700 (PDT)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 77C28C14CE46; Wed, 17 Aug 2022 06:32:41 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 7D93B18064; Wed, 17 Aug 2022 09:52:16 -0400 (EDT)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eR6ZzaMxijes; Wed, 17 Aug 2022 09:52:15 -0400 (EDT)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 524E618089; Wed, 17 Aug 2022 09:52:15 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1660744335; bh=TJciMHJFcr/7dpeI9LnR0L4OX+kA7Eo5aeThTxsKUaY=; h=From:To:Subject:In-Reply-To:References:Date:From; b=riCftY51mrSNhQ9U5pkdamwrXc+3PsHBRcVyiZX/KvIC29oQ0Ww5BPGgqLVV0cUQC LV6YMw0oUMLPVNiLSs1E4Ix3XE/0o4Ovha1dbBEZ+lmh1YD6m4u8WqsNXx121bTmh+ JL05VGz5YGBUF0LeXcEVktK4JuF0BXZq8qv70z08jB2Df21PhLNTlRqBisXDaNMP5S +lr8kfa6B8QIP7oCeIrW+i1ijuRSzVpWGeHvSwrgyAPidf0JYOyB1db8F8iFtWr3SV 0FsV5Lyg48kSzMeZ4elQz7f8qtOaW4WnS2CC0CeTE/w/wpwW7AYiPjpDIyrcinABy1 /oPvvTs3lKNEw==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 07A85213; Wed, 17 Aug 2022 09:32:39 -0400 (EDT)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Andy Bierman <andy@yumaworks.com>, cbor@ietf.org, NetMod WG <netmod@ietf.org>
In-Reply-To: <CABCOCHRoA8qw1KiBqooaR_0hB7p9cMp94tnuwwSfyXE7Jj_NHw@mail.gmail.com>
References: <686025.1659214422@dooku> <CABCOCHRoA8qw1KiBqooaR_0hB7p9cMp94tnuwwSfyXE7Jj_NHw@mail.gmail.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 27.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Date: Wed, 17 Aug 2022 09:32:39 -0400
Message-ID: <22455.1660743159@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/pnF1lIzZDqamK83BF4tBAiYXlVU>
Subject: Re: [netmod] CBOR tags for Common YANG Data Types (RFC6991/bis)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Wed, 17 Aug 2022 13:32:45 -0000

Andy Bierman <andy@yumaworks.com> wrote:
    >> 2) some kind of extension where when I *use* yang:ipv6-address that I
    >> say that it should be encoded in CBOR using tag <foo>.  Also specific
    >> to that document/module, but the YANG knows.  Russ speculated on the
    >> ways in which one could use the right yang extensions to do this
    >> without new syntax.

    > IMO (2) is the best approach - Extensions can be added inline or from a
    > different module using "deviate add" - could use 2 approaches: (1)
    > define a new type and (2) use an existing type + extension - Other
    > tools (like code generators and maybe SID file generator) can use the
    > extension

    > Something like:

    } leaf foo {
    }        type inet:ipv6-address;
    }        ext:cbor-type cbor:bin-ipv6-address;
    } }

    > Assumes that some module like ietf-cbor-types.yang is published with
    > appropriate replacement data types.

mcr> Is there some interest in doing this?
mcr> I guess the better question is, what are the objections?

andy> Strongly support.

I'm wondering also:

a) is there additional support from the core netmod crowd?

b) I watched the CBOR WG meeting and Carsten spoke about solving this
somehow.

c) I'm wondering where we do this work, and also when.




--
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
           Sandelman Software Works Inc, Ottawa and Worldwide