Re: [netmod] AD review of draft-ietf-netmod-interfaces-cfg-09

Martin Bjorklund <mbj@tail-f.com> Wed, 17 April 2013 20:49 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 30F0D21E8098 for <netmod@ietfa.amsl.com>; Wed, 17 Apr 2013 13:49:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.046
X-Spam-Level:
X-Spam-Status: No, score=-2.046 tagged_above=-999 required=5 tests=[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 yr6FoVgf8LNu for <netmod@ietfa.amsl.com>; Wed, 17 Apr 2013 13:49:32 -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 6D3F721E8091 for <netmod@ietf.org>; Wed, 17 Apr 2013 13:49:32 -0700 (PDT)
Received: from localhost (c213-100-166-57.cust.tele2.se [213.100.166.57]) by mail.tail-f.com (Postfix) with ESMTPSA id 450501200CBB; Wed, 17 Apr 2013 22:49:31 +0200 (CEST)
Date: Wed, 17 Apr 2013 22:49:30 +0200
Message-Id: <20130417.224930.124544323.mbj@tail-f.com>
To: j.schoenwaelder@jacobs-university.de
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <20130417151914.GB184@elstar.local>
References: <20130408.233810.311649160.mbj@tail-f.com> <516EB72E.5070604@cisco.com> <20130417151914.GB184@elstar.local>
X-Mailer: Mew version 6.5rc2 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Cc: netmod@ietf.org
Subject: Re: [netmod] AD review of draft-ietf-netmod-interfaces-cfg-09
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: Wed, 17 Apr 2013 20:49:33 -0000

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> On Wed, Apr 17, 2013 at 04:52:30PM +0200, Benoit Claise wrote:
> > >
> > What would be required is a new appendix with how the config at
> > http://www.youtube.com/watch?v=KdQlwm6bIpM might be defined.
> > Alternatively, the appendix C could be improved.
> > Specifically, the combination of type and location must be clearly
> > labeled (or explained) for the primary interface and subinterfaces.

[...]

> Perhaps all that is needed is to add another vlan example interface to
> the config snipped shown in Appendix D.

I think this makes sense.  I suggest we change the example in app. D
to:

<rpc-reply
    xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
    message-id="101">
  <data>
    <interfaces
        xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
        xmlns:vlan="http://example.com/vlan">
      <interface>
        <name>eth0</name>
        <type>ethernetCsmacd</type>
        <location>0</location>
        <enabled>true</enabled>
        <if-index>2</if-index>
      </interface>
      <interface>
        <name>eth1</name>
        <type>ethernetCsmacd</type>
        <location>1</location>
        <enabled>true</enabled>
        <if-index>7</if-index>
        <vlan:vlan-tagging>true</vlan:vlan-tagging>
      </interface>
      <interface>
        <name>eth1.10</name>
        <type>l2vlan</type>
        <enabled>true</enabled>
        <if-index>9</if-index>
        <vlan:base-interface>eth1</vlan:base-interface>
        <vlan:vlan-id>10</vlan:vlan-id>
      </interface>
    </interfaces>
  </data>
</rpc-reply>

While doing this, I found and fixed a bug in a must expression in
Appendix C - quotes were missing around the literal 'true'.


Benoit, is this what you had in mind?



/martin