Re: [netconf] Added restconf-next for restructuring error messages
Andy Bierman <andy@yumaworks.com> Wed, 01 July 2020 23:05 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 31A593A0983
for <netconf@ietfa.amsl.com>; Wed, 1 Jul 2020 16:05:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01,
URIBL_BLOCKED=0.001] autolearn=ham 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 8GxAEh8wKcxW for <netconf@ietfa.amsl.com>;
Wed, 1 Jul 2020 16:05:12 -0700 (PDT)
Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com
[IPv6:2a00:1450:4864:20::133])
(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 5C6C03A095A
for <netconf@ietf.org>; Wed, 1 Jul 2020 16:05:12 -0700 (PDT)
Received: by mail-lf1-x133.google.com with SMTP id g2so14712001lfb.0
for <netconf@ietf.org>; Wed, 01 Jul 2020 16:05:12 -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=xbsxgR/bAzuXEyfmAOQL0UK4cOqjzoQDNYlIO6u9lLU=;
b=BIr99dfEQ9zuionter1ZJD0EFg3l4ydJSkUEh71VyQjYDUxjcOZILxOgDc3McCg5od
FXZ9YMKsgyrj0iunS3IFl/3pBku5PGMT33oTEet8Lz8AhpxEhqRitw/rS0OdVVTyRcs3
bmGRU9nNd4Jt0FXRvwBLYmQSf2RuBkwl8R20TOgqSizZ6/7wvi+3eMPYuSEq3nLe4ULr
2662Nml7aKGd09cfwc8MQLpfsqF0crdXNH0BqRptRbmd58YVrbGSgoDyQdG9xWsPMwv5
BQlzGjUHO2niz5edfwjNoZFauDYdjJTpw6EidVorDLJw7NqYe2Pk4xvO16sZB1SoBRUx
r4zQ==
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=xbsxgR/bAzuXEyfmAOQL0UK4cOqjzoQDNYlIO6u9lLU=;
b=BJYQoUVecouvAxjdZKf/XSbbq+ws0fWqWjuLesxaKKXrcg4T8W8tC1uc7mU1zuaokw
8gSYLt4fMJ+/xdu7D+0LaRgwa3kxUvCc5r2keppelk+LyZu8nZqaSBtQre7qnqWEkw5u
Og9xeNTpbIHtOJqcI/M7Z7B6Gb2UiPGcJqAE0FdYg0fSLX0htxxDiPM63U7x7/Kj8jKY
hcc8WjboO1J5BxiM2FE2Ew+iDwcBq8YngU4u8dEYJN+d1JUE+T6uYJChlWn8C2xoBj+f
PR6K8stI9cF41BhjopueGOMSTPMZpqRq4g1G6cWV6dH9oU6vxO+3MA6VTZ/MCpI1pCN+
oF+Q==
X-Gm-Message-State: AOAM532JjbhSeueC991an8tCytLw8D2uWRFud71VwYVd59vs/XPF0Ud5
dDoq9SVUu/Nn3Afa6p7eIx32v4SANBR8DXhQimE6fUqhi9o=
X-Google-Smtp-Source: ABdhPJx8tGKzeUvjDbDJBd2nRxS781tJSUoR5WOwNJ26dHmANIl3EgD4CxE4SzdAW5ChkbnsgFBaLHXXo0udoXFj1D4=
X-Received: by 2002:ac2:5e34:: with SMTP id o20mr16529125lfg.5.1593644710627;
Wed, 01 Jul 2020 16:05:10 -0700 (PDT)
MIME-Version: 1.0
References: <010001730ac58f90-0ce0fc67-2c25-403e-98c4-983d7007ea68-000000@email.amazonses.com>
<CABCOCHQqWADVDou+tXDOah_wTHR9RBMpwn1QKwbRAQ-EH0BRQg@mail.gmail.com>
<010001730b94bddd-e070a169-e418-46ec-b639-294fa7c5fbd2-000000@email.amazonses.com>
In-Reply-To: <010001730b94bddd-e070a169-e418-46ec-b639-294fa7c5fbd2-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 1 Jul 2020 16:04:59 -0700
Message-ID: <CABCOCHTW_FgQJmecKdf=v1TaJq6QscDQyDmW28f2L3RUrzQP9g@mail.gmail.com>
To: Kent Watsen <kent+ietf@watsen.net>
Cc: "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e0227105a96952a4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/VFswzPmPLJmTBsogszDy9x0-MgA>
Subject: Re: [netconf] Added restconf-next for restructuring error messages
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: Wed, 01 Jul 2020 23:05:14 -0000
On Wed, Jul 1, 2020 at 11:12 AM Kent Watsen <kent+ietf@watsen.net> wrote: > I was expecting this response ;) > > We could grandfather the current “errors” structure by, e.g., using a > “choice”... > > We don’t even have to wait for RC-next, as someone could submit a short > I-D for just this issue. We just need to define a way for the client to > signal to the server its preferences…likely the existing "Accept-Type” > header could be used. > > Seems like a lot of trouble to save about 8 bytes in the JSON response. Adding a request header (larger than 8 byes) actually increases the overall size of the operation. I prefer stability and consistency across XML and JSON encoding of the same protocol messages. K. > > Andy > > On Jul 1, 2020, at 12:41 PM, Andy Bierman <andy@yumaworks.com> wrote: > > Hi, > > I don't agree that any NBC changes are needed to RESTCONF, including this > one. > I agree servers usually send 1 error, but not always. E.g., the <validate> > operation > returns as many errors as it can find and does not stop on the first error. > It is not a burden to have an "errors" container so the protocol allows > for multiple errors > and is the same data model for XML and JSON. > > Andy > > > > On Wed, Jul 1, 2020 at 7:26 AM Kent Watsen <kent+ietf@watsen.net> wrote: > >> Folks, >> >> I just added this “restconf-next” issue for restructuring error messages: >> >> https://github.com/netconf-wg/restconf-next/issues/3 >> >> K. >> >> _______________________________________________ >> netconf mailing list >> netconf@ietf.org >> https://www.ietf.org/mailman/listinfo/netconf >> > >
- [netconf] Added restconf-next for restructuring e… Kent Watsen
- Re: [netconf] Added restconf-next for restructuri… Andy Bierman
- Re: [netconf] Added restconf-next for restructuri… Kent Watsen
- Re: [netconf] Added restconf-next for restructuri… Andy Bierman