Re: [netmod] WG LC draft-ietf-netmod-module-tags-02 - 10/2/18 - 10/16/18

Christian Hopps <chopps@chopps.org> Wed, 17 October 2018 09:49 UTC

Return-Path: <chopps@chopps.org>
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 0C5B512D4EB for <netmod@ietfa.amsl.com>; Wed, 17 Oct 2018 02:49:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 x1hYGDbPlTXs for <netmod@ietfa.amsl.com>; Wed, 17 Oct 2018 02:49:33 -0700 (PDT)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8F6A412D4EA for <netmod@ietf.org>; Wed, 17 Oct 2018 02:49:33 -0700 (PDT)
Received: from stubbs.int.chopps.org (47-50-69-38.static.klmz.mi.charter.com [47.50.69.38]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id 9906F6005A; Wed, 17 Oct 2018 09:49:32 +0000 (UTC)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Christian Hopps <chopps@chopps.org>
In-Reply-To: <CABCOCHQmtL_-wHTKrL3SR=25eRhRe3z64ECoo7CzGk71N4E5tw@mail.gmail.com>
Date: Wed, 17 Oct 2018 05:49:30 -0400
Cc: Christian Hopps <chopps@chopps.org>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, joel jaeggli <joelja@bogus.com>, NETMOD Working Group <netmod@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <C01FB31A-424B-4157-90F3-038671570D71@chopps.org>
References: <b45d1c39-c2f0-bcaf-61a4-9822ac04725a@bogus.com> <20181002203031.pcdclhq7vb5tohrj@anna.jacobs.jacobs-university.de> <57BCB4D8-D82F-43C9-8D05-2F52A174F37C@chopps.org> <20181016130829.3jnbnxyb5vjlogih@anna.jacobs.jacobs-university.de> <CABCOCHTZ6Vj+5WxmAXQLVCEQ3AP95RbYtvCqh0PtsuUdaANM8A@mail.gmail.com> <sa64ldl8ypz.fsf@chopps.org> <CABCOCHQNrdNhAqEx_KMToJw6kRHCWAP2e10cBTH8r_b-MZYSnQ@mail.gmail.com> <sa6zhvd7d32.fsf@chopps.org> <CABCOCHQmtL_-wHTKrL3SR=25eRhRe3z64ECoo7CzGk71N4E5tw@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/rE_nLAjWXLLlCgggXNVIBKMDlfM>
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 09:49:35 -0000


> 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 ]+';
      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.