Re: [netmod] I-D Action: draft-ietf-netmod-entity-02.txt

"Bogaert, Bart (Nokia - BE)" <bart.bogaert@nokia.com> Wed, 08 March 2017 14:48 UTC

Return-Path: <bart.bogaert@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 8730B1296B8 for <netmod@ietfa.amsl.com>; Wed, 8 Mar 2017 06:48:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.922
X-Spam-Level:
X-Spam-Status: No, score=-1.922 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 o-_evK_eF2lT for <netmod@ietfa.amsl.com>; Wed, 8 Mar 2017 06:48:18 -0800 (PST)
Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00138.outbound.protection.outlook.com [40.107.0.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D174712965E for <netmod@ietf.org>; Wed, 8 Mar 2017 06:48:17 -0800 (PST)
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=M5+yWSkWHeLMPdAAGxjtMTLi2XtRFuFbhwi/1gYt3XU=; b=nfJiT3/ngGA5nT0VSDACmJOOO1N71OpCtEfFaHJN8YA3cG6zkdYvCfp3mMz7Y6TUkBhtQ1Khb7qmJp63zey/DQ0iHJ7g/iQA98sEIedJERN1pu1VXzQvOSCxsmKiRrARIS289i1KztkeDMr7o3h7Ea+NO7buZ96sxMvAoHDpEr4=
Received: from AM2PR07MB0627.eurprd07.prod.outlook.com (10.160.54.154) by AM2PR07MB0628.eurprd07.prod.outlook.com (10.160.54.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.2; Wed, 8 Mar 2017 14:48:15 +0000
Received: from AM2PR07MB0627.eurprd07.prod.outlook.com ([10.160.54.154]) by AM2PR07MB0627.eurprd07.prod.outlook.com ([10.160.54.154]) with mapi id 15.01.0947.020; Wed, 8 Mar 2017 14:48:15 +0000
From: "Bogaert, Bart (Nokia - BE)" <bart.bogaert@nokia.com>
To: Martin Bjorklund <mbj@tail-f.com>
Thread-Topic: [netmod] I-D Action: draft-ietf-netmod-entity-02.txt
Thread-Index: AQHSl6caLbof61hN1kCkZer1IzW2RaGKudKAgAAwwgCAAAUDYA==
Date: Wed, 08 Mar 2017 14:48:15 +0000
Message-ID: <AM2PR07MB06274901D9A0765AA847E026942E0@AM2PR07MB0627.eurprd07.prod.outlook.com>
References: <D62E05768DBAFF42A72B9F4954476D65010EB1F736@FR712WXCHMBA09.zeu.alcatel-lucent.com> <20170307.194147.1826195488124124099.mbj@tail-f.com> <AM2PR07MB06279B5FF45770892B69273D942E0@AM2PR07MB0627.eurprd07.prod.outlook.com> <20170308.140730.165843214949076575.mbj@tail-f.com>
In-Reply-To: <20170308.140730.165843214949076575.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: tail-f.com; dkim=none (message not signed) header.d=none;tail-f.com; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [178.117.39.114]
x-ms-office365-filtering-correlation-id: 39eaa508-0676-48e5-b9c1-08d466322738
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:AM2PR07MB0628;
x-microsoft-exchange-diagnostics: 1; AM2PR07MB0628; 7:OuG8RbPiUKB5IEMpmH3Bz1B95HYI4r3u/vMfNaOUEaHaZxi9VI4GTVChEkk9LoKNy1OYrMosEPeX0zP6jBeEFqlCdeC6gSnJfB16xbPaLUjIiswaImjWmuhV0DVTgqIRB+K5Vq0NdxWetfcXz/lFJElGIR0yX23n0br35OodDzd7y8iVH4Zbvzhyhc9+QaQ4KWasJTQKrQYuoGY9lA3ZGqcWwIh8vjEbVoLd8BlVtkcItLiY+pPDhxs+5yFE020wpBboChs/Cf+EDSz5xIWC7X9vhKibqHGdq8dkAD2SykGu96Xi+TkU20N56nmMxXWwNkyiS6wVFm0gyZ6gasR1pA==
x-microsoft-antispam-prvs: <AM2PR07MB062861CC69640F0C1AD762BF942E0@AM2PR07MB0628.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415395)(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123558025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:AM2PR07MB0628; BCL:0; PCL:0; RULEID:; SRVR:AM2PR07MB0628;
x-forefront-prvs: 02408926C4
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39860400002)(39850400002)(39450400003)(39410400002)(86362001)(8936002)(106116001)(2950100002)(2906002)(6506006)(74316002)(3660700001)(77096006)(99936001)(33656002)(50986999)(7736002)(6436002)(229853002)(102836003)(3846002)(66066001)(6116002)(81166006)(55016002)(25786008)(8676002)(54906002)(54356999)(9686003)(38730400002)(5660300001)(76176999)(3280700002)(230783001)(99286003)(2900100001)(4326008)(189998001)(7696004)(122556002)(53936002)(110136004)(93886004)(6246003)(305945005); DIR:OUT; SFP:1102; SCL:1; SRVR:AM2PR07MB0628; H:AM2PR07MB0627.eurprd07.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_048B_01D29823.6523D490"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2017 14:48:15.7259 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR07MB0628
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/jrRyjjppKVwyuMyg6NpbuZOTJJc>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] I-D Action: draft-ietf-netmod-entity-02.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Wed, 08 Mar 2017 14:48:19 -0000

Hi,

> If we pick the former, it will not be possible to configure a
> component with a system controlled parent (unless you also add the
> system controlled parent to the configuration).
> [Bart Bogaert] Is there a reason to only have this parent in the state
> tree and not in the config tree?

I am not sure I understand the question.  Suppose the config tree is empty,
and the system boots and populates the state tree with all detected
harwdare.  Next, a client would like to pre-provision a module in a chassis
that exists in state.  If the leafref is to the config tree, the client
would have to create both the chassis and the module in the config tree,
since the leafef would otherwise fail to validate.

[Bart Bogaert] Ok, so you are looking for a solution that refers to an entry
in the state tree.  I always thought that one could not refer from config to
state but it seems I misunderstood this since this is exactly what you are
proposing. 

> If we pick the latter you will not get any validation (since it has to
> be require-instance false).
>
> It is fine w/ me to change the type string to a leafref of the former
type.

Correction: I am fine with changing the string to a leafref to state.

> [Bart Bogaert] If we leave it as a string it would mean that an
> external application would have to check whether the value of the
> string actually corresponds to a component that should exist (in the
> case of a non-system-controlled parent)?

So are you ok with a leafref to state?

[Bart Bogaert] Since that seems possible this would solve the problem.  I'm
checking this with our people.

Regards, Bart

/martin