Re: [netmod] Question on intefaces-state model

Andy Bierman <andy@yumaworks.com> Tue, 13 June 2017 19:30 UTC

Return-Path: <andy@yumaworks.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 D76C4129540 for <netmod@ietfa.amsl.com>; Tue, 13 Jun 2017 12:30:39 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, 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 4pmp5A68bm0y for <netmod@ietfa.amsl.com>; Tue, 13 Jun 2017 12:30:37 -0700 (PDT)
Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (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 153AD129534 for <netmod@ietf.org>; Tue, 13 Jun 2017 12:30:37 -0700 (PDT)
Received: by mail-wr0-x22f.google.com with SMTP id 36so36188197wry.3 for <netmod@ietf.org>; Tue, 13 Jun 2017 12:30:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7i0EnWg+a01ehrnmxB0IH0g9QGeQwFKGd6k1ZAlOwVg=; b=CObhl+1Mizpvb8hDpFEx5bk0lH8cUpdIwHJmI4CgZrsd4BNCOlChyt+/Z0F0IX4wzu vqWhDi2vBO2vJaUIHdsUQZTO+UV/IKbnE7T0jh/AqeRjquz2WnMRFL+Z9KH2NMpw9KMB dNPY0jbZfGCqYumpO3tPV/e8/qMxOZH07LEaZ9V1n0XaSlCtcVDDSl9R/SHgLuCN6spQ oYHGsH9lw9hku01uDFzwi8AzaPizV28x9NJLN8RBnvXNCK7WVsNuJf2nhgKEghVjwdWD yVmwFugzMZ08bqcXlx9T3XwYYh49AIemT1JxdDjGiFJtl67T0ufcbmKCAMEBOQxClO/K WC1A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7i0EnWg+a01ehrnmxB0IH0g9QGeQwFKGd6k1ZAlOwVg=; b=BMp30ATYs1nbxCj8bTXDb5amA0zG1y11p+kNGG8xWOEOcRndlcPuh925Rj4e8yIHRm OKVNyTjZj4aned4wzObTnuXWDy9Lhg/2WOIH1i7Kn7BCdXeTTBiXCoVPiCkqe7M9OwNE s8qhBxHzokl9znNqlrD1KeWfew2RJGL3qpG0BQUbE1ubh2DpiCVKMEqA7/3wA9bPBo6M 6PhJBsycmzCcs9ks+6APxlrounw4xaP9N73PePFcrZlvXaC6HDxis1DQZwTQGX4xb46y dFGYpCzTrTNLOGpwggAkJ3stHNRxxAJGfVLNSkb+irrJpfUTJpEnGXR/4Z1jJV5T+r2v SyIA==
X-Gm-Message-State: AKS2vOzIDVOI06PHSRUw1xg9wOAJu5yvvJD6kGZkA3H3qW0CXXiuDgy9 axpMngbS+di8wWxFF35VHDUcyBLIRDWF
X-Received: by 10.28.151.207 with SMTP id z198mr12438747wmd.48.1497382235429; Tue, 13 Jun 2017 12:30:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.182.173 with HTTP; Tue, 13 Jun 2017 12:30:34 -0700 (PDT)
In-Reply-To: <m2d1a7iutf.fsf@nic.cz>
References: <AM2PR07MB06272FF9E8BA4D00B0669F9794CE0@AM2PR07MB0627.eurprd07.prod.outlook.com> <20170612172141.GA52797@elstar.local> <CABCOCHSK1h4HQ4LgkYd_Lxp3JYzxYBMmCka64_-iVjq2N_PR7g@mail.gmail.com> <m2d1a7iutf.fsf@nic.cz>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 13 Jun 2017 12:30:34 -0700
Message-ID: <CABCOCHS3cqEvyLaRGdk5T2TpkXGOjd_wEii-pREo3cpRwjiHHg@mail.gmail.com>
To: Ladislav Lhotka <lhotka@nic.cz>
Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="001a1144ea2a3cb11c0551dc7823"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/A6ZXb8CSZ2MnRwGM5-40f1UNEZI>
Subject: Re: [netmod] Question on intefaces-state model
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 13 Jun 2017 19:30:40 -0000

On Tue, Jun 13, 2017 at 11:52 AM, Ladislav Lhotka <lhotka@nic.cz> wrote:

> Andy Bierman <andy@yumaworks.com> writes:
>
> > On Mon, Jun 12, 2017 at 10:21 AM, Juergen Schoenwaelder <
> > j.schoenwaelder@jacobs-university.de> wrote:
> >
> >> On Fri, Jun 09, 2017 at 10:55:20AM +0000, Bogaert, Bart (Nokia -
> >> BE/Antwerp) wrote:
> >> >
> >> > We have a question regarding the statistics container as defined in
> the
> >> > interfaces-state model.  This container defines one mandatory leaf
> >> > (discontinuity-time) while all other leafs are optional.  What is the
> >> > rationale behind this leaf being mandatory and not an optional field?
> >> >
> >> > It does not make a lot of sense to return a discontinuity-time value
> and
> >> no
> >> > counters if none of the counters are relevant for a specific
> interface.
> >> >
> >> > Another alternative could be to add, via a deviation, a when clause to
> >> the
> >> > container indicating for which ifType(s) the container is (or is not)
> >> > present. But that would lead to not supporting the IETF interfaces
> model
> >> to
> >> > the full extent.
> >> >
> >>
> >> The discontinuity-time is relevant for _any_ counter associated with
> >> an interface, regardless whether the counter is defined in the
> >> interfaces model or elsewhere. I have a hard time to imagine an
> >> interface that has zero counters.
> >>
> >>
> > The mandatory-stmt is very confusing for config=false nodes.
> Mandatory=true
> > means
> > an <rpc-reply> must contain an instance of the mandatory leaf.
>
> I don't think it is that confusing. RFC 7950 defines what a valid data
> tree means and "mandatory" are among the constraints.
>
> I agree though that in terms of a management protocol it means different
> things for config true and false data, but this is true also for default
> values and maybe other YANG concepts as well.
>
> >
> > Mandatory=false does not mean optional-to-implement although it sure
> > looks that way for config=false nodes.  Only if-feature can make a node
> > optional to implement.
>
> I don't think this interpretation is supported by any text in the YANG
> spec. State data nodes that are optional needn't be implemented.
>
>
RFC 7950, sec 5.6  (Conformance) does not support your interpretation.
It defines basic behavior, optional (via features), and deviations as the
only mechanisms affecting conformance.


Lada
>
> >
>


Andy


> >
> >
> >  /js
> >
> >
> > Andy
> >
> > --
> >> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> >> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> >> Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
> >>
> >> _______________________________________________
> >> netmod mailing list
> >> netmod@ietf.org
> >> https://www.ietf.org/mailman/listinfo/netmod
> >>
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
>
> --
> Ladislav Lhotka, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
>