Re: [netmod] Query on Announcing Conformance Information in the <hello> Message

Robert Varga <nite@hq.sk> Tue, 02 May 2017 12:41 UTC

Return-Path: <nite@hq.sk>
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 729181315B8 for <netmod@ietfa.amsl.com>; Tue, 2 May 2017 05:41:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.699
X-Spam-Level:
X-Spam-Status: No, score=0.699 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=hq.sk
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 kgWUo3sa2FC2 for <netmod@ietfa.amsl.com>; Tue, 2 May 2017 05:41:00 -0700 (PDT)
Received: from mail.hq.sk (hq.sk [81.89.59.181]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B10D1316B1 for <netmod@ietf.org>; Tue, 2 May 2017 05:37:38 -0700 (PDT)
Received: from nitebug.localdomain (46.229.239.158.host.vnet.sk [46.229.239.158]) by mail.hq.sk (Postfix) with ESMTPSA id 195AE241798; Tue, 2 May 2017 14:37:36 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hq.sk; s=mail; t=1493728656; bh=DLqWlg7JYot+4v6Nz8EE5KTCpUP2sLRc0rZRvECkrtk=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=rL1XQ8SqF3aZosR5awFmBw75iRgt20/fYMwtoz+itChdfgAZZjtW3eZSt/kO46sWo S2nflXhqeM4O3zqarnsUmoZprnzZpAYDeDg+sMHaI8Mo1Ft58Bk7N5ObRJj09GbKQP Qs0IsCXxmlUMs1kZnn/e9T21NL/tYGpZXJb/kBQA=
To: Martin Bjorklund <mbj@tail-f.com>
Cc: andy@yumaworks.com, dhirutrivedi@gmail.com, netmod@ietf.org
References: <CAPSfq0bBHjfn7PgcoBqQVRK8Fupfz+UA3kOZWWJS=9WENN5=vw@mail.gmail.com> <CABCOCHR9iiLniaF2Nw6n4q-1xQqRrr_Y6QuMr=f2uAbCM=iPuw@mail.gmail.com> <638dd25c-909e-1d07-78f0-76e1e75549dc@hq.sk> <20170502.102509.1924138814149890711.mbj@tail-f.com>
From: Robert Varga <nite@hq.sk>
Message-ID: <c3720efb-f8b4-364e-c9ec-3e9912a3eea0@hq.sk>
Date: Tue, 02 May 2017 14:37:30 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0
MIME-Version: 1.0
In-Reply-To: <20170502.102509.1924138814149890711.mbj@tail-f.com>
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="flis4bURG4BQnXrqiw4jtPBwhsaPN9BdU"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/9bB1UJTThNi4GjPmCpQXt2-5YvI>
Subject: Re: [netmod] Query on Announcing Conformance Information in the <hello> Message
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, 02 May 2017 12:41:03 -0000

On 02/05/17 10:25, Martin Bjorklund wrote:
> Robert Varga <nite@hq.sk> wrote:
>> On 20/04/17 18:35, Andy Bierman wrote:
>>>
>>> Yes -- it looks correct.
>>> The structure is defined in RFC 6020:
>>> https://tools.ietf.org/html/rfc6020#section-5.6.4
>>>
>>
>> Hello Andy,
>>
>> One thing that is not quite clear in RFC6020 due to not being clear what
>> 'supported module' means.
> 
> Right; specifically the difference between "implement" and "support
> for import", which is clarified in RFC 7950 and RFC 7895.
> 
>> Should deviations be applied in case a module is advertised, but is not
>> mentioned in a deviations parameter like this:
> 
> No.
> 
>>    <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>>        <capability>
>>          http://example.com/syslog?module=syslog
>>        </capability>
>>        <capability>
>>          http://example.com/my-deviations?module=my-devs
>>        </capability>
>>      </hello>
>>
>> If not, does this imply that any deviation statement targeting an
>> external module, which does not have a matching deviations parameter
>> should silently be ignored?
> 
> Yes.  Just like a grouping can be defined without ever being used.
> 
> For example, a device might put all its deviations in a
> single module, but then list it in the deviations parameter for a
> subset of all potential modules.

Thanks Martin,

this does make sense, but there seems to be little implied about this in
the text of https://tools.ietf.org/html/rfc7950#section-7.20.3.

Furthermore https://tools.ietf.org/html/rfc7950#section-7.20.3.3 is a
bit misleading, as it states:

   A server would advertise both modules "example-base" and
   "example-deviations".

Based on your reply, it is not sufficient to advertise both modules as
'implement', but rather for 'deviation' statements to be effective,
'example-deviations' needs to also be present in example-base's
advertised deviation list.

Maybe 7.20.3 could use a paragraph describing interplay with
advertisement and the text in 7.20.3.3 could be made more explicit?

Regards,
Robert