Re: [netmod] YANG action not allowed at root?

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 05 May 2020 11:37 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
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 303503A160A for <netmod@ietfa.amsl.com>; Tue, 5 May 2020 04:37:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.7
X-Spam-Level:
X-Spam-Status: No, score=-1.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=jacobsuniversity.onmicrosoft.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 Q-DyI4dUpUPo for <netmod@ietfa.amsl.com>; Tue, 5 May 2020 04:37:54 -0700 (PDT)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2047.outbound.protection.outlook.com [40.107.20.47]) (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 26DC63A07A0 for <netmod@ietf.org>; Tue, 5 May 2020 04:37:53 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TiF64SmOhunXziJ7tNrfhsYCa+xBoZDVXMYBOXxYW5C22bQmSGQ3nUDu4CTqPaF3HR1xn4Qbba6hUoHvH7i76sT5JWA3W3d6GA3fATg6aB4dRW7y/NKPmU5BB/YvBzSMtB1UlKQzNbsvu1fH53nlnrO0kqHY7N8cwXSWAsOQky1X46/wYHS9qG9zvX4SkyabXy3SZfFeh0ccKcYiz30I87tHai+N1i7Pzo2c1EOUbNvUDh770sDS/BWHcdb4bGVcU/fcMU/FMOuxRdcMIYvshN30l31RZNJ5eWyodsKkyyBeWBsrQrXif/il+4QMB5txTjWOMtJq3ONkEhgKAG7f1Q==
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=Va5Ig3qQ0f6eC/ml5PM2xEGTv1HSAaA7DdMpBFYoh94=; b=JBw3D9odnZdFpMrUSGfVlt2cDIoMuwSHFIAcjG6b3J1i0+qqmfU7eV10fr3l6LRwQA98pOr2LR5DBbn7yN36dTkhkZkY/iXGU/P3G1X8qWSFduD/A3GeHhnCnFjW4gG5+Rr0SrXf/jkHSw265Hj8QcZTqxRXD15cmmLzOmScq1LX+Sc22MqEuO6frFN6qM4sq5IxKuxsO0d0HgI8XofElIsfMutWBbWpp9TeG9I+QF4Gf+mkO4wDE4Uok14GGAssWgCR8YBLgEeTxIDFuEW8WyzIcL6Bmegvx0OAQOPSJO2pgypOseJowlAN8hMMOx4nv1xxcIZ8jlyY2ojRAvMQyg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jacobs-university.de; dmarc=pass action=none header.from=jacobs-university.de; dkim=pass header.d=jacobs-university.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Va5Ig3qQ0f6eC/ml5PM2xEGTv1HSAaA7DdMpBFYoh94=; b=AhIt4iwOV9PSgERx3v12ZdapI4lONvsyouAW5JFiZNjBJj4SSDmN7bF3KBeOnZSZFh8mWl6WsJIRipfbj34Z+FkthCF8HhrBEH/ciQSaegOICgC6BV7FiUl3KeTo3JpdcbQUyi7H/E/iEF3U3BPFCDRq9ublmmKaj23dw1WqT+I=
Authentication-Results: hedeland.org; dkim=none (message not signed) header.d=none;hedeland.org; dmarc=none action=none header.from=jacobs-university.de;
Received: from AM0P190MB0707.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:196::24) by AM0P190MB0721.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:1a0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Tue, 5 May 2020 11:37:51 +0000
Received: from AM0P190MB0707.EURP190.PROD.OUTLOOK.COM ([fe80::dc34:2067:88d1:c483]) by AM0P190MB0707.EURP190.PROD.OUTLOOK.COM ([fe80::dc34:2067:88d1:c483%5]) with mapi id 15.20.2979.025; Tue, 5 May 2020 11:37:51 +0000
Date: Tue, 5 May 2020 13:37:50 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Per Hedeland <per@hedeland.org>
Cc: netmod@ietf.org
Message-ID: <20200505113750.4tcb4abfrurztsrd@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Per Hedeland <per@hedeland.org>, netmod@ietf.org
References: <AE95765B-0561-45DC-A4A8-E8B3BCE4BB12@cisco.com> <DM5PR08MB263359FB2993EC569444A4539BAA0@DM5PR08MB2633.namprd08.prod.outlook.com> <0533F71D-C017-40A5-B953-21FFF9CBD1FB@chopps.org> <20200505.110011.1423220937314479731.id@4668.se> <f96eaddb-47f2-9f43-9e7f-5d60987adb27@hedeland.org> <20200505095510.gs454i4ubmbs6m5u@anna.jacobs.jacobs-university.de> <7554d71a-256f-9b29-02e3-e2e7a3e0e474@hedeland.org>
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <7554d71a-256f-9b29-02e3-e2e7a3e0e474@hedeland.org>
X-ClientProxiedBy: AM0PR06CA0097.eurprd06.prod.outlook.com (2603:10a6:208:fa::38) To AM0P190MB0707.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:196::24)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from localhost (212.201.44.247) by AM0PR06CA0097.eurprd06.prod.outlook.com (2603:10a6:208:fa::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20 via Frontend Transport; Tue, 5 May 2020 11:37:51 +0000
X-Originating-IP: [212.201.44.247]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: f8934ae7-7334-4be6-5969-08d7f0e8be69
X-MS-TrafficTypeDiagnostic: AM0P190MB0721:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <AM0P190MB072183AAFD81D317677CC522DEA70@AM0P190MB0721.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:6430;
X-Forefront-PRVS: 0394259C80
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: FvDPCi+nWEQFmZ7XTEBMu4FSJ2jPxLPw6gjy0g/DybrS2Na/on9ajyUxBm4DNbvKP9XUeh7cOrmAXrfeXuiP7HUeGv23Hri7regCEmUXWUDHsrjLiE9tKELvVke25bjG/N4FuZGkoSy7yVcJyEfzrk08g4dIQKezqsNZ8G+Snko0TTOsdl0MW5PQEYjjT0nhvbG3uTid19kKXWKThqoGOYKJmRwEetZ/57OqFgFQHHA4QcEofn1W5vtbi8FpY9GOf5FKXqj/4joTuNS/hu9dMAcaVRF3YKqt7gappYQ2UsIPiS7WU2N+VmUQ9vPEY5jZ8TLudXf/0/tL74yOnTbmH232MTGZIRVgrgdC+4ajijLam/x2EfQkNc+iH24bfvv40AhtM9z7BYCZjdCOMUWYJEAp5JvSE3J+/ZtLLwX8D/P48KuGFyrimj6cy0J/CM0kTvIaFBWITISt3PfKEdWehvElbzh9HJDTzqdctptCHXxHNQQxO7b3FbvP+2T2u9GgrmAtYqK9ID8wFsnmbAXPzIVaHHRFU8O6xT4RcqFJ8S2QwVd0gH1T2zmXzrMD4/LBGa4A7ubheIX5QAzoYNSn+3yR9Fs8wr5AtjZO+jHBudw=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0P190MB0707.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(396003)(136003)(346002)(376002)(366004)(39860400002)(33430700001)(186003)(16526019)(66946007)(66476007)(66556008)(316002)(83080400001)(4326008)(5660300002)(8676002)(3450700001)(2906002)(786003)(26005)(8936002)(6916009)(53546011)(33440700001)(86362001)(66574012)(6486002)(956004)(1076003)(478600001)(6496006)(52116002); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData: 9KfdTbzdZSs56FtjSrOmTRwl0q7YBJ3cm0yRnpxTWQYNAyoTe0rpma7GYHwWCqlFHf9M9TrXnXRyu+ICWkfAnN3A314hQQC8rogxWT1XW3E+IBQWb5PkwRGPO1eRWFY74AMv9rPqC4KtG0hCI4gqDUy6xUMRZ1/y20VUgEA94tusHiHzzdIa98J4BgBEbZagQwFjRSU4iWbZuL5iJPAQAIFNVHXJWI6O0FYpqokzEuzJlrj1pwY8gHvm5gH9a8z5EcGnNYUYB4qs/IrQUkvRxMfEpzwlb+I9n+57Qv3PTamSdiCafgd8cXVrb8WOZUvkl9gq2k0qHxhIBoSVddEZ3fulD33MtOBfRfeEOZ+40QQoq0jrIe7RxV59TaEotezwwbLjEeB1fuM2D7Ds9O+EEfxF2hg2PB0fjuRtdehqdId7efIM9ASNtQnsXCB/vR5XPYuu/C/oB8qJtrmcV2kW2UNQ6swg/DeG6NM53C8jUlqYZPnf28NJ5yr5UGkIz2QjGu2ARhjoj1j660dpBixbDNMLlT5yRuy40xSqQ3K4z6mhuszGCM1uyst3BBX5+FYyPcf3FGdjebQrhtVYMDomtF4J/yMMH91vDHu7VU4U4NXLns0E1jHdeT3hDJyPVwyPGGmsiyHagJ/k+8c1qBMkQmUPI3A54Eu/hkR3fawkYQv3492dILSSZDIqBJ9E32FLfVbe49v73/iE5ba7CUQE7xPlRjaLr7AfDbDLjHxvLRTmcXnomkJp3KbFMjHGgV3Didr5IZNkif0BcvAUTPWuR/lfWY1LCDMx54HzzeUIJfI=
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: f8934ae7-7334-4be6-5969-08d7f0e8be69
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2020 11:37:51.5650 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: vLgk86jZgdUU7SqRHdxbsOGC9jxRWChwnuOTppKi8hYm2FHdSrkQrWgnz7swm/crQiHYyLFwhIUdpZHhK54lV0ovX36aVVBEzKTxwcjo+Uc=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P190MB0721
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/V0HWx5xHMpJFriVg6xL_C0UZd-E>
Subject: Re: [netmod] YANG action not allowed at root?
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, 05 May 2020 11:37:56 -0000

On Tue, May 05, 2020 at 12:06:34PM +0200, Per Hedeland wrote:
> On 2020-05-05 11:55, Juergen Schoenwaelder wrote:
> > On Tue, May 05, 2020 at 11:45:41AM +0200, Per Hedeland wrote:
> >> On 2020-05-05 11:00, Martin Björklund wrote:
> >>> Hi,
> >>>
> >>> If we were to redo YANG, I would prefer to have a single statement
> >>> "operation", either on the top-level, or tied to a node.
> >>
> >> So, no rpc statement, and thereby no possibility to extend NETCONF
> >> with new RPCs? (Or to be precise, YANG would extend NETCONF with
> >> exactly one RPC, called "operation"?)
> >>
> >
> > OLD
> >
> >   rpc foo {}
> >   list something { action bar {} }
> >
> > NEW
> >
> >   operation foo {}
> >   list something { operation bar {} }
> 
> Yes, that much is obvious, my question was really about the NETCONF
> encoding.
> 
> > Syntactic sugar if you will.
> 
> So you're saying that the NETCONF encoding of "operation foo" at the
> top level would be an RPC called "foo", while the NETCONF encoding of
> "operation foo" elsewhere would be an RPC called "action"?
>

Yes. Unless you want to change the protocol (or the protocols) as
well, which would involve another WG (or even WGs). Perhaps this is
what will happen if we were to start this.

But ideally, we would use a YANG next activity to get the interface
between YANG, the encodings of YANG defined data, and the protocols
better worked out (since we now know that we have several of them to
take care of and we I think we learned where we could have made things
simpler).

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>