Re: [netconf] Capability-fetching mechanisms

"Rob Wilton (rwilton)" <rwilton@cisco.com> Mon, 19 July 2021 14:30 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1F6D83A36C5 for <netconf@ietfa.amsl.com>; Mon, 19 Jul 2021 07:30:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.575
X-Spam-Level:
X-Spam-Status: No, score=-9.575 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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_NONE=0.001, T_KAM_HTML_FONT_INVALID=0.01, T_MIME_MALF=0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=f5UvL8Ln; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=uBWkTnns
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 N4gFRXJBBa7M for <netconf@ietfa.amsl.com>; Mon, 19 Jul 2021 07:30:13 -0700 (PDT)
Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0EB733A36B6 for <netconf@ietf.org>; Mon, 19 Jul 2021 07:29:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=72228; q=dns/txt; s=iport; t=1626704995; x=1627914595; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=fzrqFV9+LfpBlnXRgLLbXrkL2aG0kIq6v6LU6fh8MsQ=; b=f5UvL8Ln61nrBIzxBIjRTOdztgY5RAZoGnsO6I8ySeTorndctLJSkfkX MjZJnOrGTAdv4uPRNzvf0vlywMKV0bNzjYv4nWdjjgsPjgG5n8wlUAX/i 4rKu6ahf4KyN0cCcwBVMDS9IHQnq+8mCl+KpcSxKMdohe24fl5l31Aj8E 0=;
IronPort-PHdr: A9a23:jHnsHRQtaXGI7CQh6hkjCUFZBNpso6PLVj580XJvo7JTe7uu/tLpO0mMrflujVqcW4Ld5roEjufNqKnvVCQG5orJq3ENdpFAFnpnwcUblgAtGoiJXEv8KvO5bzEzA8lDElRi+iLzPU1cAs2rYVrUrzW75iITHROqMw1zK6z1F4fegt7x2fq1/sjYYh5Dg3y2ZrYhRCg=
IronPort-HdrOrdr: A9a23:ikSMCa66h2Yl5nfELgPXwWqBI+orL9Y04lQ7vn2ZFiY1TiXIra6TdaoguiMc0AxhJ03Jmbi7Sc69qADnhOBICOgqTPaftWzd2FdAQ7sSlrcKrweQfhEWs9QtqZuIEJIOSOEYb2IK9/oSiTPQe71LrbX3k9HLuQ6d9QYRcegAUdAH0+4NMHfiLqQAfng+OXNWLuv52uN34x6bPVgHZMWyAXcIG8LZocfQqZ7gaRkaQzY69Qinl1qTmf3HOind+i1bfyJEwL8k/2SAuRf+/L+fv/ayzQKZ/3PP7q5RhMDqxrJ4dY6xY4kuW3DRYzSTFcNcso65zXYISSaUmQ8Xeez30lMd1gJImivsly+O0EDQMkLboUcTAjfZuC+laD3Y0JbErPZQMbscuWqfGSGptnbI9esMo55jziaXsYFaAgjHmzm479/UVwtynk7xunY6l/UP5kYvHLf2RYUh5rD3xnklWqvo3RiKn7wPAa1rFoXR9fxWeVSVYzTQuXRu2sWlWjA2Eg2dSkYPt8SJ23wO9UoJgHcw1YgahDMN5Zg9Q55L66DNNblpjqhHSosTYbhmDOkMTMOrAijGQA7KMmiVPVP7fZt3d07lutry+vE49euqcJsHwN87n4nASkpRsSood0fnGaS1rdV2G9D2MSyAtBHWu49jDrRCy8jBrYvQQFu+oQoV4rmdSt0kc7nmZ8o=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AKAACDi/Vg/4UNJK1aGgEBAQEBAQEBAQEDAQEBARIBAQEBAgIBAQEBggUFAQEBAQsBgSIwIy4Hd1o3MYRIg0gDhFlgiFsDileFFYpEgS4UgREDVAsBAQENAQE3CgQBAYRXAheCZgIlNAkOAgQBAQESAQEFAQEBAgEGBHsThWgNhkUBAQEEEhEKEwEBJRIBDwIBCBEDAQEBDhMBBgMCAgIfERQJCAEBBAENBQgTB4JQgX5XAy8BDpo4AYE6AoofeoEygQGCBwEBBgQEhRUNC4IyCYE6AYJ7hAwBAYEXgVGDeiccgUlEgRVDgWGBAT6CIIFvAQsHAQkaFQkNCQiCWTaCLoImPy1qBCIDAgEbDwEgLzIBQxUEAQYDARkBLwgBPIEMj3wig0aINjeMf5E5WwqDJIo1jiOFehKDY4FHiheXHZYIhHKFFIIsgzOPdUAJhGcCBAIEBQIOAQEGgVs7Kz5wcBWDJAlHGQ6OHwwWg0+FFIVKcwI2AgYBCgEBAwmJQIFpXgEB
X-IronPort-AV: E=Sophos;i="5.84,252,1620691200"; d="scan'208,217";a="915073258"
Received: from alln-core-11.cisco.com ([173.36.13.133]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 19 Jul 2021 14:29:54 +0000
Received: from mail.cisco.com (xbe-rcd-001.cisco.com [173.37.102.16]) by alln-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id 16JETsgT018424 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=OK); Mon, 19 Jul 2021 14:29:54 GMT
Received: from xfe-rcd-002.cisco.com (173.37.227.250) by xbe-rcd-001.cisco.com (173.37.102.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 19 Jul 2021 09:29:54 -0500
Received: from xfe-rtp-002.cisco.com (64.101.210.232) by xfe-rcd-002.cisco.com (173.37.227.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 19 Jul 2021 09:29:53 -0500
Received: from NAM10-BN7-obe.outbound.protection.outlook.com (64.101.32.56) by xfe-rtp-002.cisco.com (64.101.210.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15 via Frontend Transport; Mon, 19 Jul 2021 10:29:53 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c4WI32Zui1V6jt4yFb1pAcPy7psPCmbjU63Cv2v4zSOLVBPc9X/zts91MQiPipfxytKmFIFhGuw/BexpMs/gS9Vuo0/u7rSBbx+Ujfq5pgWxaBAAiBQEX0W/CI6RZ3tG9/g8XUq8P7IlnFJgLyvpMJ7GSVKHaaH297qkdfufOTgIlAYxFhmWlmOzYPaMGGJpfCFXX8Rqh/gvuyR6v3tBFhyAkQ5wAZkoqyABprtQnhuU7pgjLFSvcpZTmN0CZ14BYYl/xIBtEFOhsLz5cKvhBCDp2O3dfZsG9kOkZlDFTEj78klDYIxjRYk38kzEFU3U9FO4xP7sFDv4mAw6Xmj9Pg==
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=fzrqFV9+LfpBlnXRgLLbXrkL2aG0kIq6v6LU6fh8MsQ=; b=n0754+8DhKC2MNTFtvpBRKerYgACcH+Yn8XFFF3xtBREZvO+ajiZ121SjY9fpl0IwEeeAX4ZTQsyy2RBoYPbOkKihp3qW+jGaN35+25Ssa9Uoj52yN+ww93UuiOWsLFjVaGW54UPvOreehJutzEXPFM4xHw/KV8KCBo2cNJG1rsu6DOwgEUF6Lj/FrARIqILef3bWYSDjt2FFty4OVQaP8rpWYEjCZ83ByrDVsnzyTQ2S2NtJSFxjCHZtMCNrRG+YLbvPZSWhIVpFQY6z4csFXqrcJ/NbLJ/lKnmzcHFBAtNDc2e/Dr+Q5iXVT8AoN7qH2DvAC2hs3lqxkyUjj1zgw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fzrqFV9+LfpBlnXRgLLbXrkL2aG0kIq6v6LU6fh8MsQ=; b=uBWkTnnsT28n9B2FVcUxgduI4xwM2kPO+ksW77ZN2SW1ZQFTF1K6Zv1Aalj0QanUUaulsjNxAinFZl2MN9yOb8ITPiAVHqzIXHtaR4eOglw7S2zgTSwuJ8EEqT0wy0I6njhe1HJkLOYZJaFlu+L6EO8QbC0SDeUT4qCPjVhjVRs=
Received: from DM4PR11MB5438.namprd11.prod.outlook.com (2603:10b6:5:399::21) by DM5PR11MB1531.namprd11.prod.outlook.com (2603:10b6:4:10::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.29; Mon, 19 Jul 2021 14:29:51 +0000
Received: from DM4PR11MB5438.namprd11.prod.outlook.com ([fe80::a85a:cb8b:2d73:5e12]) by DM4PR11MB5438.namprd11.prod.outlook.com ([fe80::a85a:cb8b:2d73:5e12%6]) with mapi id 15.20.4331.033; Mon, 19 Jul 2021 14:29:51 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: "maqiufang (A)" <maqiufang1@huawei.com>, Mahesh Jethanandani <mjethanandani@gmail.com>, Qin Wu <bill.wu@huawei.com>, Kent Watsen <kent+ietf@watsen.net>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] Capability-fetching mechanisms
Thread-Index: Addh4dN4MmAPJjV0Sjy0XXGIk3+1WQKjOIkAAIQG94ADiF4uAA==
Date: Mon, 19 Jul 2021 14:29:51 +0000
Message-ID: <DM4PR11MB5438DFE51C5038B2452FA425B5E19@DM4PR11MB5438.namprd11.prod.outlook.com>
References: <7527caa444da49d5bce2608512c668df@huawei.com> <741DCE37-211F-4AA0-B023-D1D551D93E13@gmail.com> <63f192192a3f4750ac9e6dddeb8145e5@huawei.com>
In-Reply-To: <63f192192a3f4750ac9e6dddeb8145e5@huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=cisco.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0b850b59-8380-40a8-15c6-08d94ac1ab50
x-ms-traffictypediagnostic: DM5PR11MB1531:
x-microsoft-antispam-prvs: <DM5PR11MB153123C38D129BE1364EA5BEB5E19@DM5PR11MB1531.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 7nYksbKF/ua/HJT7P+5+akGH4Dtp5M12Z5G70JITYwxfyWrwjc3HdAnDzszIdlvNe/gNPRQvynbmQNB7dpVPM7EopzIwtNyFjwOCQMYMk14Y54Ay7dWLM6N9xWMV3AzqlN7EjNms5+FnNEMKVv/CN1xjJy3KQsfOnkN9kTH7986DDnfMnumwS53177MkvmvnRryt7L2cN3ySZltmDwpB9X0O8JVs8thDZrF8xSCcM8gMO1sEE+/1L3DgeafqIAuN5xwx7fg6EM4lexzYXI5Wcx+ZHwPfWIHpyHJ/WiuiBqKt3v6o1WF7Wo6PwfpQnf0sKMEQD7LwK4NktJhxFGxBtFr16lb3tPmhL2wwJRTL/iY0eD3MA98XPrGPf2XRBbU59CwzdOzNNWULBzwTPk/x2Q+zgt6DWvvEvxNeqHpixjDDdHR1pVBkQH0BMjggiVRCX4gJ46mZPZ4Cl74LRjmsTM6F+oPmmu/8kque5gJL0ykoAwAM7c4UO1bTOYnkRXlOE/CLHmkF6EuzTHzd9A/sIn78KaS6+Bw2MnLzuPEfFnpOqgzz7wcfXjiZwGYKMEzkSlEGds/GIeE+K/LFg4q7990BVyBUE/JcjGN55Y+Kz4Dylzpe53b/lT2FKkHjlLBrKw29MdnbvcYcGcxzTb/vvLdUi850fETN9axBOCu+CFdmVDtyxGHamAGZDOS4xX3m21DbPcFl80Rqs7aNRN/ceUDr9KdeTqEuTvPTVEmWNCEOpyzHzOls3l03X4H9FwKaMuNk6ygZAa0uW+eGUQyqp+NcsO2cQYllz+zNqohMmV6DpWakhqkKR8usKkr/RBcw4/m9YCaz/usvUCinSSBr+Q==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5438.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(39860400002)(346002)(366004)(376002)(396003)(478600001)(86362001)(186003)(55016002)(52536014)(4326008)(9686003)(122000001)(9326002)(316002)(8936002)(8676002)(38100700002)(110136005)(2906002)(53546011)(71200400001)(166002)(64756008)(7696005)(5660300002)(76116006)(26005)(83380400001)(33656002)(6506007)(66946007)(66476007)(66556008)(66446008)(38070700004)(579004); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: +E/VmlmG8bH6dK6SPTTT+U3eTIz6gWKH2VMBpB9oPNFTvhBNCzy1pwRyg1brqq8SLUEe1SfsBeuhxYJppoJiCFJEovybAc5K4krkMyBxKIPmdCmTkomc09pEsdhAwGQbvE6jBPzomJSEQ9NXz+cDSRORY94ga4ROvpxYQlcT8/+bVz3smifOJ5YpTHQZEFlFR7Nt/jVmFe2KbmlTM3ejGZkjEykiWJFHTG6m8UP5xq6NyOJhPwRxUMYzG9we7cWs9fMfr5x9y8HzREFwhniceNUFJD1B0KAWL8N/xrb3B0FWWWUh4bfPsBdKa6eBFaEkx2QRgRy21J5g8Qjnf/KhF9G+5uEEzO441t8AKpUHRo+eARGZCVYqvzT+oRI6v7SryaLbzTUKRSWoY0FPnW2QuE5pKO9/j+vEzHlv4O6QrTsWCiFHFtrE1SPHTWEw2/Jr7mCXXYb5u9HkhJP7Xl8DpHAcd0HsIXXT7bYkRAhc3sb1vSEhY3zrj/0yEL4XPTmQRIcj5mcJwSCEjW3+eLjEUfCGh+LMKiQPGtsG1+v5VT2UjcbEIYaobE/xBUxUd/CbbHuah/Ya52hKC/PfYEFnGuwROWz3Ri+mFJe++Hf1rFmtZVbaExw4E2vJOYDyGKIlfyVaLRr9dRB7eLGZVEFuzdWUNbTc9E0oRijGriwgBpT2SSm4Q13AI41gJIHfkA8u7RTTfCd17FuEGX57qpa2DwQMbRLZbsrQjzndqwfNRaT9amit4ubgzRaE9JH30T6YEqzbtS/YRglIuQpVOMWCGz6dTY+tquuP+brJkw7ke3kWiIVj7zDqjQzDQUVx6LHIuJ8a24zZkNVohtWO/2MJEfQYLOlHRf3pbS7PKytMCx6RL6pCvHORl93SttZJduYRjH5MJi5ThPC8hI3oC5Fv2tM07T6wecJWsssTHl2lVHqA+GxFHxBhF46f7bu2uU2uhipDd7b3IZAsBUmuv8SHuz8OVFcmxIGc/oAE2QHdsqZETIItvrrSNfnl23elhRPyhbNO2LlVrfoE08m+EhAKje7cum2QUyfnQKdyHmi2kVQsr5PcY/9lPrvrpSkq5G2y1ltHOt90LEFfPkFqMVSkyixKPG2oK/um8cI6Pi5/hbJOc8SqYPAZsSt3iLrvGueUncZJzAcsARXMDpObX8tMyUlxnWAjjCQLX0W/W0BPKMPoYNtlhFXr3O4hlT84RBWVIEqn0+q6s2nUpWGz/RX54KbB9NQnMantDOpbm13yk7GmffuXBiQlGvJbxk2BUOpCrGixg3krqQpIjUz8kz95s6DL8vjYX/k9MKlwWov0jD2ecDLZszwG+IfoAza5Idgz
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_DM4PR11MB5438DFE51C5038B2452FA425B5E19DM4PR11MB5438namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5438.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0b850b59-8380-40a8-15c6-08d94ac1ab50
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2021 14:29:51.1926 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: TypewQJS+EL1dfxNMQcE3O/MKv0eioFINPjFdeQb4ELWBfq19My6z8QfxZ+vP6lp0TEdjbB00javKXj1kNmy5w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1531
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.16, xbe-rcd-001.cisco.com
X-Outbound-Node: alln-core-11.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/BtpxCe4-R_5UDoSjtv8HcqeVOUI>
Subject: Re: [netconf] Capability-fetching mechanisms
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Jul 2021 14:30:31 -0000

Hi,

I think that it would be good if we could somehow get to a conclusion on this thread, so that we are able to progress draft-ietf-netconf-https-notif.


(1) My first question is whether we definitely need a dynamic mechanism to discover an HTTPS receiver’s capabilities?

I would have thought that in most cases, the management entity configuring the subscription would also know what format the receiver is able to handle those notifications.  Given that there are two solutions on how to handle to share this dynamic receiver encoding parameters, I assume that there is a demand and use case for this, but I can also see an argument that any such mechanism should be optional to implement and the mechanism being lightweight seems like a benefit.


(2) Regarding the capability mechanism in draft-ietf-netconf-https-notif:
This mechanism looks pretty lightweight to me.  I did have a couple of questions though.

(i)                  Did you consider using rfc8791 to define the receiver-capabilities?  This could allow it to be put into a YANG module, which could also easily allow the information to be made available a YANG instance data document, allowing it to be used for offline purposes.

(ii)                I wasn’t sure why you used inet:uri’s for the capabilities rather than YANG identities.  I guess that this would be a bit more work because it would require both an IANA maintained registry of capabilities and also a derived IANA registry of YANG identities that would be automatically updated by IANA whenever a new capability is added to the registry.  E.g., following the approach for say for iana-routing-types YANG Module<https://www.iana.org/assignments/iana-routing-types/iana-routing-types.xhtml>


(3) After reading draft-tao-netconf-data-export-capabilities and this thread, I’m still somewhat struggling to understand exactly where/how the YANG module that this draft defines would be used:

(i) I can see how it can be used to provide additional information about what capabilities a server (i.e., publisher) supports, and it leverages draft-ietf-netconf-notification-capabilities.  I can see how it can be used to export server capabilities to a management client either via regular NETCONF/RESTCONF requests or as an offline YANG instance data file.  However, this is not documenting the capabilities that the receiver can handle, but instead is only documenting what encodings a server is capable of encoding the notifications in.

(ii) But Qin’s example suggests that the same YANG module could be used by a receiver to advertise the receiver capabilities encoded as a YANG instance data document.  Making the receive capabilities available in an offline format is potentially helpful but using the same instance data format during a dynamic exchange seems a bit more complex, and if it was receiving the full capabilities from a receiver (e.g., if the receiver was a NETCONF/RESTCONF server) then this could end up being a much larger file compared with the approach proposed in draft-ietf-netconf-https-notif.


(4) There is a question about whether these capabilities should be defined on a per transport basis, or generically, agnostic to the transport mechanism.  My instincts here are that not all capabilities will necessarily be supported by all transports, nor do I think that there will either be that many transports nor that many capabilities.  This would seem to suggest that defining these on a per transport basis probably isn’t likely to be a problem.

Trying to close this issue during the NETCONF session (or even over email beforehand) would be great.

Regards,
Rob


From: netconf <netconf-bounces@ietf.org> On Behalf Of maqiufang (A)
Sent: 01 July 2021 14:42
To: Mahesh Jethanandani <mjethanandani@gmail.com>; Qin Wu <bill.wu@huawei.com>
Cc: netconf@ietf.org
Subject: Re: [netconf] Capability-fetching mechanisms


Hi, Mahesh:
    Please see my reply inline.
From: Mahesh Jethanandani [mailto:mjethanandani@gmail.com]
Sent: Tuesday, June 29, 2021 6:41 AM
To: Qin Wu <bill.wu@huawei.com<mailto:bill.wu@huawei.com>>
Cc: Kent Watsen <kent+ietf@watsen.net<mailto:kent+ietf@watsen.net>>; maqiufang (A) <maqiufang1@huawei.com<mailto:maqiufang1@huawei.com>>; Zmail <alex.huang-feng@insa-lyon.fr<mailto:alex.huang-feng@insa-lyon.fr>>; netconf@ietf.org<mailto:netconf@ietf.org>
Subject: Re: [netconf] Capability-fetching mechanisms

Hi Qin,

Thank you for sharing an example. We now understand better what was intended. After discussing some, three things come to mind.


  1.  We do not have a particular requirement for an off-line format, and find it an unnecessary overhead of having to wrap the data with yang-instance-data.
[Qiufang Ma] We understand that http-notif has no requirement for an off-line format, but why reject an extra mechanism to get the receiver capabilities without a need for a live receiver side?
YANG-instance-file is made up of a header part and content-data. The header part carries metadata most of which are optional, and the content data carries our necessary capabilities.


  1.  There seems to be an implication of the receiver being a NETCONF server, something that we made an effort to avoid in the first place.
[Qiufang Ma] The capabilities of the receiver side can be documented in offline yang-instance-file so that the publisher can access the files in any accessible way. There is no additional requirement that the receiver side be the NETCONF or RESTCONF server. We do not even require that the receiver side be the HTTP server. Hopefully this clarifies.



  1.  The data export capabilities other leafs that we do not care about. How do we restrict the response to data that is pertinent to our transport draft? In the example you shared, we see capabilities for udp-notif being returned in addition to http-notif.
[Qiufang Ma] Our mechanism is to discover the full capabilities of the publisher/receiver side, not just http-notif-related. I understand that http-notif does not care about other transport capabilities, I think udp-notif is the same. Repeated capability queries for each individual transport protocol seem inflexible and incur unnecessary overhead.

Best Regards,
Qiufang Ma

For these reasons, we feel the that the value proposition is limited, while increasing complexity.

Mahesh & Kent



On Jun 15, 2021, at 5:27 AM, Qin Wu <bill.wu@huawei.com<mailto:bill.wu@huawei.com>> wrote:

[Qin Wu] Here is the example:
   The publisher can send the following request to learn the receiver
   capabilities.

   GET HTTP 1.1 /some/path/capabilities/acme-receiver-capabilities.json
   Host: example.com<http://example.com/>
   Accept: application/xml, application/json

   If the receiver is unable to reply using "application/xml",

the response might look like this:

   HTTP/1.1 200 OK

   Date: Wed, 26 Feb 2020 20:33:30 GMT

   Server: example-server

   Cache-Control: no-cache

   Content-Type: application/json

   Content-Length: nnn



   {

     "ietf-yang-instance-data:instance-data-set": {

       "name": "acme-receiver-capabilities",

       "content-schema": {

         "module": "ietf-data-export-capabilities"

       },

       "timestamp": "2018-01-25T17:00:38Z",

       "description": [

         "Receiver capability"

       ],

       "content-data": {

         "system-capabilities": {

           "ietf-data-export-capabilities:data-export-capabilities": [

             {

               "transport-protocol": "http-notif",

               "encoding-format": [

                 "json",

                 "xml",

                 "rfc8639-enabled"

               ]

             },

             {

               "transport-protocol": "udp-notif",

               "encoding-format": [

                 "binary"

               ]

             }

           ]

         }

       }

     }

}