Re: [netmod] interface-cfg issues

Martin Bjorklund <mbj@tail-f.com> Tue, 30 April 2013 08:30 UTC

Return-Path: <mbj@tail-f.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 84B2B21F9B1B for <netmod@ietfa.amsl.com>; Tue, 30 Apr 2013 01:30:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.213
X-Spam-Level:
X-Spam-Status: No, score=-2.213 tagged_above=-999 required=5 tests=[AWL=-0.167, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9rA9cipv+X-4 for <netmod@ietfa.amsl.com>; Tue, 30 Apr 2013 01:29:59 -0700 (PDT)
Received: from mail.tail-f.com (de-2007.d.ipeer.se [213.180.74.102]) by ietfa.amsl.com (Postfix) with ESMTP id 881AF21F9B14 for <netmod@ietf.org>; Tue, 30 Apr 2013 01:29:59 -0700 (PDT)
Received: from localhost (138.162.241.83.in-addr.dgcsystems.net [83.241.162.138]) by mail.tail-f.com (Postfix) with ESMTPSA id 9FBC112008B7; Tue, 30 Apr 2013 10:29:58 +0200 (CEST)
Date: Tue, 30 Apr 2013 10:29:58 +0200
Message-Id: <20130430.102958.1781600496429359767.mbj@tail-f.com>
To: j.schoenwaelder@jacobs-university.de
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <20130430.101213.940183903512995864.mbj@tail-f.com>
References: <20130430.092945.981969607302073955.mbj@tail-f.com> <20130430074930.GA46852@elstar.local> <20130430.101213.940183903512995864.mbj@tail-f.com>
X-Mailer: Mew version 6.5rc2 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
Cc: netmod@ietf.org
Subject: Re: [netmod] interface-cfg issues
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.12
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: Tue, 30 Apr 2013 08:30:04 -0000

Martin Bjorklund <mbj@tail-f.com> wrote:
> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> > On Tue, Apr 30, 2013 at 09:29:45AM +0200, Martin Bjorklund wrote:
> > > Hi,
> > > 
> > > The Routing Directorate review of
> > > draft-ietf-netmod-interfaces-cfg-10.txt
> > > brought up a couple of issues that I think the WG needs to dicsuss.
> > > 
> > > (The original mail is not in the list archive, but my reply is found
> > > here: 
> > > http://www.ietf.org/mail-archive/web/netmod/current/msg08031.html)
> > > 
> > > 
> > > 1)  The name "location"
> > > 
> > > > > >> 3. Interfaces Data Model
> > > > > >> …
> > > > > >>            +--rw location?                   string
> > > > > >> ...
> > > > > >> 3.1. The interface List
> > > > > >> …
> > > > > >>   The "location" leaf is a string.  It is optional in the data model,
> > > > > >>   but if the type represents a physical interface, it is mandatory.
> > > > > >>   The format of this string is device- and type-dependent.  The device
> > > > > >>   uses the location string to identify the physical or logical entity
> > > > > >>   that the configuration applies to.  For example, if a device has a
> > > > > >>   single array of 8 ethernet ports, the location can be one of the
> > > > > >>   strings "1" to "8".  As another example, if a device has N cards of M
> > > > > >>   ports, the location can be on the form "n/m", such as "1/0".
> > > > > >> 
> > > > > >> I think that "location" is a poorly chosen label, a misnomer. This
> > > > > >> seems to be
> > > > > >> closer to an identifier than a locator. For example, some devices
> > > > > >> number slots
> > > > > >> left to right, and some number slots right to left :-)
> > > > > > 
> > > > > > Correct, and we do not try to get into this at all.  Some
> > > > > > devices has 2 ports called A and B, and some have chassis of cards
> > > > > > with rows of ports...
> > > > > > 
> > > > > >> This does not answer
> > > > > >> "where" something is; I do not mean geo-location, but I strongly
> > > > > >> suggest
> > > > > >> getting more precision on how this leaf is called. For example,
> > > > > >> interface
> > > > > >> numbering, instance id, type identifier, etc.
> > > > > > 
> > > > > > The intention is really to be "where" the port is.  It is not intended
> > > > > > to be a virtual id.  If the operator plugs in a cable in a certain
> > > > > > port, he has to know how to configure this port so there must be
> > > > > > something in the config that connects to the physical port.  We use
> > > > > > the name "location" for this purpose.
> > > > > 
> > > > > Thanks for the explanation. While I appreciate (and I agree) that you
> > > > > do not get into interpreting or parsing the syntax of the field, I
> > > > > still think it is not a "location".
> > > > > 
> > > > > I believe there is still an underlying assumption that the language is
> > > > > defined for the physical world. If you have an Ethernet1/0, versus an
> > > > > Ethernet1/2, that identifies (not locates) which interface. Yes, you
> > > > > can use that to physically find them. But what if you have a
> > > > > "loopback123" vs "loopback112358 or a "Serial1/4:5.123"? I do not
> > > > > think we can "locate" the loopback, or the subinterface.
> > > > > 
> > > > > If the operator creates a "loopback", "Tunnel", or virtual interface,
> > > > > he or she does not need to physically locate it.
> > > > > 
> > > > > I believe that labeling the leaf as "location" can be harmful as it
> > > > > implies a specific meaning and shows assumptions.
> > > > 
> > > > Ok I think I understand your concern.  Personally, I think "location"
> > > > works also in this case, but we should pick a name that is as useful
> > > > as possible.  Let me bring this issue back to the WG.
> > > 
> > > 
> > > Any comments on this?
> > > 
> > 
> > My understanding is that location is primarily for physical network
> > interfaces. For logical interfaces, the location may not be defined.
> > This covers loopback, tunnel, and virtual interfaces. Perhaps all that
> > needs to be done is to state that for interfaces that do not have a
> > location like loopback interfaces, the location leaf will not exist.
> 
> So we should probably say that it is used *only* for physical
> interfaces, not "primarily" - or is there a situation where it could
> be used also for logical/virtual interfaces?  For example, for
> loopbacks, you could theoretically use a plain number as the
> location.  If we limit location to physical interfaces, you would have
> to define a "number" leaf for loopbacks (in some other module).  But
> it might be ok,

Hmm, for loopback you don't need anything more than the unique name
(and the type).  No location or number is needed...


/martin