Re: [netconf] A case for vendors to move to RESTCONF?

Andy Bierman <andy@yumaworks.com> Tue, 23 April 2024 00:18 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 21266C14F5F4 for <netconf@ietfa.amsl.com>; Mon, 22 Apr 2024 17:18:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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=pass (2048-bit key) header.d=yumaworks.com
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 cec-TMXKluTh for <netconf@ietfa.amsl.com>; Mon, 22 Apr 2024 17:18:10 -0700 (PDT)
Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 1563AC14F71C for <netconf@ietf.org>; Mon, 22 Apr 2024 17:18:09 -0700 (PDT)
Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6ed20fb620fso4213897b3a.2 for <netconf@ietf.org>; Mon, 22 Apr 2024 17:18:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1713831489; x=1714436289; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qZIzXOTLfkTPPHnqwqsNbSWFIOJ2BxIptMCosmZQs9s=; b=D3gXgbaG/Fu6tA95FH2/GiGhcqoFzFJiB7jlbBIbnzqZ0al6JliqY/RszFcAM5a3aQ rcUx0A6KD8XeX5aRYknAHRrx3K12GTBfewlv2Vp5tjrNoVV9jLF/6/y9EvajLr4ofCDf 4RalKgI1T6MppEovR3G/MaVHOZZk+zvwbSMTzwJD6mOK/dsgcYLH8prZROfch2BV+LkL H8lRisaHuobeZNHwIZyFK90cIXY5qbul8Nw+JFJNKjP7UCO+xYcayBAcuGuyL+y+aUAS awKAtCRBcDKcpMdZUdQh295nmlK5sgTXQUbXukHz7IkFQDIUaiO/n6pCSXujE/HHiHy8 e8dA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713831489; x=1714436289; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qZIzXOTLfkTPPHnqwqsNbSWFIOJ2BxIptMCosmZQs9s=; b=FP3L1ouIrz4JTGs6yOZ+SYSKSzXsgygzvPxxLWNK95yPwjX/j1xhn1sOLhBnKfzDHd k6Pgt1HbC8ICmlYRIo9FlWshxF7C1NK6+jQZHGzaqajBqEujeaan29JFDXdAnes153HM KH8s6pAbay48kADVdA1ocJzTaRMDD6Fl14o0JZqo8z8sARMI1hGjI9nB9xS1GOgQkpOD RYKTFur0GrcoflIOazLJcNbOPaubV1dDo/ko4AFMDNBrbFP6mLOKEaEP0hGNzsf/ASWa ztT14mV5lYQegJNCF7QX12dLbszHSXL4HzIZyR0VaBDGJzXde9wVLbeW05ctLWfV1fK/ JQcQ==
X-Gm-Message-State: AOJu0YytdEmoA/R/PFFY3FcUJF0UCvrDxuodC4/kQIOtQ8XI28AEDkf3 Ta/X73pKvFqyExD2RQdEABfTKLcBx+/bW6cR+W6fu4XU5iONTWWlKugzya0HbUrY9ea8OQxABnC S0kdzURQASQTWGq/9P0O7EsIvOVvMLe4KdCSAEQ==
X-Google-Smtp-Source: AGHT+IEYZuLK28yEu9bNSxgcDsR7DLida7sLQBiHGlVvFHuDLQbNCpWrzIHpc4wSequpAYVO25j14pgBf5WW9Dgs98c=
X-Received: by 2002:a05:6a00:3995:b0:6ee:1d03:77b9 with SMTP id fi21-20020a056a00399500b006ee1d0377b9mr12349074pfb.31.1713831489212; Mon, 22 Apr 2024 17:18:09 -0700 (PDT)
MIME-Version: 1.0
References: <0100018f06bdefc1-585475aa-dc43-4dc2-ac7c-a35b08a070d5-000000@email.amazonses.com> <CABCOCHRYPFtz0vC4Ff+YTrfdi1deXrPHsbqM3dh94rW35OcTUg@mail.gmail.com> <0100018f07e84354-89b21afc-f030-4ddd-ba92-140cd29bdaeb-000000@email.amazonses.com>
In-Reply-To: <0100018f07e84354-89b21afc-f030-4ddd-ba92-140cd29bdaeb-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 22 Apr 2024 17:17:57 -0700
Message-ID: <CABCOCHQ26kzL9PtLAyhqKoKMMpKrsDO43d2syOPdngUsAcKaRQ@mail.gmail.com>
To: Kent Watsen <kent+ietf@watsen.net>
Cc: "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000001eb9370616b87d52"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/gK5-uh2FeAHiBRIZcZOTdeC6vH0>
Subject: Re: [netconf] A case for vendors to move to RESTCONF?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 23 Apr 2024 00:18:14 -0000

On Mon, Apr 22, 2024 at 3:23 PM Kent Watsen <kent+ietf@watsen.net> wrote:

>
> Very interesting talk.
> I do not agree that YANG was a mistake, but no argument about the scarcity
> of tools.
> Network Tool Automation is complicated and high-level operations are
> complicated.
> It will probably never be as general-purpose as gRPC.
>
>
> I also don’t think YANG was a mistake.  In fact, coming off of SMI-ng, it
> had many things figured out.  Note that it has been very successful and, in
> fact, OC wouldn’t be anywhere without it.  Also note that the talk fails to
> say why or what’s better.  I am familiar with several data modeling
> languages and YANG is by far the best, AFAICT.
>
>
YANG extensions are not perfect, but much better than comments for use by
automation tools.
There are many details that make it work well as a replacement for MIBs and
CLI.



>
> YANG allows the server developer to implement to the YANG model and not
> the protocol.
> The clients can pick and choose between several northbound protocols.
> Each protocol defines how to map YANG statements to protocol messages.
> It will never be one-size-fits-all.
>
>
> My decoder-ring translates: servers can support many YANG-driven
> protocols, enabling clients to choose the one they like most, using
> whatever metrics makes sense to them.  Yes?
>
>
Use the right tool for the job.
IMO there is no need to worry about which protocol SHOULD be used.

Okay, fine, but I wish the dial would move from “servers can” to “servers
> should”.  But also my point is that RESTCONF is quite good, and that
> NETCONF only wins because it is entrenched.
>
>
Actually, CLI is entrenched.  ;-)

IMO it is better to stick to "YANG API" mechanisms and not rely on
protocol-specific mechanisms like in RESTCONF.
That means using POST /restconf/operations/some-rpc (or action) instead of
some other HTTP method.
This sort of extra work does not help deployment.

If the model sticks to the YANG API, then any protocol (NETCONF, RESTCONF,
CORECONF, UDP-NOTIF, etc) can be used.
There is no special work needed to add modules to the client or server.



>
> Andy
>
>
> K.
>
>
Andy