Re: [netmod] YANG coordination feedback on draft-openconfig-netmod-opstate-01

Martin Bjorklund <mbj@tail-f.com> Mon, 14 September 2015 08:21 UTC

Return-Path: <mbj@tail-f.com>
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 997211B478F for <netmod@ietfa.amsl.com>; Mon, 14 Sep 2015 01:21:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 q_XbEzqAxpQN for <netmod@ietfa.amsl.com>; Mon, 14 Sep 2015 01:21:52 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 031DC1B4747 for <netmod@ietf.org>; Mon, 14 Sep 2015 01:21:52 -0700 (PDT)
Received: from localhost (unknown [213.136.39.104]) by mail.tail-f.com (Postfix) with ESMTPSA id 8D3341AE0492; Mon, 14 Sep 2015 10:21:50 +0200 (CEST)
Date: Mon, 14 Sep 2015 10:21:55 +0200
Message-Id: <20150914.102155.1446687883167410013.mbj@tail-f.com>
To: j.schoenwaelder@jacobs-university.de
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <20150914081042.GC46546@elstar.local>
References: <20150911.093846.709202940600841233.mbj@tail-f.com> <55F2A4CE.70608@cisco.com> <20150914081042.GC46546@elstar.local>
X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/5Y_CdNsb1UZfGqoJuNNwsaEfllw>
Cc: netmod@ietf.org
Subject: Re: [netmod] YANG coordination feedback on draft-openconfig-netmod-opstate-01
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: <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, 14 Sep 2015 08:21:53 -0000

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> On Fri, Sep 11, 2015 at 10:54:22AM +0100, Robert Wilton wrote:
> > >
> > >Then Lada brought up the example of ip addresses.  It was mentioned
> > >on the call that for ip addresses there would be three lists; one for
> > >intended, one for applied, and one in derived state, where the one in
> > >derived state is what the box *really* uses.  So for example if it
> > >gets an ip from dhcp, it will be in the derived state list, but not in
> > >applied config.
> > >
> > >Why is this ip-address list different from the interface list?  Why
> > >was it enough with two lists for interfaces, but we need three for ip
> > >addresses?
> > I don't see that they are different.  I think that you have 3 
> > lists/leaves in both cases:
> > 
> > I.e. I would say that 3 IP addr leaves are required in an async system, 
> > at a given time t:
> >  - only the intended leaf can indicate what IP addr config the operator 
> > wants on the interface (if any).
> >  - only the applied leaf can indicate what IP addr is actually being 
> > used as the configured value on the interface.
> >  - only the derived leaf can indicate what IP addr is actually 
> > operationally being used for the interface (which might be due to IP 
> > addr config, DHCP, or perhaps some other mechanism).
> > 
> > I think that in the both kwatsen-netmod-opstate and 
> > wilton-netmod-opstate there are logically 3 interface lists as well:
> >  - /if:interfaces is logically split into 2, either through being 
> > present in separate running and applied datastores, or through having 
> > separate cfg-intended/cfg-applied leaves.
> >  - /if:interfaces-state, which I perceive as logically the derived 
> > state for an interface.
> >
> 
> My personal requirement would be to be able to find all IP addresses
> of an interface that are operationally used in one place.

Yes.  I am trying to understand if a separate list of operationally
used addresses is needed even if we have the "applied config".  I
think the answer is yes.  Then the question is if we don't need a
separate list of operationally used interfaces as well.  If we do,
what value does the "applied config" idea bring us?


/martin