Re: [netmod] RFC 8349 action input augment

"Rob Wilton (rwilton)" <rwilton@cisco.com> Tue, 11 August 2020 10:05 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 B84333A0F50 for <netmod@ietfa.amsl.com>; Tue, 11 Aug 2020 03:05:42 -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_H4=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=it8xM8iw; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=AlCE/Agd
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 wxGOdcJr0yai for <netmod@ietfa.amsl.com>; Tue, 11 Aug 2020 03:05:39 -0700 (PDT)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AF39E3A0F3B for <netmod@ietf.org>; Tue, 11 Aug 2020 03:05:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2169; q=dns/txt; s=iport; t=1597140339; x=1598349939; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/jIRuFVbhzZFgxTu0l7gEYilE+Vs4IP0AxAR3NkLLAs=; b=it8xM8iwBFfSC1kERZ/Xw9TAZyTLDSRhCZAg9goJbfF63q7O0tcFy3RS b1VPZotsAHnmuIKHjBMFWHr8u40CunSwVfvD6foU9Emq6TnxfsjXVIKCC QRRYkFu90kB8P+a0TYjZBy229zVOGoKSAkiBkz3zQTUCP/TXw484M/jzy s=;
X-IPAS-Result: =?us-ascii?q?A0CXBQAWbTJf/4sNJK1gHAEBAQEBAQcBARIBAQQEAQFAg?= =?us-ascii?q?UqBUlEHb1gvLAqHcgONUphmglMDVQsBAQEMAQEYCwoCBAEBhAhEAoI2AiQ4E?= =?us-ascii?q?wIDAQEBAwIDAQEBAQUBAQECAQYEbYVcDIVxAQEBBAEBEBUZAQEsCwELBAIBC?= =?us-ascii?q?BEEAQEBLicLHQgCBAENBQgagwWCSwMuAQMLpzYCgTmIYXSBATODAQEBBYEzA?= =?us-ascii?q?YNcGIIOAwaBOIJxih8agUE/gRFDgk0+gQSBWAEBgWGDSIItj2SKIoEYmwwKg?= =?us-ascii?q?mKIY4ZKiw2gEpIuij2UdwIEAgQFAg4BAQWBaiOBV3AVO4JpUBcCDY4fDBeDT?= =?us-ascii?q?oUUhUJ0NwIGAQcBAQMJfI8hAYEQAQE?=
IronPort-PHdr: =?us-ascii?q?9a23=3Ahkf1OBUpkHyBjLWeKtMZ2CCM7ujV8LGuZFwc94?= =?us-ascii?q?YnhrRSc6+q45XlOgnF6O5wiEPSBN+BufhYgO3Qta3rRSoL5pPS+HwBcZkZUR?= =?us-ascii?q?gDhI1WmgE7G8eKBAX9K+KidC01GslOFToHt3G2OERYAoDyMlvVpHDh5yIZHR?= =?us-ascii?q?P5OAFpYO/yH92ag8G+zevn/ZrVbk1Bjya8ZrUnKhKwoE3Ru8AajJEkJLw2z0?= =?us-ascii?q?7Co2BDfKJdwmY7KA=3D=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.75,460,1589241600"; d="scan'208";a="517615204"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 11 Aug 2020 10:05:38 +0000
Received: from XCH-ALN-002.cisco.com (xch-aln-002.cisco.com [173.36.7.12]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id 07BA5cVZ023947 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 11 Aug 2020 10:05:38 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-002.cisco.com (173.36.7.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Aug 2020 05:05:38 -0500
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Aug 2020 06:05:35 -0400
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 11 Aug 2020 06:05:35 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ic54m2X3kjwsGH21vk70OYK9Ystb5R65GoiIVAD/Gm0QiCI7r0sPCCM5f26n481uBrKNxDQbPxkl7uf4mAXuG4OL2NHptsZ/Rk6GvST6ANH8ZdSNBbwoP82qEHIPqY+R7cw2vi4inOO+3/MN4MiQ4L+usSiqYwCVfaCa5spRaZEzfRCnkJkUpV5i8YTr5BzVfVHKsxVuc3kRR/O+14gIeKups00Ej/Id5tzVIWfcL6HQYLJ5dvdmQD35/zUYzFdzhp0kEhqzrLUuk5aVsMuwWyQevJSejE2J0wpamyk1qtuKFmpdg3VfZpyILgZf6Shcr8vIGiOop9FbNT/LnK8aXw==
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=3wIXCXviyr/391mUViQI3i7w0y28TT3TTX1sxGpaNAM=; b=Dfc33XU3MscIfkQcOoV2BSpodPWZNf/LQbGB+CZbYMsmJAT7yapLEPgFmv/uEG9LBJYbNxH1kwZuMFbXxXmWVi5dL4zHNnPLHhRU/FMVHtW5lmIJ0E7CxgeTIvfsP1YJEBZAMEoyYHvRU0Xzrrut0eiehByugZfuCFCROVXusfSdn82oDF/cPp7SKwW4n32d0N23VqsJLjuDDndMemy0cjj2t+0KZUR2NUDw3S2tMy5FQOEiMBBYGb0hLyLstCD9mPXo2KL+kEytYNLGqBhcWPrdlgF0L/FCBb1JcnCCY+MVp28vvY2zGSIFYd6fH+61JfxQUpY4038LLNHEKOBgow==
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=3wIXCXviyr/391mUViQI3i7w0y28TT3TTX1sxGpaNAM=; b=AlCE/AgdWbKqITefmfEIluvlUEwL9ccSHeT0F73eBlqRTvxuv8HM0sUJRhyKyMzus1v7JTyhA0iasEy6aCduQfEsNbN5In5iQLwDNAXQ74K+Gxoc2yKqRy7Tu+m8aC3FlmtdIudM+b8U2K5r/sd2OdHsi8L0bsdr0nNVpYmm4qA=
Received: from BY5PR11MB4355.namprd11.prod.outlook.com (2603:10b6:a03:1c3::13) by BY5PR11MB4452.namprd11.prod.outlook.com (2603:10b6:a03:1bf::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.15; Tue, 11 Aug 2020 10:05:34 +0000
Received: from BY5PR11MB4355.namprd11.prod.outlook.com ([fe80::89eb:d4b3:e75c:e75]) by BY5PR11MB4355.namprd11.prod.outlook.com ([fe80::89eb:d4b3:e75c:e75%4]) with mapi id 15.20.3261.025; Tue, 11 Aug 2020 10:05:34 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: tom petch <ietfc@btconnect.com>, =?iso-8859-1?Q?Martin_Bj=F6rklund?= <mbj+ietf@4668.se>
CC: "lhotka@nic.cz" <lhotka@nic.cz>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] RFC 8349 action input augment
Thread-Index: AQHWIs/NBo9GTcKUnEi2vXzEl9muV6iZXf0AgABEYACAmaWw0A==
Date: Tue, 11 Aug 2020 10:05:34 +0000
Message-ID: <BY5PR11MB43552424C57C1E8B5DBE350EB5450@BY5PR11MB4355.namprd11.prod.outlook.com>
References: <158859819282.16144.11762511824828734226@ietfa.amsl.com> <DB7PR07MB45224A311C4FBBAA4A58506CA0A70@DB7PR07MB4522.eurprd07.prod.outlook.com>, <20200505.133916.703258076078896929.id@4668.se> <DB7PR07MB452200F7FFA45361F8A8DF02A0A70@DB7PR07MB4522.eurprd07.prod.outlook.com>
In-Reply-To: <DB7PR07MB452200F7FFA45361F8A8DF02A0A70@DB7PR07MB4522.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: btconnect.com; dkim=none (message not signed) header.d=none;btconnect.com; 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: 888a3e38-8deb-4d5d-04c0-08d83dde16ca
x-ms-traffictypediagnostic: BY5PR11MB4452:
x-microsoft-antispam-prvs: <BY5PR11MB445220944A0FA4B0078C24CCB5450@BY5PR11MB4452.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: UHq3mB962+DLypiDQ0Ir2642uvfX2Gn56U64WjCJSKL5Zqh/6YIWAaQUuQkwNDl57Ig821126ppcxgISqLi3vlaQN7AXHjjK6HssMI6zmNJlF7SQYKCnzvRwP9lWBpxy5A6V8Xd0QFzp56CEDFGmSTNlRIG86NvzvLT6HBtC7hwxWkS09dTd+GJ/OkpYupqQTpV0T4VUV4qvpvTz4YsljltfrkRGn939rhM+4pfqqF1QsG4jW1qu+DpNcV5QuzsZUm9R3ZuW0CD48Nzj1Z2lQ/O8aV9JL4w/CZSejQhlhOXT0/R0OXqU4u+HbsBeqpBEcJyfhJJD3w7aRiYsYfC8/jUr/twk5vHEXQ/BMkc+0yydHPNDeZ1EF0Y1POJK1xQ5MeiqFHugqfY6dx3cRPtKrQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4355.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(136003)(366004)(376002)(346002)(8936002)(7696005)(54906003)(5660300002)(33656002)(9686003)(6506007)(53546011)(26005)(8676002)(71200400001)(66574015)(2906002)(4326008)(83380400001)(86362001)(55016002)(296002)(110136005)(76116006)(66556008)(66476007)(316002)(186003)(966005)(66946007)(478600001)(52536014)(64756008)(66446008); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: 4SMF4ZXmkwxsnIYo2wvMXOBY7HTitasGcQG+K51nVpxw2xncaCIxmXOfk+XuDF6z3AgdVIWjx6WZ8fb6+3uchBbTp17vB2Exy6K0OVGHl6DWFU3EGMhmhsbfQDb07cyze/Gc3jLiTv6MN9CcrFX7jHR5abmHMg0WvARicXiaFGrNjTiAaZQkT+LGOscXWa++Z9dVlbixhI+HA5tOXbDloTbjcxYA2YHL3WdWPk6uNvs8jn+w6WI1fPC7sjCuOvMPGNx9XXedyoFSw8Ut0Z8l8wJLHBfr1kElb2JZ3SIgdxHk1uguDmGaNLxRUkpk8j/fi2bv473vSn8qcr38/+me5MxUwWAmYy14x6r0TYY1Di85RFo1ThZVfHbRWhX6N18AlOCOejIDgLD1RGPwKZ8QKCLWyB7/Hcj9Wqqp1q1hEK+hxAmVv16KPKNpfthkwS1u5SItTubL+P0Rp3kLEq0CaTMJ48ZD6YmOkhvHCCIiqeiS5HfVm+OgMbUHjIQwktE70rIh4AwX6qTed14C8zO5ZYBdiGLBbgY31Rz3KfvVTUq3p/I7s5k3pebqPDMM2uzZys4BU4xRiG/mtLmvhj0raXouHIsXi8ey7dd7gN99r3fa12YPgW+YZOxKxVatXWeyhDvxAeTH2FRk2/s8nOMBBA==
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-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB4355.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 888a3e38-8deb-4d5d-04c0-08d83dde16ca
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2020 10:05:34.6417 (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: 0Dc42sxLS/vzEGlil0I7AmpdgF3av6sniJSK+VsnCJe84AFnc9sJog19xadc+tl2AtkDQxz1xwIsRLx+QwZfQQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4452
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.12, xch-aln-002.cisco.com
X-Outbound-Node: alln-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/VEZo_OFV_OuJlY6e7phR0xIl48E>
Subject: Re: [netmod] RFC 8349 action input augment
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, 11 Aug 2020 10:05:43 -0000

I've raised https://github.com/netmod-wg/yang-next/issues/106 to track this.

Regards,
Rob


> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of tom petch
> Sent: 05 May 2020 16:44
> To: Martin Björklund <mbj+ietf@4668.se>
> Cc: lhotka@nic.cz; netmod@ietf.org
> Subject: Re: [netmod] RFC 8349 action input augment
> 
> From: Martin Björklund <mbj+ietf@4668.se>
> Sent: 05 May 2020 12:39
> Cc: lhotka@nic.cz; netmod@ietf.org
> 
> tom petch <ietfc@btconnect.com> wrote:
> > RFC8349 specifies an action with no input and says that modules that
> > use this MUST augment the input with a leaf and that the leaf must
> > be named destination-address.
> >
> > Is there any way that YANG can enforce either constraint?
> 
> This may look correct:
> 
>   action activate-route {
>     input {
>       must '*[local-name(.) = "destination-address"]';
>     }
>     ...
>   }
> 
> 
> .... but unfortunatly we have a CLR in the definition of "input":
> 
>    input-stmt          = input-keyword optsep
>                          "{" stmtsep
>                              ;; these stmts can appear in any order
>                              *must-stmt
>                              *(typedef-stmt / grouping-stmt)
>  HERE--------------->        1*data-def-stmt
>                          "}" stmtsep
> 
> 
> We require "input" to have at least one data-def-stmt, which doens't
> make any sense, since we allow an action/rpc to not define "input" at
> all.
> 
> <tp>
> Thanks for that.  I thought there was a reason but did not think to look
> there.
> 
> As you may have guessed, I just looked at a YANG module which broke the
> rules, added  a leaf but of the wrong name.
> 
> Tom Petch
> 
> 
> 
> /martin
> 
> 
> >
> > Tom Petch
> >
> >
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod