Re: [netmod] AD review of draft-ietf-netmod-system-mgmt

Ladislav Lhotka <lhotka@nic.cz> Fri, 13 December 2013 11:59 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C680D1AE23A for <netmod@ietfa.amsl.com>; Fri, 13 Dec 2013 03:59:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.996
X-Spam-Level:
X-Spam-Status: No, score=-0.996 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HOST_EQ_CZ=0.904] autolearn=no
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 Cn80XwOmiGv3 for <netmod@ietfa.amsl.com>; Fri, 13 Dec 2013 03:58:59 -0800 (PST)
Received: from trail.lhotka.name (nat-5.bravonet.cz [77.48.224.5]) by ietfa.amsl.com (Postfix) with ESMTP id 2AE6B1AE1F9 for <netmod@ietf.org>; Fri, 13 Dec 2013 03:58:58 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by trail.lhotka.name (Postfix) with ESMTP id 22F64540294 for <netmod@ietf.org>; Fri, 13 Dec 2013 12:58:52 +0100 (CET)
Received: from trail.lhotka.name ([127.0.0.1]) by localhost (trail.lhotka.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iQxiCJSHZSej for <netmod@ietf.org>; Fri, 13 Dec 2013 12:58:42 +0100 (CET)
Received: from localhost (unknown [172.29.2.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by trail.lhotka.name (Postfix) with ESMTPSA id CBB76540216 for <netmod@ietf.org>; Fri, 13 Dec 2013 12:58:37 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: netmod@ietf.org
In-Reply-To: <20131213.121509.688716145908885068.mbj@tail-f.com>
References: <B386C034-A59A-4374-9846-6F2F821A0941@nic.cz> <CABCOCHTD_8kqHvqZGE8x1-bAWYZ4-1vRRXLpqdSRLH+tQV3eow@mail.gmail.com> <m2sitxoy68.fsf@nic.cz> <20131213.121509.688716145908885068.mbj@tail-f.com>
User-Agent: Notmuch/0.16+154~g96c0ce2 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-apple-darwin12.3.0)
Mail-Followup-To: netmod@ietf.org
Date: Fri, 13 Dec 2013 12:58:36 +0100
Message-ID: <m2ppp1t11v.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [netmod] AD review of draft-ietf-netmod-system-mgmt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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, 13 Dec 2013 11:59:01 -0000

Martin Bjorklund <mbj@tail-f.com> writes:

> Ladislav Lhotka <lhotka@nic.cz> wrote:
>> Andy Bierman <andy@yumaworks.com> writes:
>> 
>> > On Thu, Dec 12, 2013 at 9:31 AM, Ladislav Lhotka <lhotka@nic.cz>
>> > wrote:
>> >
>> >> Hi,
>> >>
>> >> just an idea: would it help if the server simply records the mapped
>> >> DisplayString version in state data?
>> >>
>> >>
>> > No.  I am OK with the proposal to force the server to constrain the
>> > objects
>> 
>> Why not, actually? I mean something like this:
>> 
>> { "system-state" : {
>>     ...
>>     "location" : "Schrödingerstraße",
>>     "mib:sysLocation" : "Schroedingerstrasse",
>>     ...
>> }
>> 
>> This is similar to what Randy proposed with "legacy-location", but it
>> is in *state*, so it doesn't introduce a second configuration object.
>
> But why report the MIB object at all in this case?
>
> If we decide these objects are really separate, I don't see the need
> to report the MIB object.  A manager that wants to see the SNMP object
> in addition to the NETCONF object (for some reason) can use SNMP.

But the two object are not separate, they are coupled!

If a NETCONF client configures "location", the server maps the value to a DisplayString, records the result in "mib:sysLocation" and updates the MIB object with it.

Conversely, if "sysLocation" is set via SNMP, both "mib:sysLocation" and "location" are updated to that (DisplayString) value - "location" in state and possibly also in configuration, though the latter is IMO problematic due to possible locks or pending to-be-confirmed commits.

Lada
 
>
>
> /martin

-- 
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C