Re: [netmod] Adveritzing submodule in <hello>

Martin Björklund <mbj+ietf@4668.se> Tue, 20 October 2020 14:28 UTC

Return-Path: <mbj+ietf@4668.se>
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 5F26F3A0C62 for <netmod@ietfa.amsl.com>; Tue, 20 Oct 2020 07:28:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.099
X-Spam-Level:
X-Spam-Status: No, score=-0.099 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, PDS_NAKED_TO_NUMERO=1.999, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=4668.se header.b=fNLx/X8V; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=jZ99zm96
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 mvxBFZwFzYBW for <netmod@ietfa.amsl.com>; Tue, 20 Oct 2020 07:28:47 -0700 (PDT)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9AA693A0C47 for <netmod@ietf.org>; Tue, 20 Oct 2020 07:28:47 -0700 (PDT)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F22715C00FE; Tue, 20 Oct 2020 10:28:46 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 20 Oct 2020 10:28:46 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm3; bh= OIZCXIlAbAIwzDQPmpip1d3Jb1T3WL7T/rWf+z1Q7ns=; b=fNLx/X8Vbu4XYx2S 1OxyQsQv5WPSPJFKt8Hc38tlESvcaFJI6dCMArIIMo6j7ycpXHWIKEAz9gDVSldj cKdSk5kqyQb+5Fo+7+REenGtGqvQP5KixqZu6V+8ispcRW60/oYot1bQdM+m4OZT ZesEzzIcmcTQbCQj5hE5Fu4vtmIWytzvw9QWGYmp2LSdKywq/N35WaOydvPTbHfC bg0CWpQXYa54ivhPxiPNrhgyQBh5ccWdifTUqo23zev2hB2DAPbAdu0ijwKCU5HQ mDXnCsOe1XwGU0F4ciVdHIIvX+RUzOi1PJ+HV0j1ECz3YShkmG7vReTNwlOkh9Y1 rA2SCA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=OIZCXIlAbAIwzDQPmpip1d3Jb1T3WL7T/rWf+z1Q7 ns=; b=jZ99zm96oTBDtdDFJpMpg8V0vPPYc7h8KdYdcCoZqZXppNtcgHVj/03S9 Yxmus17FsdRVR5uCOUIyamDq4gcvGFrFXNU69jtf18adX7n2V1NVnOsHfo/RbL+O Gx8Rhm610lVvr6hAZXLBeO6E1ecF5g2A+nrj0j/cjo8ecppbgGRr3+JjTyC2smfV 97xltxkNqb0v9vnKXi7PJJtKTOdhtzHfhNMGSW6KyBh4wjyj81ldg2VGiKI25EoC ESFA+osQWK3gbSQvXWCwm8lK4oFV0XWgn6sDBIqqMGqLskxE9qkcngI2prCBatT9 olFW8Zoi7PedJP3zpL/46ovbu/OHg==
X-ME-Sender: <xms:HvSOXxdrfx5qXhPeqHtqKq7o24W9H72zujoeW3ciWGKVfIR1wIljoA> <xme:HvSOX_NeoWkNF45t8CjA7B8Pd8VriOmDZ3cE6aPWrRZ94FbRPpKaH0S_6Hhjb2Bjo wVSr0UkIRPEzx8ZWnA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjeefgdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffkvffuhfgjfhfogggtgfesthhqre dtredtudenucfhrhhomhepofgrrhhtihhnuceujhpnrhhklhhunhguuceomhgsjhdoihgv thhfseegieeikedrshgvqeenucggtffrrghtthgvrhhnpedvffduudeuvdffieeihfdtle etuedvgfetkeehteehieeggfelveffueejgffhkeenucffohhmrghinhepuhhrlhguvghf vghnshgvrdgtohhmnecukfhppedvuddvrddvudegrdduuddriedtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsjhdoihgvthhfseegieei kedrshgv
X-ME-Proxy: <xmx:HvSOX6gXaC6L1php-XTzPqnVFv0M-fv6mFpaBBUuTxfuBcM_hGhcNw> <xmx:HvSOX69uVgt5Ag9SvXSR-tzSEX7F3JZrd3-HC2CY4rPbc3EYuvEE_g> <xmx:HvSOX9se1oIVctSXT6CS6nwTu5zrDz8Ue6yCu35D1mzQU8RPBZ8nvA> <xmx:HvSOXy5dqe0gP_z5G9d0Yp0cU8rMdny3-7Z9kIyFQP__-kCipliOcA>
Received: from localhost (212-214-11-60-static.se.customer.tele2.net [212.214.11.60]) by mail.messagingengine.com (Postfix) with ESMTPA id 342873064674; Tue, 20 Oct 2020 10:28:46 -0400 (EDT)
Date: Tue, 20 Oct 2020 16:28:45 +0200
Message-Id: <20201020.162845.1990909062089570840.id@4668.se>
To: ramas@juniper.net
Cc: netmod@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <F71C3AFD-2761-49B6-96A8-EFB0EAD14C00@juniper.net>
References: <B3EA6D23-DE96-4E47-94E9-DD00CBCDE75A@juniper.net> <20201020.160421.1723421282146069920.id@4668.se> <F71C3AFD-2761-49B6-96A8-EFB0EAD14C00@juniper.net>
X-Mailer: Mew version 6.8 on Emacs 26.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/4O0iJbWskgtna8cvRQKh_YtULf8>
Subject: Re: [netmod] Adveritzing submodule in <hello>
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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, 20 Oct 2020 14:28:49 -0000

Hi,

Ram Polisetty Subbaiah <ramas@juniper.net> wrote:
> Thanks Martin,
> 
> One more follow up question:
> 
> If in case both Client and Server are compatible only with Yang 1.0,
> how client/server are supposed to
> handle capabilities advertisement for submodules? By any chance is it
> a limitation in 1.0?

If the module uses include-by-revision (which it should ;-) then both
sides know which revisions of the submodules a given revision of the
module refers to.

In any case, a server that implements YANG 1 can implement YANG
library revision 2016-06-21, which includes info about the submodules.


/martin




> 
> Thanks,
> Ram
> 
> On 20/10/20, 7:34 PM, "Martin Björklund"
> <mbj+ietf@4668.se<mailto:mbj+ietf@4668.se>> wrote:
> 
> [External Email. Be cautious of content]
> 
> 
> Ram Polisetty Subbaiah
> <ramas=40juniper.net@dmarc.ietf.org<mailto:ramas=40juniper.net@dmarc.ietf.org>>
> wrote:
> Hi,
> 
> As per RFC 6020:
> 
> ===
> https://urldefense.com/v3/__https://tools.ietf.org/html/rfc6020*section-5.6.4.1__;Iw!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAk4tCUc3Q$<https://urldefense.com/v3/__https:/tools.ietf.org/html/rfc6020*section-5.6.4.1__;Iw!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAk4tCUc3Q$>
> Modules
>     Servers indicate the names of supported modules via the <hello>
>     message.  Module namespaces are encoded as the base URI in the
>     capability string, and the module name is encoded as the "module"
>     parameter to the base URI.
> 
>     A server MUST advertise all revisions of all modules it implements.
> 
>     For example, this <hello> message advertises one module "syslog".
> 
>     <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>       <capability>
>         https://urldefense.com/v3/__http://example.com/syslog?module=syslog&amp;revision=2008-04-01__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAmPyrVZPQ$<https://urldefense.com/v3/__http:/example.com/syslog?module=syslog&amp;revision=2008-04-01__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAmPyrVZPQ$>
>       </capability>
>     </hello>
> ===
> 
> My question is, if there are some submodules, should server advertise
> the submodules also in <hello>?
> 
> No.
> 
> Note that module advertisement is done through YANG library in YANG
> 1.1 (RFC 7950).  Submodules are present in the YANG library (RFC
> 8525).
> 
> 
> /martin
> 
> 
> If so, what is the defined format for advertising the same?
> 
> Thanks,
> Ram
> 
> 
> Juniper Business Use Only
> _______________________________________________
> netmod mailing list
> netmod@ietf.org<mailto:netmod@ietf.org>
> https://urldefense.com/v3/__https://www.ietf.org/mailman/listinfo/netmod__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAlL7Ma5-A$<https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAlL7Ma5-A$>
> 
> 
> 
> Juniper Business Use Only