[netmod] NMDA - different valid keys for config vs state

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Thu, 10 May 2018 17:07 UTC

Return-Path: <jason.sterne@nokia.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 D593912EB73 for <netmod@ietfa.amsl.com>; Thu, 10 May 2018 10:07:29 -0700 (PDT)
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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.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 A6cWVTpiBtcW for <netmod@ietfa.amsl.com>; Thu, 10 May 2018 10:07:26 -0700 (PDT)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0091.outbound.protection.outlook.com [104.47.1.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C5FD512EB94 for <netmod@ietf.org>; Thu, 10 May 2018 10:07:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IJ/zh9YyYX4YmKCuAOs9Mi2AB4wR8HyUv25G2voijgk=; b=UHIl42KOPb8nhRq42KlTevqMM38+cAyDzTnbr6HtNEiPtjfrl0aBlxmz2HdXW3V/+WBYPkZCsm/4MatBaDAVuW9WmPft1/gMB0UrLh9VvMO/z6WIdjQFfY/IsEC5OErBnPu8pxrgcaE/+Rkvn1L2SJ0exfOAiOYPnDkmSUWcI3E=
Received: from AM0PR07MB3844.eurprd07.prod.outlook.com (52.134.82.20) by AM0PR07MB4050.eurprd07.prod.outlook.com (52.134.83.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.10; Thu, 10 May 2018 17:07:23 +0000
Received: from AM0PR07MB3844.eurprd07.prod.outlook.com ([fe80::c65:ce3c:f99e:3132]) by AM0PR07MB3844.eurprd07.prod.outlook.com ([fe80::c65:ce3c:f99e:3132%3]) with mapi id 15.20.0755.012; Thu, 10 May 2018 17:07:23 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: NMDA - different valid keys for config vs state
Thread-Index: AdPogD1+2NIcwEznSqKvxUfMt6AfTA==
Date: Thu, 10 May 2018 17:07:23 +0000
Message-ID: <AM0PR07MB3844939D2446BE899F0B06439B980@AM0PR07MB3844.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=jason.sterne@nokia.com;
x-originating-ip: [135.245.20.0]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM0PR07MB4050; 7:gBlZMvwDD2mTl56nsRpYqoCzCOelqcBIaS0kJF0eS7a5xSP9HdcWtZISJ7z1Lv+btH9+AH8INfzbq2d3pk2O+D7xziB7mhd1mthmV7pvxVRvOLGb73lfV/IGeAO7AHCZUJZKptI7jaUiEKyri3PdB+6Uq+j7VzNiUzb0TvzbK3ucOfZ8To3+ZoND2m4f3fjE3srK8SnHVq80dh0YYPGd7KPrUmVI3fAsQFubfHX+v133d8SmlyhehGVb0hUeoNbV
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989080)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(5600026)(48565401081)(2017052603328)(7193020); SRVR:AM0PR07MB4050;
x-ms-traffictypediagnostic: AM0PR07MB4050:
x-microsoft-antispam-prvs: <AM0PR07MB40503B4F3F053AC1318FE9E69B980@AM0PR07MB4050.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(11241501184)(806099)(944501410)(52105095)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:AM0PR07MB4050; BCL:0; PCL:0; RULEID:; SRVR:AM0PR07MB4050;
x-forefront-prvs: 066898046A
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39380400002)(396003)(39860400002)(346002)(376002)(366004)(199004)(189003)(53754006)(186003)(81156014)(81166006)(6436002)(7736002)(1730700003)(86362001)(316002)(26005)(74316002)(8676002)(68736007)(55016002)(6506007)(2351001)(106356001)(486006)(105586002)(102836004)(478600001)(476003)(3660700001)(33656002)(3280700002)(2501003)(6916009)(6116002)(2900100001)(790700001)(54896002)(6306002)(7696005)(3846002)(5660300001)(53936002)(5630700001)(25786009)(97736004)(14454004)(66066001)(2906002)(99286004)(8936002)(5250100002)(5640700003)(9686003)(7756004); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR07MB4050; H:AM0PR07MB3844.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: pTxx3UcH57yL8laWDYIGSq7QM8dqQOJZe0qFT574W+X3HzKC1+Jni+AhUT/BLstRAxeUYhp01djIJwPlTGWGs1q7VRKTKu+it6dRNqge8LJ2/EI8XYyaG5ehihtM4/rNF0uA36MvXVJ7OohAsqb70dBcuxkV3jsUGev9ekEs0S80DJX9cqSGZj687jTtZe++sv426UXLlv2SJI1r8K2rtGHx+eZe9bfLplXhAXt2Vwo=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_AM0PR07MB3844939D2446BE899F0B06439B980AM0PR07MB3844eurp_"
MIME-Version: 1.0
X-MS-Office365-Filtering-Correlation-Id: 321bb1f5-fe78-4281-a60b-08d5b6987fac
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 321bb1f5-fe78-4281-a60b-08d5b6987fac
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2018 17:07:23.5267 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4050
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/pU8BNzQjeM4xdmEIS_lIcoxuM2E>
Subject: [netmod] NMDA - different valid keys for config vs state
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 10 May 2018 17:07:31 -0000

Hi all,

In the NMDA approach we're trying to combine config & state into the same common tree structure.   i.e. For a given list, model a single list that contains both config & state, vs separate lists for each of config & state.

But what happens when the valid value space for config vs state is different ?   For example -> what if an implementation has internally created interfaces with names that start with '_internal_' and doesn't allow configuration of those interfaces ?

If there were separate config vs state lists then the config list may have a pattern associated with the key that disallows names that start with '_internal_'.

To keep the spirit of NMDA it would be a shame to split into separate config & state lists for this case.  Any recommendations ?

1) make the 'pattern' for the key be a superset (i.e. allow _internal_) and then just reject config requests for _internal_ interfaces (e.g. at commit time) ?

2) make the 'pattern' more strict to match config, and then return _internal_ interfaces for state queries (that in theory break the pattern for the key) ?

3) other suggestions ?

Another example could be an integer key that has a larger range for state than it does for config (i.e. IDs >1000 are for internal entries only, not configurable).

Rgds,
Jason