[yang-doctors] YANG QUIC-LB model

Martin Duke <martin.h.duke@gmail.com> Tue, 02 February 2021 01:45 UTC

Return-Path: <martin.h.duke@gmail.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 700033A1657 for <yang-doctors@ietfa.amsl.com>; Mon, 1 Feb 2021 17:45:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 bI15vXJ9MiXr for <yang-doctors@ietfa.amsl.com>; Mon, 1 Feb 2021 17:45:24 -0800 (PST)
Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (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 00B1E3A1654 for <yang-doctors@ietf.org>; Mon, 1 Feb 2021 17:45:23 -0800 (PST)
Received: by mail-il1-x134.google.com with SMTP id q9so17608351ilo.1 for <yang-doctors@ietf.org>; Mon, 01 Feb 2021 17:45:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ugtfjMWOkCKGGmOXCjTZ3ESFPnCkwx+6qZaE1c0w1I8=; b=NWS2CsIjVx3EmGan/xD2clfd4IyZ9nk46t74KEWIDl0cCTyWNZAJM1fvJzaUa9MSKu VcNZhM+Q4/Nl8QDdzXh4bQ80jAfi58vRyrGH+kYEJrjTJerJ3nSyeCeoByS5OlNXp79K 124ZsSVImfgnuqw4mg4YIpbo51hF1uKJbB9S/dB1bz35fSqabzdVPebJfnMkZPMKPWfC Dve8vRuy+HxVwUb5xvjVTRpz7yA0/wUXey2UHkf5UxyzbwbDeaBvb9cMAHNpFE2Lfaj0 NM2jQkGoxnDN/O7vHOq85yi+O1Rdgr4t7eKibjUGaVaX0nwigi1NQ5aLu1keE7oWYIuZ 9wkQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ugtfjMWOkCKGGmOXCjTZ3ESFPnCkwx+6qZaE1c0w1I8=; b=T9hroxsJF7K9HtZFw/a5QtncZ6KcAKbPSj9tEbVJ12gnl3vcd+SQTG19GRgdDiJyLf YJZIxZVzkV5T6avSqe1t/4nOWBQRdpVBuVCa3hqf0m/gG3EteZCO3uXpz9T3Bbacj9ow iI8ZPbLu3fDKcFYoNFw+vcFN4cSeaE2Ev9RS40+rvjr1IAFmayA7zHjAmknV6jV5FPS8 BVn1O/bABORVbdBQcAIQmfPLLU7lzw0KQfOsjdgkwrv92zHj7jre1oxwAzC6xDmEOyH4 mHBw95syhaKxM/FrVE4QBzCB1pdetTVnuUNvcv5PdhpIu3Z1/9wKUBJ7EoZXlfBTBuE8 vdeg==
X-Gm-Message-State: AOAM532XnxtoxyNAt3qSYd+7r0ilbzlpzVPsQt3lrYv5hAPfskHfI8Nm 4AIo/jBOKLuwaFn1xVdWs6Or+76/Z8R4BGzE/Ypm+mg5Co7wJw==
X-Google-Smtp-Source: ABdhPJxUa9goNFqsQZeS4txVF4CeJZpSGdORZgGRS8Dx8f+tz8F2QsW+R6dS04B6Xjoo9qqlkaZh0lqhtowOLIGCv/w=
X-Received: by 2002:a92:d146:: with SMTP id t6mr15090588ilg.272.1612230322899; Mon, 01 Feb 2021 17:45:22 -0800 (PST)
MIME-Version: 1.0
From: Martin Duke <martin.h.duke@gmail.com>
Date: Mon, 1 Feb 2021 17:45:16 -0800
Message-ID: <CAM4esxQasY3G6c6j73KLTOFssbNnowRnZxApzAH_yY1qiNBe4A@mail.gmail.com>
To: yang-doctors@ietf.org
Content-Type: multipart/alternative; boundary="000000000000b1531c05ba509f74"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/_ixtINf9mUlbRxV-sR5r_9PnA9o>
Subject: [yang-doctors] YANG QUIC-LB model
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2021 01:45:25 -0000

Hello yang-doctors,

I don't know that this rises to the level of a full review, but the QUIC-LB
draft (currently adopted by the QUIC WG) is basically a standard for
configuration of QUIC Load Balancers and servers to work together. After
much reluctance to take on a format I don't understand, I took a shot at a
YANG model:

https://github.com/quicwg/load-balancers/blob/yang/draft-ietf-quic-load-balancers.md

(The YANG stuff is in an appendix near the end -- search for #yang-model).

Before we talk about a full review where you labor to understand the data
items, I'd appreciate an informal quick sanity check that I am doing this
roughly correctly, as I have zero experience with YANG.

One other silly question: I have a field whose length depends on other
fields. Can you give me an example on how to express this correctly? e.g.

leaf foo-length {
    type uint8
}

leaf foo {
    type yang:hex-string {
        length foo-length;
    }
}

Thanks,
Martin