Re: [netmod] Use XML namespaces in YANG document examples

tom petch <ietfc@btconnect.com> Fri, 11 March 2022 11:58 UTC

Return-Path: <ietfc@btconnect.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 7ECAC3A11F3 for <netmod@ietfa.amsl.com>; Fri, 11 Mar 2022 03:58:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.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 QDn8rrOi20XN for <netmod@ietfa.amsl.com>; Fri, 11 Mar 2022 03:58:22 -0800 (PST)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0715.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::715]) (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 98C7D3A11F2 for <netmod@ietf.org>; Fri, 11 Mar 2022 03:58:22 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GONoMnv3pBIkS6Njgt1gjmAB+Y/ouUKnzRl8DeitaKRf217uzr+D0b7RrLX/0OlSepAkPwiYckPvyGX9VswpZt4YNUTzyBGTGbTWF9t7ybs09lEXee1WaQM2THP2jLN4/E516wgde5K4J3rCWljQkZrV7P6uvY4SGV3NmgKqnWViZWMDfZ7uk/sdNaFxpMj6NOcj68fUj2XvB08Vd/Ju3GHPJV0QgEUo11Xuyh3udt6kBG5sZNH7nUVM2YmHD1QI0+iP+laeqKuIgZ5StuRLDBrOH1r6KS4/J3QA1RYaHwxmvUx6HID+vVzvjYs1HT0rabIAcjGh0lDT23Ufmuq+SQ==
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=S/BcPg42AcQl0tGZRVQ240m35Cs9gJc+45W35L5siyI=; b=hKS/3b/6mMz7tHx8ZvL1onG5KaejbkonIR3nX/m8LaKulRR4uRsZvY4NvwKaCwKkx4uI1RaDjkHTXGx+Tkrub/R+Ms281vOKYiN+X5qX45xxf28DN0nOxArV3PUhJWiFKT4lrBS071oIASbj6/MoxA/y0LgfvK/6BJ7qIrtkxt7QwLE1Nx8XUKSQp0PJTCTYYJFtwwNcfOuSKawAF4Eurikvw8sFWF2ilYZyxOCB7lk27EMY+o6rrd4BZU8ngW3BRlPIzy0GxAUqztBYDazAsT+Vcn4EsM7ti+HvlQsk9idtx4Lml4TA/V1VNWTlEH3Gv2a8LWrezNvrk0JK8h3KiA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S/BcPg42AcQl0tGZRVQ240m35Cs9gJc+45W35L5siyI=; b=Cff3th8vF3rT6htKiIeuOn6mt+s4t4nrXxfrdmI2xj5xuYC/KF3p+vmFsZFcksAMnYsM8BwdyceuVGCXmzWXez22TWFMm8uRH9JK8O1DeFBcGUxMS76Pldcpgee3ux8JZQll5ab8ARvyELsvvxdrHELwvKaDs1GhBBZKd6uBajY=
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11) by VI1PR07MB5023.eurprd07.prod.outlook.com (2603:10a6:803:9e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.8; Fri, 11 Mar 2022 11:58:17 +0000
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::2191:760c:dde5:29c6]) by AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::2191:760c:dde5:29c6%5]) with mapi id 15.20.5061.018; Fri, 11 Mar 2022 11:58:17 +0000
From: tom petch <ietfc@btconnect.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Use XML namespaces in YANG document examples
Thread-Index: AQHYI+WGtWVJ4yLJbkequbdkAxANeay6Mvs0
Date: Fri, 11 Mar 2022 11:58:17 +0000
Message-ID: <AM7PR07MB6248A96D258F08B5713B9D6DA00C9@AM7PR07MB6248.eurprd07.prod.outlook.com>
References: <CAHBU6is235QT3d7q+0xhJHdtVna_9-qjGzHG_P4gnMd6nKtdTw@mail.gmail.com> <20220204.081841.166197909676487568.id@4668.se> <866e763b-88ce-ca3f-300a-7f702467fe7c@mg-soft.si> <20220204.161536.1816358672148417997.id@4668.se> <5BDB40B2-F191-41BC-92DF-BD0A94B6E992@gmx.com> <20220207200304.qhkvwrxwl5i56qqk@anna> <AM7PR07MB6248E7E96CBA846EC59C2DC4A02F9@AM7PR07MB6248.eurprd07.prod.outlook.com> <B30D2207-BE27-4E68-A9D1-3F17B0154345@tzi.org> <AM7PR07MB62480FC33CDC9A1FA31CFE26A02F9@AM7PR07MB6248.eurprd07.prod.outlook.com> <F9A842A4-DCD4-4860-BA4A-6AB341583ED4@tzi.org> <AM7PR07MB6248796A4130EA81F152886AA0309@AM7PR07MB6248.eurprd07.prod.outlook.com> <AM7PR07MB6248CCC0A25127719C516582A0319@AM7PR07MB6248.eurprd07.prod.outlook.com> <BY5PR11MB4196EE20444A805FFAC06174B5369@BY5PR11MB4196.namprd11.prod.outlook.com>
In-Reply-To: <BY5PR11MB4196EE20444A805FFAC06174B5369@BY5PR11MB4196.namprd11.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
suggested_attachment_session_id: 93ad87e6-1bb8-06fd-e991-00ec804d83cf
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=btconnect.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1cc0e518-3c40-4587-e957-08da03566ded
x-ms-traffictypediagnostic: VI1PR07MB5023:EE_
x-microsoft-antispam-prvs: <VI1PR07MB50232F7B5C445760C8236C5AA00C9@VI1PR07MB5023.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: pr6plAiZNm3A0JgSrdepyGMu5LDflACAi+f1g8FPd0FzPIyQNF1upCQs+qjq8oNxHfYqGXN/cEYIJTvjl8rp2SHy1bYF//J5hGM5sfh25egOiFs9G/ALMMDAL2LDkKD7qCAPKaJXNY+QtRJY/GrKoOfNka9bGb5XePEg3g+vYBwyUnuFlxZxsVQcacmWdz5UQA82WavJ4a4RaJ1lfYZKCmcB07uPpBZjaN24Q8GYvYkLqhu2BCB7Nxlj1N8ki4fK5xszpQxZ/7ChOH8b3J/bN9QLy/X/6xQZiuWutM+EqJ+PZ22+TptAbuHDTYdGBYi2vBp5p84HuIVmRTE9Ux1SM9qdt7YXYwXWNsTtPDnlnD0ZGmr1fDKnlECJQMradNM9Ny0hhCtnIOWPGjGYgWYYU2dRGz2GYZzUj1YgRle5a5jmUPf+TMl9BrapnkcTXQefyCml3Y8S+hpDLmG1uMRHa0jfYEPHfcUpARz0n1+f7Hahkx4Q5kEQXfN0L2i8Yx/+VkLsqIS+gt0y25WAQXNjuTN1fa1hZcZAlrModtvFVQJo6tDn5AwlAI31T+OSV2xETNyoa58rr9xA3VabB5Geqoysc3JN6ID0mSED/qS1wxtE4N5qdSKZqRWowIGxyYWWuYMTVq1+OMfznVCW4wEUSv5+Md9SeflQCV6UvLZ7YnHCwv6vc6vfWTU2k+460HqiShrlj5g09TaUbZ90VZ79NJsoUo1S0RtsaYuS2moBANOBoRfJP89qD9jspZlwkQGqKRcvZd79waalDBQDo8mhYg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR07MB6248.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(38100700002)(6916009)(316002)(966005)(8936002)(186003)(26005)(83380400001)(53546011)(71200400001)(9686003)(7696005)(2906002)(6506007)(38070700005)(82960400001)(33656002)(52536014)(4326008)(8676002)(508600001)(86362001)(55016003)(66946007)(66476007)(66556008)(5660300002)(76116006)(91956017)(64756008)(66446008)(122000001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: ykzzMwwAdz/Ow09fD0w+fIu9h9I1mRowZPQ2diKMzA6f/SlTE2mQQ6Y5Q2+XrcihY5V9VoVutgsDPsIhKTPo2BxVY1Yd8G9ke3rNa6kC4vEU6GH/vcNEfZnHs4EVk3JGKHW9seONqrLSM4YtFCAivYvcPJN0FnLM7gDDzGAmzj0aXLOueh+9GjE5Xi/ROrgcIfcwoywr8/XpANc8qmsMN4QLcKz+rrxO5Z2mwk+axPbSwjXND4JfDHdcPe7k1kl5w21+RTT52ZBZ5Q438U/IRXnIA1+ZNSy8IqEe5xXMtkMeLbu31MqhSxifnfSDYIYs0iJRbnZx8jvS9CWCz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DtRKnEtVfOcUjYr5l+qxbrhmmL97usQzc2+3kLkf5RE9nBQU
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR07MB6248.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1cc0e518-3c40-4587-e957-08da03566ded
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2022 11:58:17.1319 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: JGsv6A2WtsEuLccno2XZt+XY6YS899f2UQqhwVtUk3Y7odrvMpatmycqIQNF75S5gEWlAnNCG4q8MeUr1mSpNA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB5023
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Wy8Z878dYmDZhWp9S4RjW9R8NxU>
Subject: Re: [netmod] Use XML namespaces in YANG document examples
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: Fri, 11 Mar 2022 11:58:28 -0000

From: Rob Wilton (rwilton) <rwilton@cisco.com>
Sent: 17 February 2022 10:02

Hi Tom,

Thanks for flagging this.

I agree that this text is not helpful in understanding the examples (nor is this text present in other YANG module examples), and I will indeed raise this in my ballot.

<tp>
Rob

Thank you for the ballot.
I expect that you saw the  comment by Ben that this issue has been solved by the REGEXT WG e.g. in RFC9095 section 2 with a 'long-standing' formulation so if anything is required, then it would be better to reuse that rather than reinvent the wheel.

You say that in this case the prefix is not actually needed since everything is in the same namespace  but it should not be - there should be a common I2NSF I-D with common definitions, common YANG identity and so on, but I am not holding my breath!

Tom Petch

Regards,

Rob


-----Original Message-----
From: tom petch <ietfc@btconnect.com>
Sent: 12 February 2022 12:54
To: Rob Wilton (rwilton) <rwilton@cisco.com>
Cc: netmod@ietf.org
Subject: Re: [netmod] Use XML namespaces in YANG document examples

Going back to the original issue and so top-posting.

NSF Monitoring Interface YANG Data Model
is on the IESG Telechat  17feb2022.

It contains the text - not an easy read unless you are an XML expert -
"In order for the XML
   data to be used correctly, the prefix (i.e., the characters before
   the colon or 'nsfmi' in the example) in the content of the element
   that uses the "identityref" type (e.g., /i2nsf-event/i2nsf-system-
   detection-alarm/alarm-category/) in the YANG module described in this
   document MUST be the same as the namespace prefix (i.e., 'nsfmi' in
   the example) for urn:ietf:params:xml:ns:yang:ietf-i2nsf-nsf-
   monitoring.  Therefore, XML software MUST be chosen that makes the
   namespace prefix information available."

This is the result of discussions between IANA and the XML directorate, which I have seen copied to the WG list, and seems to me to be in direct contradiction of the consensus of the NETMOD WG list as shown in the discussions this month on this thread over the DHCP I-D and a separate thread on the I2NSF I-D in January and is likely to be a source of confusion for the future.

 NSF-Facing Interface YANG Data Model
is on the same Telechat but I do not see the same text.

I would like an AD to throw a flag, in the shape of a DISCUSS so I am copying Robert.

My take is that the text should not be included in any I-D based on the consensus of the NETMOD WG (as I perceive it).  One suggestion was that it needed an update to RFC7950 to make it justified.

(Also, my rant of 2022, these late stage non-WG interventions should not be over-riding the WG discussions but that is not going to change any time soon).

Tom Petch
________________________________________
From: netmod <netmod-bounces@ietf.org> on behalf of tom petch <ietfc@btconnect.com>
Sent: 11 February 2022 17:03

From: Carsten Bormann <cabo@tzi.org>
Sent: 11 February 2022 08:21
>> (I'm also still not sure I've got an answer to my question about using inconsistent prefixes between YANG and the XML example.  What is being demonstrated here?)
>>
> <tp>
> If you are referring to
> " Is there a reason to violate the SHOULD?"

I'm referring to the question I was trying to ask when I said this :-)

> I did not see that as related to the thread but thought it was answered anyway by Juergen.  As he said, the SHOULD gets violated when prefix clash which, in the absence of a registry, a namespace, for prefix is possible.

Yes, and thanks to him for answering my question as a general question.

I was answering to a throwaway note that the authors got flak when their XML did not use the defined prefix.  My question was: why do that, then?  Maybe that was not understood because "ianaift" actually *is* the prefix preferred in the YANG module, so my question doesn't make sense.  (I'm not sure what the throwaway referred to.)

<tp>

Try again.

I have commented a number of times on a YANG import which defines a prefix other than that in the RFC.  Last month, it was
     import ietf-hardware {
       prefix ietfhw;
Usually, when I comment on this, the authors accept my comment and change the prefix - they did on this occasion - but sometimes I get pushback along the lines that YANG Guidelines is only a 'SHOULD' and we think that we have a good reason to ignore the 'SHOULD' .  To date, I have never agreed with the reason and go on commenting:-)  If that is flack, then yes, I have - and will - generate flack:-)

Tom Petch


Grüße, Carsten


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