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

Andy Bierman <andy@yumaworks.com> Thu, 20 April 2017 16:42 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 11308129B1A for <netmod@ietfa.amsl.com>; Thu, 20 Apr 2017 09:42:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 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] 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 8xrnfoLMFKvP for <netmod@ietfa.amsl.com>; Thu, 20 Apr 2017 09:42:18 -0700 (PDT)
Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::233]) (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 6AD38131499 for <netmod@ietf.org>; Thu, 20 Apr 2017 09:42:18 -0700 (PDT)
Received: by mail-wr0-x233.google.com with SMTP id o21so39424013wrb.2 for <netmod@ietf.org>; Thu, 20 Apr 2017 09:42:18 -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=gL7x4BBNHpfggT3+YLgeCOLPQ6xdU/3wcVu4aF6s3YQ=; b=CxgxqiZrtrKlEyNd3vsYj9S2xQsekm+nZQyCqZXdhKAp2Y44XlwmTDrQt0t2uPntcL jyD+4ALifD7TZJY/05Ay6wehVPcyTfXwRo16qgV4R5xbbpmSG3dcJwLmOUbti7F4ZSz5 sZ9Rd56LxGpPiZo9imN3OoJNHUmz734GAlqipU1gVcZVuezlzMtptKxLkCcSJOzqVcJs 6g4sIjEwYIz6HM6gdX/UDWmlwEAduD3M1zuR5078UCucBteXxE/tzNsxaUDMhxesdSAS 7EnddmIXtjfQXFECaOLYmd8tSqU/dRIAmf6BYQlAKKrj4IMJr4Mrn6GfALKC6uY3L/3d nv/A==
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=gL7x4BBNHpfggT3+YLgeCOLPQ6xdU/3wcVu4aF6s3YQ=; b=naPrGjGrdMw3fsSgVJvxmiQ0VxA8K15lWiSdWBcC9OKiyPGQrdFtmJqoUKcvdauhhZ gWURgSb8UHlUoWEkn27jhDzs7gwfZA/7nZ7CkLbtjkqaQBBlZ3/i0X1u+heo8c2k12w4 2nwYD0cn7fHqkcd+hSKZAeN/npJgV0GqbLFx1V1qpGsantP4CmbquhANIGfS1LoCYZMK V/xzO828+xdpP7IbJyVf5f3dWxnNqlvOIbm9lsPjR9fwZQXsd7r+OJuS+YomlLT9PBHh ukZY373W8bxJuZlZ7to93/ancg8gIbhJyurojfdWY8mGKncidF1UYRatxdO03+NHPX9H mImA==
X-Gm-Message-State: AN3rC/6PWPuPdru+YjpK26ZI7F6kXw7CbXfyCoVic5mnjHddkg47ziXY XjiQ4uhCD5JZB9aHbJfjzoqsZx7Q+A==
X-Received: by 10.223.148.7 with SMTP id 7mr8461997wrq.65.1492706536871; Thu, 20 Apr 2017 09:42:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.139.23 with HTTP; Thu, 20 Apr 2017 09:42:16 -0700 (PDT)
In-Reply-To: <A3ECEF2D-8431-45F9-BA2C-F45F5282BDE3@juniper.net>
References: <CAPSfq0bBHjfn7PgcoBqQVRK8Fupfz+UA3kOZWWJS=9WENN5=vw@mail.gmail.com> <A3ECEF2D-8431-45F9-BA2C-F45F5282BDE3@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 20 Apr 2017 09:42:16 -0700
Message-ID: <CABCOCHTF4ho0D5mU5FK50+wKCjC4jw8RCTSZRKzAAFgCFzz6SQ@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Cc: Dhirendra Trivedi <dhirutrivedi@gmail.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c0d2286e28a9c054d9bd24f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/6eSwqwRdde-RhAO496cOBV-Vvlo>
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: Thu, 20 Apr 2017 16:42:22 -0000

On Thu, Apr 20, 2017 at 9:26 AM, Kent Watsen <kwatsen@juniper.net> wrote:

> Is there a typo in your capability line?  s/netocnf/netconf/
>
> Is your server also advertising jnx-ietf-netocnf-monitoring-dev in its
> hello message?
>
>
>
> BTW, be aware that servers supporting RFC7950 no longer have "deviations="
> in the
>
> capability string, as the server is now expected to use YANG Library to
> announce
>
> conformance.
>
>
>

Not quite.
YANG 1.0 modules are still advertised according to RFC 6020.
YANG 1.1 module capability URIs are left out of the <hello>.

We ignore that rule and put them in the server <hello> because most client
tools don't follow
the RFC 7950 rules correctly. In our client, if the server advertises
"module-set-id"
then we read the /modules-state subtree (unless our cached data matches the
module-set-id).
We read /netconf-state/schemas if needed as well.







> K.
>
>
>

Andy


>
>
> On 4/20/17, 9:36 AM, "netmod on behalf of Dhirendra Trivedi" <
> netmod-bounces@ietf.org on behalf of dhirutrivedi@gmail.com> wrote:
>
>
>
> Hi All,
>
>
>
> We had requirement of implementing ietf-netconf-monitoring YANG model
>
> and we did it but partially. Now we need to advertise the deviation module
>
> in the netconf server capability.
>
> I tried doing it like
>
> <capability>
>
>      urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?
> module=ietf-netconf-monitoring&amp;deviations=jnx-
> ietf-netocnf-monitoring-dev
>
> </capability>
>
>
>
> but it seems OpenDaylight controller is not taking it as valid capability.
> Not sure
>
> if the capability is syntactically incorrect or OpenDaylight controller is
> having bug.
>
>
>
> Is there way to validate the syntax of above capability?
>
>
>
> Regards,
>
> Dhirendra
>
>
>
>
>
>
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>