Re: [netmod] Adveritzing submodule in <hello>

Ram Polisetty Subbaiah <ramas@juniper.net> Tue, 20 October 2020 14:22 UTC

Return-Path: <ramas@juniper.net>
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 443733A0C3F for <netmod@ietfa.amsl.com>; Tue, 20 Oct 2020 07:22:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, 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=juniper.net header.b=MpKuvdrU; dkim=pass (1024-bit key) header.d=juniper.net header.b=emLVMk0k
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 oVR5v36Td_xf for <netmod@ietfa.amsl.com>; Tue, 20 Oct 2020 07:22:28 -0700 (PDT)
Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3065C3A0C3D for <netmod@ietf.org>; Tue, 20 Oct 2020 07:22:28 -0700 (PDT)
Received: from pps.filterd (m0108160.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09KEIGHC018834; Tue, 20 Oct 2020 07:22:25 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=PPS1017; bh=/S3qXQtd5wNb7HccWotciaSAasYdFhX8Yx/in5Vt8+g=; b=MpKuvdrUgwO61odZA46mwCFSt1Xh4uP4BgKLn9ks2EM5ge/2aVCbzjEgoo2i0VKmh+IQ xZ55CeIOy4YOesNnypQyuMYpYEjEFe+3RUMRPUiairK7VJ8/v5SEwE1m6VEBr4k0Xc60 mwuf4jDe5hI3sFseb77DVSEkh9LSiBvz3sB3OvX6qegs+kmxx/jX8d8mKEJXK9eec2SP coRlf37iD4OS7M8U7OEJHEjB/ECwRggGnQQE4bWShr9cKFj7wpIFGbGzcns8d2qlJQDR QlFvwxUhAr485NTSQL3k2wiUJ1J+EAkjBfuO3DFLcnzMbA1AECyoV8tW0ZWKiLUmiy4O xA==
Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2176.outbound.protection.outlook.com [104.47.58.176]) by mx0b-00273201.pphosted.com with ESMTP id 347xhjmhcp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Oct 2020 07:22:24 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OlFBp75hLzoXxnriD9tz4hdVe4efIqonPhQun4yx8IT4qOoBHfZAaHLbIAgpuJ5pCMZHKLVio5a6Sn004UldlEFKnbDDvuj+lxSOFe4w85EMFAckmx5OwBoNkS+0AWgTdSp+nwYGoPois7GSpvLSKBMbXOrNws33DoIZMynt9IV4TRODgUAShoU9peskXzKSOqGJxDIeTX78XIlEZZXf9DBid178WBUfq6AKZ+ttxiZgVydW5YlEN2sVKEan/3UWsm6g+w3QuEbX76kR1pBIqIfNQ9g2sDfIHuSs6xD3iTMNwM3ify736LE98UtpHqp48b17OoproWuAcdtGDmldiA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/S3qXQtd5wNb7HccWotciaSAasYdFhX8Yx/in5Vt8+g=; b=VStt9AH5ZP+2OjH7E/QfPfrp5BjxKVwdyfiFz0wGdKg0EuWeAzdnQwhOSbUwgaiIG1KDgJ6aOJfkMjxEBClS/xP+2500cMT5gppReeRxc/aD3KQ0exCKG4u4pXVmdtrP+NSoCUFWiSsC2w7fdz9EfAY59uswefk8wJNXxng7vY5l10FmMN3P/C98vyuyzUNPY7n1IbjDWZ87GcvvelC0rdMtJVskyT0LFDiIrHlBY6zwQ6Wh3zKqtyLeIDvvUkx0NgFF2wXBzupLhfPetlpyzkXg42CCiwskOPevHZCqCV6nUeH0f2WBejhSKZOubm714OWweGTjB/v80b55LeuojA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/S3qXQtd5wNb7HccWotciaSAasYdFhX8Yx/in5Vt8+g=; b=emLVMk0k7TE8aGg1ZnWooxX7iYeS4IgZueNd2olmZH9ZkfAOZMQiNFJYZ1A7kXxx8J5f4BqaCKw0mqjfWwG9GY5Uip8KoQ6xs2kIX9DXao+W53qOtRA+C5Ug+aHdkTeKPiXyRy8AEtpf4vAEiotlBZrYAGZFJDWu7EO6xvDs9ak=
Received: from CY1PR05MB2428.namprd05.prod.outlook.com (2a01:111:e400:c613::19) by CY4PR05MB3078.namprd05.prod.outlook.com (2603:10b6:903:f8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.7; Tue, 20 Oct 2020 14:22:22 +0000
Received: from CY1PR05MB2428.namprd05.prod.outlook.com ([fe80::420:8468:9847:931b]) by CY1PR05MB2428.namprd05.prod.outlook.com ([fe80::420:8468:9847:931b%11]) with mapi id 15.20.3499.017; Tue, 20 Oct 2020 14:22:22 +0000
From: Ram Polisetty Subbaiah <ramas@juniper.net>
To: Martin Björklund <mbj+ietf@4668.se>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Adveritzing submodule in <hello>
Thread-Index: AQHWptfd/jA7Oy+Irk+0zNXvGG0s0KmghiCAgABhO4A=
Date: Tue, 20 Oct 2020 14:22:22 +0000
Message-ID: <F71C3AFD-2761-49B6-96A8-EFB0EAD14C00@juniper.net>
References: <B3EA6D23-DE96-4E47-94E9-DD00CBCDE75A@juniper.net> <20201020.160421.1723421282146069920.id@4668.se>
In-Reply-To: <20201020.160421.1723421282146069920.id@4668.se>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.42.20101102
msip_labels: MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=true; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ContentBits=0; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SiteId=bea78b3c-4cdb-4130-854a-1d193232e5f4; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ActionId=659d815c-efdf-4869-9ad7-35816413677d; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SetDate=2020-10-20T14:14:43Z; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Method=Standard; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Name=Juniper Business Use Only;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=true;
authentication-results: 4668.se; dkim=none (message not signed) header.d=none;4668.se; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [116.197.184.11]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: bce25732-160a-4307-7748-08d875038fae
x-ms-traffictypediagnostic: CY4PR05MB3078:
x-microsoft-antispam-prvs: <CY4PR05MB307867EFBB56A09CDDA99D29B81F0@CY4PR05MB3078.namprd05.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: E4WeY39m7oikY2tXaqZ+e7z0cA+9myCRiqogiFYpHNsBXqd/JRBE/Sc53TBR+6AxIfreS7sNo2X98bfMqxXwhvQbrg0DTtlezF28j9rBuOpAuYIFsrHDlQo9mBc4ennShw4IKXQ9Qu0lgLCi7mSvsZVGQAqlmMzy6Ym0uriiO39lMhEMVGqAF7e65OK780OH2dhH7mDSrFaHjfqWUuFTAFpqolVaRYcZItfph3kpZklafUQyCX9eSdPCzG7YL2sZWJYAzyU91qOGesRQkLBy2V4TrnmVQUSZMlPP46TIdCVhWVmXjjH5D6Aq0Su/HfA7lu62RgZxR6wdCJ0uT8AaesVfNEFu7azHCUvcSNOMGfQzO38UzYN3wQVigzD/g52IWXJJf7Kqa2XIlKb8I+hkBA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY1PR05MB2428.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(346002)(366004)(136003)(39860400002)(966005)(186003)(83380400001)(5660300002)(2906002)(316002)(8676002)(478600001)(36756003)(33656002)(53546011)(26005)(4326008)(6506007)(166002)(86362001)(2616005)(6512007)(76116006)(91956017)(66946007)(71200400001)(66476007)(66556008)(64756008)(66446008)(8936002)(6486002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: hz+fM1T2gqXEgeFUaHRuAtWAak45osY6f3DGOlfWQSnPfUdE2v6rBnB1pnxFWshHehUQqNIVeD01LUZRBJhcL9h0w0xJzAABzLoxJjGWu7UK7Mzacayo19Ehd+t6ki47zXLE4/reABYIkvi9V1zs9PnvM8eTtf8cDGl9OHSdPVDWGMhFJ60mdaEkK38G1xbQ7MpTzJ91wnTmkzHoqjQtFIz8QHX4lgtEbOwHauIEOFbLqUeftdj0kucVcxxEA5594eFv3t0xcwAIdk+pEAgD4XgGBKnK2u3M+lcYSgO+hna3UWEZWQNzCSc/js3s+498xhMxNodVupYf3NpQkKUnZv33ru9w8qF0/rg2xpJhB9E13X/8XQhJrXZqK/mqUjDWgzlfJq8vGA+eJ0vzZ/AVlrWXtae+YWVLCmcTHSeEHPFBgBow8+BB6lWv0t9dZoWpxfco71PBHNhbiZUi1yfSmd3BfZf35Nt5sPTS6yJGhZ0Af9YybBgon8JmLIyj6x2N7WG7atPHMX6CUIF5BkBUD3S39ESrTS6s5QGy6oPsdPu5OH6RxGOrAdKQ32Nxq1XuKVVW0e5qaLqLqb0xLtINJsKkmRva5oJolQuw2hnlknfEUl5M2oKO2zeFvhxxErjd5Nxhsx0rocBLd23Y4SR0tA==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_F71C3AFD276149B696A8EFB0EAD14C00junipernet_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CY1PR05MB2428.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: bce25732-160a-4307-7748-08d875038fae
X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2020 14:22:22.8152 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: tyABFf7Nayzi1oD4f9wvsQdNlZd3YUoa624jMTcbJVt19aklXJe8YFgMGynW9/JOtmT1uOjZplDlYPBwBdNSEA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR05MB3078
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.737 definitions=2020-10-20_06:2020-10-20, 2020-10-20 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 bulkscore=0 spamscore=0 clxscore=1011 priorityscore=1501 phishscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010200097
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Hs4d7TLhFXytJNUxSTB8gVaFbfo>
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:22:30 -0000

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?

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