Re: [netmod] [Anima] mcr's YANG question raised during the ANIMA WG session

"Fries, Steffen" <steffen.fries@siemens.com> Fri, 05 August 2022 15:14 UTC

Return-Path: <steffen.fries@siemens.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 4B971C15948A; Fri, 5 Aug 2022 08:14:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=siemens.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CgBe9twtyDUf; Fri, 5 Aug 2022 08:14:06 -0700 (PDT)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80072.outbound.protection.outlook.com [40.107.8.72]) (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 21AC6C1595E6; Fri, 5 Aug 2022 08:14:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SNoA4I5hNaeJdX4E2QV/YxyF7NVncG9LtxK1drEXluXjCpjEnizwzJd3ILoDI4UHZzosm43XhtkiEVt3NAYnEqmbLqX/IrkfFeGNjIYF+4JLH6Esifqq49qGOUNginRq1A6KgqtzTRpR40QCTUx/E3NVOeeJwjo7Wvq5htX9gz4TtWOkvour/B74bqlJaKBRpTrbolFnRBT+gt8r4EcEMpqvq5bcoIcEuVbE4YuCZiWOOe/GePM8Z2mi5HMX3X8g0UokB/Y0edYVNAgDz0tsAvfgSlc+kW75y5PEeOwaYoD/QNMpdKGAOTaZTZuxCW+z4ie9Gp0siUl0B1czq4Owzw==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UCOY0ugqcvGyivijqXZ6NrKhMqKfKr9lIBuqO+9RgiY=; b=c2S0Hjhgc6A4npkpGeXvHm3moVxeCub9t6KIZkA1P11lfZw2cZoHuzrlxnEUrprZljdRuuSN26XDbs/YWYL4YFYKeZOzfXvsDX4Bz46Q8pq7OumwvRgbwc9huOAWGBYbUd8/IRdw1ndjp1C87u6PzB5ZIeWZyf3HOhLzO19tDfDv/ugf6d5VYwM5+yq01AWJ5qZiInTMaWnWf/YvVQEKoflmj1EcWfyP/74DukpWWllTHaFlpb3MQrlYmFthyS1OotqQCH9ApDsJBJ79xO72JEluFBGeeIcyxQ81GA9PPQjU2lMlCZLh7qa/Qauzdbhtf++zB5qvH5poKLyEk26weQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UCOY0ugqcvGyivijqXZ6NrKhMqKfKr9lIBuqO+9RgiY=; b=j+dQRPYzAP7tOEAKjpeiqy2gfCLew5cnu0HjvoRhyHMRsxSKyzZbvWVQj0RELuQRtq0W+VQg5vr3U7NUhlEzXq/NGoxSVUYrHmIIJZ3WTY3Km/DpbehZDljYXM2+Yj4t42dQjvHZIEUa7Nc75hDkCI6kO5tl7ugE2IdCjwyD4JKHsSRvazIEFfvSiM1N9v8KlxLv4KsAEQmSg1eI4H+iA6U3fArodZ6D41KdXThZirKf1g7+PTpD7VP1P9Ovtno4oqPadQZz5Qhg0+BRlDCOddN8Np/87YDyzw5zkyNgOEreCb3mQb22Lje1nmGdi6QFL1w3wgQQkqoz5G6gZEipxw==
Received: from DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:348::20) by DB9PR10MB4633.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:256::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Fri, 5 Aug 2022 15:14:02 +0000
Received: from DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM ([fe80::405:762:e31:e99a]) by DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM ([fe80::405:762:e31:e99a%5]) with mapi id 15.20.5504.016; Fri, 5 Aug 2022 15:14:02 +0000
From: "Fries, Steffen" <steffen.fries@siemens.com>
To: Jan Lindblad <janl@tail-f.com>, Michael Richardson <mcr@sandelman.ca>
CC: "Anima@ietf.org" <anima@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [Anima] [netmod] mcr's YANG question raised during the ANIMA WG session
Thread-Index: AQHYqN3+RCywm1mFGkCnk0xWs5cHMg==
Date: Fri, 05 Aug 2022 15:14:02 +0000
Message-ID: <DU0PR10MB5196AB1990F52280BAC38C14F39E9@DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM>
References: <DU0PR10MB5196F26C92DD2F266A4FAC28F3949@DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM> <365823.1658933390@dooku> <DU0PR10MB5196ADB3702B7417B0589555F3979@DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM> <446675.1659033968@dooku> <DU0PR10MB51966008D0EA49AC6FCD3FB9F3999@DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM> <539974.1659103385@dooku> <YuhrI/iINFJxPOC7@faui48e.informatik.uni-erlangen.de> <32336.1659550668@localhost> <58217DD1-D5C2-4C99-BDF9-5BA5B252AE56@tail-f.com> <21550.1659654070@localhost> <D335747C-1416-4E02-B430-239F860AC476@tail-f.com>
In-Reply-To: <D335747C-1416-4E02-B430-239F860AC476@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Enabled=true; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SetDate=2022-08-05T15:14:01Z; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Method=Standard; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_Name=restricted; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_SiteId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ActionId=a42afb61-f613-4fbb-a556-67418d48c70d; MSIP_Label_9d258917-277f-42cd-a3cd-14c4e9ee58bc_ContentBits=0
document_confidentiality: Restricted
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 9ebafa32-97dc-48da-cb18-08da76f52169
x-ms-traffictypediagnostic: DB9PR10MB4633:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: V/jMwmBG9lnnyr0HZehxo0aFCEyLRcbUWU2SIwYDRpRuzItVTCvVrGrb4PfKixECrXCdxCe1PAvr98myD9p0K+dBc1Q15AEvzrIuvsEpf7S/Rmr8THK37Ejz77CnSWDTFu6zTc8DnSlsqXslV/aUDqNaCCDtwN18jWLAulqWjNaSgAcdJSZbOcjhvgIXkWBhHurBGWk2b4ZE5eKh+FHxHCv+PtNpvPs6ppsC+Er54c06K5ajq5b8s8/7rdOgxSgw7Y4GSePNYD0gEp06mbUSsqE7vcs48zqT1Wb20W0bgjaCNNAJwY09sScVDjeUE1BKyPXcInUyg1SJTCDjEn3uxEvR1viCKXf9ZGo4pDGsWL1NOh6jkFjyKWNK1HQLXVdEkzNHpTbJ7hLENJOVfxe985M3vtg50CNvSmwsby58+ehf18VVSlw6FE7JWLhOMeLXU9Q18OP1XWQebrKcksDnFm5tyqPJJpOGfveSN+iDJQnA8lTXcKHZZJu2Pwg5Oqk2GSve0xS3QLYl9c3mfi+kE3awZ3phX03pLPWGN8e3hrpppj73eYBL50fE/3FTYe+U2SrbO2nVnLO01qqSZvbN6znff6pNzncB5hQMX5ulsujwD0YZhwYcR0Ed8swrNYs+8r45SXRurQpBn51qP1BFy4ztuz5JjVCn+vD9jZtS18S1PlIjC16ZSME63KlmB64zIxJf4uo8u5ziZA6Edun9OjZHI0LwmYldpg2NKG2vzcgOTGN/o6ZO9ia9pmqMIjbHE4OgyoMhyjjcPS6MB9Uk4q1bYYf6e4qoAC9nevRl9H2hTQTmz5ZVF/8ouruDpcYOslvjYOa4qE9RYuRWv5YsUA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(396003)(39860400002)(376002)(136003)(366004)(346002)(66446008)(33656002)(38100700002)(110136005)(71200400001)(54906003)(122000001)(316002)(86362001)(82960400001)(38070700005)(966005)(186003)(26005)(478600001)(83380400001)(9686003)(55016003)(41300700001)(7696005)(66946007)(53546011)(6506007)(66476007)(2906002)(8936002)(45080400002)(4326008)(5660300002)(64756008)(8676002)(66556008)(76116006)(52536014); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: mPvikZRcB/rx1AxxTEqyrawWSqMG1JoJjiQdvpSx89PFgfU/wwmmuVhEbc2APr+djk6VGSZh+Gx+Qal5Xj2zqJANJRCfbO7EyfpLqag6DE/EAEyrWD3KlbZHc7+MY/pbzDmO4DBYMbqZBMW5la8XA5iAX2vGnpLZMyg/6iFq5KcT25GP0o6WUVgA0ebSlIarVuTonMWP0nojGmAmcl0xCFOX4x0aJrVpZGx9a1djjfJRfGJvzCGvG331sBVg0QRQC7Dvi6K187IX+2OSczl77AbHV6S28gDvgVXZGlgEXH3Q9oEQsqlsbvvBZ2aoTjy3bewYsia1gHllugGl55nRmUdr4AnvFTMCYqf/6iEW1Y5i116Exdzw6X5pIN0K8QeIFsUVvh5VxJRz4jkYoNpTrOls7n+BLW4dedaTU2vG4Aa9ZCY/ThW3qMiCRsWxW1kZSk+qiQWDUBOGub41aYWEifo9jnZ8ac34umtfTYfHguG5Ccggi0ex2LXA4fQfX1VDsRVA7ZEDgJxvIbKePY4AD9/KHq/M6nXzTG0Jg7LSuzEGQdp7/klxtXt29e2aIvBBMhZAZLyN3yflZnlTvGqsFxvgTMQUKU/hyqKslGuo7KrX/sWBhVCyvpsGRgG0NyAYBAP9rsh3PsU+hWOtHwjy6VszTpXdWKGoRL1BxrzSPzX95cBzTycginHIoOGVJO58arRoZ4Ri5Ccg42EBSbydyxYoTIKHgQNbIA6vVbcklGU+e4AjMEh5Fcibeg3dAIgAfcAwJqCvIa/43dqctcEv6bzKfLuCOFCYy+SBTes7eudUeSatss9r1kZt+7dtZcaD6ee1F4QpNcsu2mN4meRKzKCrhFHCITbUlQLaMG1j1vHDiF5zRFjE3gpyRJPnUMefLAGctVkJZX9rfwbJj3x1SdNlgw7T/AhCAI/sOIGyhVu6vaSG7LBsEkIhEXCXFl1fTOTX9IL0mahaDA6GlbCaHF1uqrmK6Nn6lcb5DZJgJ3nuEj4i3y74KWETuSoepefkqvtpDAqJGhZLeMivNFSIsLcrp5ztoAcx79zPCoXfxZszKCvsPBB4Oc2qzvZd0qdg0sPz6HMqJM6BszOtQ8chznnL77/094Xh/ip2qfXOSjcYynaIiZ0Og2LvMbz+n0UsZst8eslJRnAGaTmPYuQSbKKEV7hfaSfHQcPk+m5bEXihvs2YNXYEDY9+u+CgHfpxDRZI2CYbyA7AlgRJzHA+NooOLQu1C8iLMA4581OFcEMx99cVvv8QEEY6EtSBLlu2xww6T7Xffcln2V9ffQUVz5EgR6AbxVbUmevCDOfjfg6+3YUyUbWInqcVSZ4PhCRUOabb/FYpNeTnaFZps03aCVMfGqgmwp1QZ25z19x+8utu8e/3brj/S1NwuuI4wu6FitGLhWJS1el7aSl7iYNSR+Og+tdMJVwNq7/JX7LQM7P/fNLbwvgi0f5sVgFPUoisHMruTqJZPks+/d0adQvm/kfnSofMAya+ZC4gMU1p06BNHTKnYGnXDNEA/WcGCaMA58SNyh7x9pe/diXwO6G1oL0RFVUjenEglt0hxJRkAEul8VVGqPvm0x7r42bT7JTn/+QbyGuF6Iv6LgnNCJE4bw==
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: siemens.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DU0PR10MB5196.EURPRD10.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 9ebafa32-97dc-48da-cb18-08da76f52169
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2022 15:14:02.5680 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: vnpd/MfVwN1b/D0OqiZeH6qX+1Gz52BDAvkl+N6CaRhSLcykobJLvGbdQlxhYlv7k2Od5s5LYruke0NMSM2mA4Pmc3Bgg+CWHoZ45o6kwsI=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB4633
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qglbbqwYeC8TP45mHOyXBOjU7Ks>
Subject: Re: [netmod] [Anima] mcr's YANG question raised during the ANIMA WG session
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Fri, 05 Aug 2022 15:14:10 -0000

Hi Jan,

Thank you for the help. Based on your example I crafted another version of the BRSKI-PRM voucher request with a grouping containing only the additional 3 fields needed in BRSKI-PRM, which is then used to augment the original voucher. 

We have to do some further testing to see if it works out.

Best regards
Steffen

> -----Original Message-----
> From: Anima <anima-bounces@ietf.org> On Behalf Of Jan Lindblad
> Sent: Freitag, 5. August 2022 10:41
> To: Michael Richardson <mcr@sandelman.ca>
> Cc: Anima@ietf.org; netmod@ietf.org
> Subject: Re: [Anima] [netmod] mcr's YANG question raised during the ANIMA
> WG session
> 
> Michael,
> 
> Comments inline.
> 
> > On 5 Aug 2022, at 01:01, Michael Richardson <mcr@sandelman.ca> wrote:
> >
> > Thank you for very much for the reply.
> >
> > Jan Lindblad <janl@tail-f.com> wrote:
> >> I had a look at your test example. The example is invalid, but pyang
> >> fails to detect the error and overwrites some internal structures,
> >> with the result below. The root cause of the problem is this:
> >
> > ...
> >
> >> Each one of the two uses statement brings in a "container voucher"
> >> (with partly different content) at this point in the schema. That is
> >> an attempt at a duplicate definition of voucher, which is an error.
> >
> > okay, so it partly works, which is an error, and I'll see if I can
> > make that into a test case for pyang.
> 
> Very good.
> 
> > BUT:
> >   The goal is exactly to be able to combine two extensions to RFC8366 into a
> >   new module that has both extensions.  Is there another way to do this?
> >
> > Puting them into two containers does not accomplish the goal, because
> > now you have two expires-on, ...
> 
> Of course. I just added the containers to show that pyang could understand the
> modules once the modeling error was removed. Just to clarify what was going
> on.
> 
> >> Pyang
> >> misses this, and overwrites one voucher object with the next, losing
> >> some of the content.
> >
> >> By placing the two uses statements into separate containers, pyang is
> >> able to successfully make a tree:
> >
> > ...
> >
> >> Normally in YANG, it wouldn't be hard to to let modules "B" and "C"
> >> augment module "A" independently. But here you are working with
> >> groupings in such a way that both "B" and "C" build up a complete
> >> grouping with everything in "A". When "D" tries to use both "B" and
> >> "C", there is inevitably unwanted duplication.
> >
> >> If instead, "B" and "C"
> >> just defined their little contributions, "D" could import groupings
> >> from "A", "B" and "C" and compose them as desired.
> >
> > The reason I am asking this question now, and proposing this example
> > now, is so that if there is a better way to build "B" and "C" then we
> > need to know about that *now*
> >
> > I see that you have proposed a different way, which I will attempt to
> > work through.  Fortunately, we still have time to fix some things.
> 
> Feel free to reach out offline for discussion and review.
> 
> Best Regards,
> /jan
> 
> _______________________________________________
> Anima mailing list
> Anima@ietf.org
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf
> .org%2Fmailman%2Flistinfo%2Fanima&amp;data=05%7C01%7Csteffen.fries%4
> 0siemens.com%7Cc6d32de3502f4fb9a11d08da76be46cc%7C38ae3bcd95794fd4
> addab42e1495d55a%7C1%7C0%7C637952856978140952%7CUnknown%7CTWF
> pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6
> Mn0%3D%7C3000%7C%7C%7C&amp;sdata=6RbTSa19uWUc8EqPVSiGCmkEjLwj
> Y8eq18K1uXn5kn0%3D&amp;reserved=0