Re: [Netconf] 4741bis -- :url capability issues

Martin Bjorklund <mbj@tail-f.com> Fri, 30 April 2010 21:31 UTC

Return-Path: <mbj@tail-f.com>
X-Original-To: netconf@core3.amsl.com
Delivered-To: netconf@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1A1EE28C0FF for <netconf@core3.amsl.com>; Fri, 30 Apr 2010 14:31:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.218
X-Spam-Level:
X-Spam-Status: No, score=-1.218 tagged_above=-999 required=5 tests=[AWL=0.828, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XZZZns+3H2im for <netconf@core3.amsl.com>; Fri, 30 Apr 2010 14:31:41 -0700 (PDT)
Received: from mail.tail-f.com (de-0316.d.ipeer.se [213.180.79.212]) by core3.amsl.com (Postfix) with ESMTP id B06283A6C71 for <netconf@ietf.org>; Fri, 30 Apr 2010 14:31:41 -0700 (PDT)
Received: from localhost (c213-100-166-156.swipnet.se [213.100.166.156]) by mail.tail-f.com (Postfix) with ESMTPSA id 81E2C616001; Fri, 30 Apr 2010 23:31:27 +0200 (CEST)
Date: Fri, 30 Apr 2010 23:31:26 +0200
Message-Id: <20100430.233126.188322952.mbj@tail-f.com>
To: phil@juniper.net
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <201004301434.o3UEY42M068686@idle.juniper.net>
References: <4BDA3FA5.4020306@iwl.com> <201004301434.o3UEY42M068686@idle.juniper.net>
X-Mailer: Mew version 7.0.50 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Cc: netconf@ietf.org
Subject: Re: [Netconf] 4741bis -- :url capability issues
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/netconf>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Apr 2010 21:31:43 -0000

Phil Shafer <phil@juniper.net> wrote:
> Andy Bierman writes:
> >Hi,
> >
> >Here are more issues for 4741bis:
> >
> >1) :url as a source for <edit-config>
> >   (Martin already raised this issue)
> >
> >         choice edit-content {
> >           mandatory true;
> >           anyxml config {
> >             description
> >               "Inline Config content: 'config' element.
> >                This is not full 'anyxml' because the <config>
> >                element cannot directly contain a text node.";
> >           }
> 
> I may be missing something, but why can't I put text in <config>?
> If my data model (which NETCONF doesn't care about) is text-based
> config, can I not put that config directly in the <config> element?
> 
> >           leaf url {
> >             if-feature url;
> >             type inet:uri;
> >           }
> >         }
> >
> >   The edit-config operation allows <url> as a source,
> >   but there is no explanation what the file has to contain.
> 
> The file contains data acceptable to the data model(s) supported
> by the device.  You can say "go load that file" instead of putting
> it inline with the <config> element.
> 
> >   Does it even have to be XML?
> 
> If should be any content that would be acceptable in a <config>
> element.

The problem with this that in the <config> element, you may have
several child elements, e.g.:

  <config>
    <interface xmlns="urn:ietf...:inteface">
      ...
    <interface>
    <nacm xmlns="urn:ietf....nacm">
      ...
    </nacm>
  </config>

If you just copy the stuff in the <config> element and put it into a
file, you will get an invalid XML document.  Now, this may not be a
problem, but if this is something we want to support in an
interoperable way, we need to define how this should work.

(But I don't think this is an important feature, and would rather see
it removed.)



/martin