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

"Rob Wilton (rwilton)" <rwilton@cisco.com> Tue, 05 May 2020 11:16 UTC

Return-Path: <rwilton@cisco.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 5A4A23A1642 for <netmod@ietfa.amsl.com>; Tue, 5 May 2020 04:16:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.598
X-Spam-Level:
X-Spam-Status: No, score=-9.598 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, 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=eSgXc9Fv; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=lsESU0X3
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 Zd1zi9mofDYT for <netmod@ietfa.amsl.com>; Tue, 5 May 2020 04:16:46 -0700 (PDT)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 31B2C3A160A for <netmod@ietf.org>; Tue, 5 May 2020 04:16:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1823; q=dns/txt; s=iport; t=1588677406; x=1589887006; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Zxtnhv/gJyBUKjfszMbJUgthrNDio3okWGE4YST+8zI=; b=eSgXc9Fv0SC59kVIqmFt6zMv9UMwZoY+gceeBDV4OzZscGp/G55TdPE5 SNx2YWFKkxn/dDfm4fwNEpo6CU16FLD6klXZsepteZUXaiG7/mJiMjdzr esadznHsVHFaF8GBhXWubTo2Qcz/vuSnJXXeHfNu7A/ebdd/GKA8xlLEX Y=;
IronPort-PHdr: =?us-ascii?q?9a23=3AK/jqpB0kpK9MLRF3smDT+zVfbzU7u7jyIg8e44?= =?us-ascii?q?YmjLQLaKm44pD+JxWGvacx0gGZG57WuLpIiOvT5qbnX2FIoZOMq2sLf5EEUR?= =?us-ascii?q?gZwd4XkAotDI/gawX7IffmYjZ8EJFEU1lorC3lbxgTA8utL1HXq2e5uDgVHB?= =?us-ascii?q?i3PAFpJ+PzT4jVicn/1+2795DJJQtSgz/oarJpJxLwpgLU5cQ=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CzAAAuSrFe/4sNJK1mGgEBAQEBAQE?= =?us-ascii?q?BAQEDAQEBARIBAQEBAgIBAQEBQIFHgVRRBW5YLyoKh18DjUeYNYFCgRADVAs?= =?us-ascii?q?BAQEMAQEYCwoCBAEBg39FAoF+JDgTAgMBAQsBAQUBAQECAQUEbYVWDIVxAQE?= =?us-ascii?q?BAQMBARAuAQEsCwELBAIBCBEEAQEBLicLHQgCBAENBQgagwWCSwMuAQMLp2Y?= =?us-ascii?q?CgTmIYXSBNIMAAQEFhUwYgg4DBoE4gmOJYRqBQT+BVIJNPoJnAQGBSxyDQ4I?= =?us-ascii?q?tmQ2ZSAqCSJgznSCQF50cAgQCBAUCDgEBBYFpIoFWcBU7gmlQGA2QQoNyhRS?= =?us-ascii?q?FQnQ3AgYBBwEBAwl8kDoBgQ8BAQ?=
X-IronPort-AV: E=Sophos;i="5.73,354,1583193600"; d="scan'208";a="747337854"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 05 May 2020 11:16:44 +0000
Received: from XCH-RCD-001.cisco.com (xch-rcd-001.cisco.com [173.37.102.11]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id 045BGitN011959 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 5 May 2020 11:16:44 GMT
Received: from xhs-rcd-003.cisco.com (173.37.227.248) by XCH-RCD-001.cisco.com (173.37.102.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 5 May 2020 06:16:44 -0500
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 5 May 2020 06:16:44 -0500
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 5 May 2020 07:16:43 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=juWUEs8GP09L+k4du8j5/beea6YxT1IrRGu6+CdPBoSSsDfSgTcsATRTQDUvnLwr41JLBXcri7AmNdqvHjUILZ/wgzCbcNXHt3JJqEp6YpIy33wVps43FMQ4Rq4c+j2YlXWm6p0BhGD+eIunvoRuEkQ1fa7qYLs68lo2OAv763ZwAVXr5hD0+zOCvTZcXywgmNOVOgybtGz/K1DmzJct6fR7nZAcoBGazYbgHqwafZXHNrxfFj+KaD1lDkUlkUc4DBVHyM2HEu0Ygj06R+riH+8UMmw7ldCUAJpamf1P0BOIu89/cED41PdAkxQgVJSkMU3wp/NMWq82ijeZAS4dGA==
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=agUtwzkeBTrvrzTmnHeWPNoT4DgUo5+LuFYYrcJxppw=; b=iQnPFLaBhOCjiG0fNKUtqbYvNcANFMyKmF2c+MJdqHh2V2JufnXwIvkzaCHhQHgOvNUhbYbNSQMIfv61tiyxDZ/PAlRhbsaHHmsWpCyAUaekd2E6NMmo0Uf76kCPIO2GTJN4eVsab6JGladAL5u5NEQVmFr62BijCcPaZRQAV11Pe3FiBn2zQ9FFxSEVRf8vc8xozJ03FRBSidqTE3PzyxMBzHBs+msncVlP3RIAKQtFY6702xRsO+w5qnpb3oFIQwLYWjUvYEzomCegI/9z/pYMbW1LZvaYeErTr6sRJVT/oqRjqLPQGpVVLrMW7YylQbNr6eiQcV5caU3IP0w7Rw==
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=agUtwzkeBTrvrzTmnHeWPNoT4DgUo5+LuFYYrcJxppw=; b=lsESU0X3FMl6sxzfeX6+MY9zC1ADbUgEMVRXG20mnWUUHVaGekNStOIEkvNq/HoAd8qbZ+N9DJ7BCfzQWoEjFFPUdRM2wwttapC6QWPwf1mPLEUbHkdRTGC0t/Hjj2ktyPT6UU+9dy40Bnu3uxGTPUEMqjCkuytsqMh2GJ0AYAA=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by MN2PR11MB4014.namprd11.prod.outlook.com (2603:10b6:208:137::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.27; Tue, 5 May 2020 11:16:42 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::3:2164:a8e2:33b3]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::3:2164:a8e2:33b3%5]) with mapi id 15.20.2958.030; Tue, 5 May 2020 11:16:42 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: =?iso-8859-1?Q?Martin_Bj=F6rklund?= <mbj+ietf@4668.se>, "per@hedeland.org" <per@hedeland.org>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] YANG action not allowed at root?
Thread-Index: AQHWHwRZTrnmeHaqAkuESYf3B2vfKqiRzWBggAdlXYCAAAZkgIAADLaAgAACpwCAAAMvAIAABpyAgAALx0A=
Date: Tue, 5 May 2020 11:16:42 +0000
Message-ID: <MN2PR11MB4366AE68FBE84A768B8B7165B5A70@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <f96eaddb-47f2-9f43-9e7f-5d60987adb27@hedeland.org> <20200505095510.gs454i4ubmbs6m5u@anna.jacobs.jacobs-university.de> <7554d71a-256f-9b29-02e3-e2e7a3e0e474@hedeland.org> <20200505.123013.1305793718479337992.id@4668.se>
In-Reply-To: <20200505.123013.1305793718479337992.id@4668.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: 4668.se; dkim=none (message not signed) header.d=none;4668.se; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [82.15.79.32]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: d720be50-1430-498e-9aa3-08d7f0e5ca37
x-ms-traffictypediagnostic: MN2PR11MB4014:
x-microsoft-antispam-prvs: <MN2PR11MB4014DD95ABAB4E518535522BB5A70@MN2PR11MB4014.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:5797;
x-forefront-prvs: 0394259C80
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: vj3Fz0NzDd6GrFu5BjwCsq9j1d007HDG6M3zD54nbmYkCxGP2bJCTO8iT5F3yuiqhlYXr2qYGHKXzZOJI0YbE4fuJy/n/49nr/to2izpnVNMLrMoNhIG92zN+Zj+Lnh934nLUqwsQp1UjPi37jjwi0P2JGZpsMMfDkSr55yxBZOLzgEN80vFh4Dh+cRhy3VFIe/CLJ5Fa65woPtiEYrlOCjD4h2/jrCCYFHlBq1eJMXkAAHr1r0iWB47ppVqc88GtW3Aw0YYshvChPDfwBB7D+G9hFw/eRDQgVPysmvS9myGzpBPsBRmNQsB+Bj5qa9jg0oare+uUwWLE7+ox9qoY2vz0Aaw5qQckLgOR8nhJyI3sk/ZTkgb3QNpU4ov9C0Q2J0z9eGbh4F4x27uJKxTLe21L39IEMGLSlUqOJQtHKxJ/qisNsH0dA6WHzSe/GJ8ihZMPmIOKcx9/9ceAzS9bfOQHAtG/aborada0Vj6oHJIqtlaR8dX8K5vdLaP8wh2A+fLnUQ/LNIzvctK1nS2okX/trspNfq+0iEi6pK2UAy8QH07XHFa6/zL7069STsfwVixYFJzm/VHHXlffbrlhZAmT3VCcfgRNWfREc4i5KI=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(396003)(346002)(366004)(39860400002)(136003)(33430700001)(478600001)(5660300002)(110136005)(8936002)(55016002)(316002)(52536014)(7696005)(33656002)(2906002)(76116006)(66946007)(86362001)(4326008)(9686003)(71200400001)(8676002)(66446008)(6506007)(53546011)(64756008)(66556008)(966005)(33440700001)(26005)(186003)(66476007); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: vaCM6QClFRx9lT/+iW6b6FITzlkcy3UsUqB3arYx5Gszp+Q00Imbab/JcUdvcaJt0q4H+6Rpc9jPHLhC0XK/WepfbnkJ35qKeuPLYyHKDyQozf0zD2B7/NrpSh2ew7m/RJuarGYgQx8y9boeWxcJqml5ePf5ZXTgolQTreGi5PNuwnRr9oGLlnGv9ib49J28fgEmsze0YgtgDJD0F7tNy7qZS/d/0Md0KPR6qfmNG5ewSak0YjZRsBXHHcqX0KlcgbQIi9m7x1/sezalY7B5/WL8PIZEbRLbShC2+Fcrvd+XqL1y2Ei/reBlAmX0dXvW/QuktPNqwZCHWJ6TCVv+D9R6AsHg5laXKE76V4KvWk5lxl+upg//xvbgjvsGLvnexiwo7cN3wAjoj/bRv9mW70ijThofkjHFVbIps+yLywN2FCOC47QOyowHfwzkXpJF5vY16+JKm8UIOGUmjsRytNghdWn14A1VLT+hrp+jzJm6pZTmiQJU1H0keK9lCbevvxqKbYMvSEEf4BJvOKiw+k5Sdmz5Mz4fRtLS06O2hj2dhuc/tg9TDAsHmBELMBETu7pEUn1MGO3yftKFzkc+rPZGExcwXpp3i5rhQmKJVnaCW2S8l8XgtUq1KW2+LkIw1lIT85njOD26zPRtoNc76vRYVUsbUlhfd56/q7G5F2o8LXYMiZgkSD+tjuwgQOIQpecuOJ51b/aYSBgLKl81Fgm9BEpYTIcgngXwz9HRZ8p29dk+ecaa23BtTAf3zzQu4503SShL25pHzPJ7cBqFcVYgGqi4shHpYc0CbfnilmA=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: d720be50-1430-498e-9aa3-08d7f0e5ca37
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2020 11:16:42.4764 (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: 6HP40Hnm40sbcQFlnth8o0sXbUnZejBc2TIvsptLJnyiH8Z2ylaFOJrdWilqPVHV3yBoqDeefl0gcnGQm0mg/g==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4014
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.11, xch-rcd-001.cisco.com
X-Outbound-Node: alln-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/51jb9LDwRbDGcuOq1l1yhOGi3-Q>
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:16:48 -0000


> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Martin Björklund
> Sent: 05 May 2020 11:30
> To: per@hedeland.org
> Cc: netmod@ietf.org
> Subject: Re: [netmod] YANG action not allowed at root?
> 
> Per Hedeland <per@hedeland.org> 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"
> 
> Yes.
> 
> > while the NETCONF encoding of
> > "operation foo" elsewhere would be an RPC called "action"?
> 
> Yes; or called something else.
[RW] 

What is your reasoning for not wanting to unify the encoding?

E.g. always treat the encoding like action, but with the <action> node removed.

Regards,
Rob

[As an individual contributor]

> 
> 
> /martin
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod