[netmod] Instance-data-format -additional simplified format to define content schema

Balázs Lengyel <balazs.lengyel@ericsson.com> Mon, 22 July 2019 20:13 UTC

Return-Path: <balazs.lengyel@ericsson.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 1CAD7120125 for <netmod@ietfa.amsl.com>; Mon, 22 Jul 2019 13:13:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 QozQPFsKHM7H for <netmod@ietfa.amsl.com>; Mon, 22 Jul 2019 13:13:11 -0700 (PDT)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70083.outbound.protection.outlook.com [40.107.7.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B02E1200DE for <netmod@ietf.org>; Mon, 22 Jul 2019 13:13:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D3tc6Fmg6f7V6m3426izp3UF38/IWzPGYSswrT4RaZCMLEaIOSHmascs/92P6RNiUeqJz2L77onKnWGup+dMRgW8rzR3g9Pnmw5DQmAX7kH5vonml+BWZbK0ZX8MegQd0Ged4yYTGQrjXOVfZq3AZ+qYuWG/kjCed1Sq36ByH02Ztr2LstBYkWkroReYILRQgjnCMtFmUx754aW2ODnOI0VsJg7LI992JObtiEmKdmdJmF7kxHB7IxPOKk2tEMOpi49Jue+u6EFL4Vo+aYujqjQHU3O+itVxmCMHvPmkKN8vcHPFCb+ZoyQAgfOh1MQAm9djTCsRfJsC6fDy+tXlEA==
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=t6eCiGXmhP6Ii3B2wcwLzxQnJUzatShQTEvYMahMIdg=; b=NBXsSWDZwus4tbRJbHzqOPtZKaE9aXNcpW6HPFAO7BefPiJSEOAbdGm0/TQQMp9i48QBWC8Rux5btK37nyqH+Pa4uPG9FjVUgcHjyDNMoFyhbnntOQ+fwfwPCuse987J3BLnChdcF21EhwPC+ERqAxXASRVZoC2AtWPek9jHcuDqHw3ttV4UJwSFG96wT8oJJLx3kLj/HdpfuAIMIF7Axu8Nodt700cLB3oo1sLt4ydHSXqnModPbDMQQWlHGrsd+FVWwdv0rUo6EtWqtQiQVQjcyG/iuKXf7sIhRk+J6chzBroURp20JJXmSXDaAvHy3sODTKqQqmoq9GEDaav+/A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=ericsson.com;dmarc=pass action=none header.from=ericsson.com;dkim=pass header.d=ericsson.com;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t6eCiGXmhP6Ii3B2wcwLzxQnJUzatShQTEvYMahMIdg=; b=Y830X6ndzufQbW6m5OAFF8+kvpay+G+vfe/EKaehSVt6YbqMjapX3gOjUwZT0qD61znYXm9+cMPIZ3jyYUkgh3vhCfr8uzq5X+OJRBOKudp2OK8A9mXSBI6no/w84KHXjsDySUJMDfiHVwsPTpUXxBdOU/XTPNTKskpsHccbLO0=
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com (10.169.137.153) by VI1PR0701MB2240.eurprd07.prod.outlook.com (10.169.131.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Mon, 22 Jul 2019 20:13:07 +0000
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::5556:4c20:cd8d:686a]) by VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::5556:4c20:cd8d:686a%11]) with mapi id 15.20.2115.005; Mon, 22 Jul 2019 20:13:07 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: "'netmod@ietf.org'" <netmod@ietf.org>
Thread-Topic: Instance-data-format -additional simplified format to define content schema
Thread-Index: AdVAya70t7DO6UXsR/K+POkwpw7dKA==
Date: Mon, 22 Jul 2019 20:13:07 +0000
Message-ID: <VI1PR0701MB2286EB7A76261C01996A67CBF0C40@VI1PR0701MB2286.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-originating-ip: [31.133.153.243]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: c47435ac-d296-4865-46e8-08d70ee10323
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(49563074)(7193020); SRVR:VI1PR0701MB2240;
x-ms-traffictypediagnostic: VI1PR0701MB2240:
x-microsoft-antispam-prvs: <VI1PR0701MB22408BB06C1A1FEE2997924CF0C40@VI1PR0701MB2240.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 01068D0A20
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(346002)(39860400002)(376002)(136003)(199004)(189003)(99286004)(6436002)(478600001)(52536014)(9686003)(55016002)(45776006)(6306002)(14454004)(6916009)(53936002)(76116006)(54896002)(66066001)(66476007)(66556008)(5660300002)(86362001)(25786009)(66946007)(66616009)(66446008)(64756008)(316002)(2906002)(7736002)(33656002)(8936002)(81166006)(81156014)(9326002)(71190400001)(71200400001)(99936001)(6506007)(6116002)(14444005)(256004)(3846002)(7696005)(68736007)(486006)(476003)(790700001)(102836004)(8676002)(26005)(186003)(74316002)(491001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0701MB2240; H:VI1PR0701MB2286.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: 0eKiQ9hes3tD/AxWKKdl6rLBgaV5LREte9wcz5GEN+8X5g8k0wkb7kfTZOAaQ9Sz1fdyjiTatFIaMGE2Vydb1KWNEHTNP2KuKonHPNtFN5rkdOf/BBb+L6appZK+F2Yun9CZtVTda1q/uibnd+NqcK0InLU/bA0KutA4OL4nUJjhLxB+GgMF87AK8Cx0yJgA7xmDQErCevnKVm0KMZT6Bem/tAflhYw3BOrxIY2SsjFxAAu7hpgftxDbbqrEDnAEIGHy/+Xa42pMwHAGqSc5fCQuaKeNKToddyRwxvu92rELKMFmrHcHUyZbBjN54jEpOt2AaD785E+nEOtLqYxWBUDjpDP8zfQOfsFY0ELr5B/W3N3ruvjjrO+uD8XqmoiaNxJhNukgc1yiXhuuL1+0XgQSPv2YtEYbGZbqxQbkkLQ=
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_0286_01D540A8.587873B0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: c47435ac-d296-4865-46e8-08d70ee10323
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2019 20:13:07.7519 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: balazs.lengyel@ericsson.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB2240
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qS2oNaWGShTlhEH60NEEulKp2MQ>
Subject: [netmod] Instance-data-format -additional simplified format to define content schema
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: Mon, 22 Jul 2019 20:13:13 -0000

Hello,

At the IETF 105 Netmod meeting it was stated that the flexible solution to
define the context schema inline (requested earlier on the mailing list) is
quite complex, so a fourth simpler method to define content schema inline is
needed.

The fourth method would add one more choice to “choice content-schema-spec
“

 

case simplified-inline {

  leaf-list module  {

    type string {

       pattern '.+@\d{4}-\d{2}-\d{2}\.yang';

     }

     description “The list of content defining YANG 

       modules including the revision date for each. 

       Usage of this leaf-list implies the modules are 

       used without any deviations and with all features 

       supported.”;

  }

}

 

An example instant data example could be:

<instance-data-set xmlns="urn:...:ietf-yang-instance-data">

  <name>read-only-acm-rules</name>

  <module>ietf-yang-library@2019-01-04.yang</module>

  <module>ietf-netconf-acm@2012-02-22.yang</module>
  <revision>
    <date>1776-07-04</date>
    <description>Initial version</description>
  </revision>
  <description>Access control rules for a read-only role.</description>
  <content-data>...

 

Do you like it ? Adding this case are you OK with the content-schema-spec
definition?

Regards Balazs