Re: [netmod] WG LC draft-ietf-netmod-module-tags-02 - 10/2/18 - 10/16/18
Martin Bjorklund <mbj@tail-f.com> Wed, 17 October 2018 10:42 UTC
Return-Path: <mbj@tail-f.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 0AD3A12DD85 for <netmod@ietfa.amsl.com>; Wed, 17 Oct 2018 03:42:30 -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, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 ncmGIqemvinG for <netmod@ietfa.amsl.com>; Wed, 17 Oct 2018 03:42:28 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id E0D4C128B14 for <netmod@ietf.org>; Wed, 17 Oct 2018 03:42:27 -0700 (PDT)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id D08581AE0399; Wed, 17 Oct 2018 12:42:26 +0200 (CEST)
Date: Wed, 17 Oct 2018 12:42:26 +0200
Message-Id: <20181017.124226.2219617093194292187.mbj@tail-f.com>
To: chopps@chopps.org
Cc: andy@yumaworks.com, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <C01FB31A-424B-4157-90F3-038671570D71@chopps.org>
References: <sa6zhvd7d32.fsf@chopps.org> <CABCOCHQmtL_-wHTKrL3SR=25eRhRe3z64ECoo7CzGk71N4E5tw@mail.gmail.com> <C01FB31A-424B-4157-90F3-038671570D71@chopps.org>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/fR_VMZ0trs_rkAGT1zdZmOMKtmM>
Subject: Re: [netmod] WG LC draft-ietf-netmod-module-tags-02 - 10/2/18 - 10/16/18
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: Wed, 17 Oct 2018 10:42:30 -0000
Christian Hopps <chopps@chopps.org> wrote: > > > > On Oct 16, 2018, at 7:39 PM, Andy Bierman <andy@yumaworks.com> wrote: > > > > > > > > On Tue, Oct 16, 2018 at 3:15 PM, Christian Hopps <chopps@chopps.org> wrote: > > > > Andy Bierman <andy@yumaworks.com> writes: > > > > This draft needs to define the module-tag encoding wrt/ > > - valid characters (e.g., some subset of UTF-8) > > - min/max length (e.g., implementation MUST support at least 64 chars > > and can support larger) > > > > I'm looking for suggestions on how to do this subset. We had intended to allow for as wide as possible content; however, I think disallowing tabs, newlines, carriage returns is more than reasonable. Has a type like this already been standardized or is there an example available somewhere? > > > > I suppose yang-identifier type is too restrictive so I will agree that restricting whitespace and colon chars > > is probably good enough > > > I'm going to use: > > typedef tag { > type string { > pattern '[a-zA-Z_][a-zA-Z0-9\-_]*:[\S ]+'; Ok. Note that the legal characters in "string" are different in YANG version 1 and 1.1, so this is a good reason (theoretical perhaps) to use 1.1. I do think that this module should be 1.1. A number of fixes were done in 1.1, and unless there are strong reasons not to use 1.1, you should use it. The string type is one example, and the effect on the size of <hello> in NETCONF is another. /martin > length "1..max"; > } > description > "A tag value is composed of a standard prefix followed > by any string value that does not include carriage return, > form-feed, newline or tab characters." > } > > I left in space -- lot's of people in the non-unix world use spaces. > > Thanks, > Chris. > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod >
- [netmod] WG LC draft-ietf-netmod-module-tags-02 -… joel jaeggli
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Juergen Schoenwaelder
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Alex Campbell
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Juergen Schoenwaelder
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Andy Bierman
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Andy Bierman
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Alex Campbell
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Andy Bierman
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Martin Bjorklund
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Martin Bjorklund
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Martin Bjorklund
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Alex Campbell
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] EXTERNAL: Re: WG LC draft-ietf-netmo… Alex Campbell
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Joel Jaeggli
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Christian Hopps
- Re: [netmod] WG LC draft-ietf-netmod-module-tags-… Joel Jaeggli
- Re: [netmod] EXTERNAL: Re: WG LC draft-ietf-netmo… Christian Hopps