Re: [Netconf] comments on draft-kwatsen-netconf-server-00

Andy Bierman <andy@yumaworks.com> Tue, 08 April 2014 17:16 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EA4701A0652 for <netconf@ietfa.amsl.com>; Tue, 8 Apr 2014 10:16:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001] 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 mZ_UO55sIotN for <netconf@ietfa.amsl.com>; Tue, 8 Apr 2014 10:16:29 -0700 (PDT)
Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by ietfa.amsl.com (Postfix) with ESMTP id 35E3D1A0659 for <netconf@ietf.org>; Tue, 8 Apr 2014 10:16:24 -0700 (PDT)
Received: by mail-qg0-f53.google.com with SMTP id f51so327726qge.40 for <netconf@ietf.org>; Tue, 08 Apr 2014 10:16:24 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=U9t4JduG7eWd4a+cAAwCoTUE6UlF62UFwpZd3TZivH8=; b=i+vNCUAkALJam+EFdadTSJP//68Mb/1lRNVwHsi07Uv7RM1n6jK9T8FKLEBlJqY8Ty /W3kFTNww/hVQNBpFSzbUwudXjs6+IzhURc0XeMQ13+I+gWrOArPMDhKx87J/q4GTLcj vpqaEBGBekel1WPon1Wy4pYxbjpmp0I6jJF7yZJZB2oXGvNzmnuzaYZfeArRauxNWRSH OWlC0Trzyj0T8p0nHP0wlPUC9g5BVMdpnCae7VQx93Vmik+GyEiJZ1F7JXm4wCXDuNEw 4onuGIFi7Z19WpUwq6ZbaDe1wdhtpoUodqLOZY8n7Q8V83fm7/Hxdu4l+CH+XWqubnMp eDVg==
X-Gm-Message-State: ALoCoQkvpZIB7Il6OuVnBVscev1OUFF//321dChiqyl2Qxm3qMYzxO6dQp8tlJNz561lNSsogd7d
MIME-Version: 1.0
X-Received: by 10.140.27.193 with SMTP id 59mr5988061qgx.18.1396977383880; Tue, 08 Apr 2014 10:16:23 -0700 (PDT)
Received: by 10.140.41.134 with HTTP; Tue, 8 Apr 2014 10:16:23 -0700 (PDT)
In-Reply-To: <20140408165334.GF6864@elstar.local>
References: <20140216.104746.335052742.mbj@tail-f.com> <CF29561E.5F04A%kwatsen@juniper.net> <CF30EE63.5FA00%kwatsen@juniper.net> <000f01cf5263$caa53ba0$4001a8c0@gateway.2wire.net> <CF699C7F.68613%kwatsen@juniper.net> <20140408165334.GF6864@elstar.local>
Date: Tue, 08 Apr 2014 10:16:23 -0700
Message-ID: <CABCOCHSRyE_nMUybHrYRm7iuVGtyHGvL4oXaN90dXN_eXu47uQ@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Kent Watsen <kwatsen@juniper.net>, "t.petch" <ietfc@btconnect.com>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="001a11c1233ab9de3c04f68b246f"
Archived-At: http://mailarchive.ietf.org/arch/msg/netconf/fwta2cUva4Msn1w3YM-P2oA4ufk
Subject: Re: [Netconf] comments on draft-kwatsen-netconf-server-00
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Tue, 08 Apr 2014 17:16:33 -0000

On Tue, Apr 8, 2014 at 9:53 AM, Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> The enabled with a default true leaf allows to disable a transport
> without having to remove all config. There is currently no other
> mechanism available in RFCs to do this and hence this pattern may
> still have value.
>
>
Is this something that can be fixed in YANG 1.1?
You are right -- there is no way to disable some sub-tree except
to add an ad-hoc "enabled" leaf somewhere.

IMO this is wrong because it distorts must/when expressions.
Objects that have dependencies on specific nodes within the
disabled subtree will appear to be active and valid.

The YANG validation statements are only supposed to consider
active configuration. leafref can only use valid instances of the path
object.


   leaf A {
      type leafref { path /B/C; }
   }

   leaf AA {
      type string;
      when "/B/enabled and /B/C = 'foo'";
   }

   list B {
      key C;
      leaf enabled { type boolean; }
      leaf C { type string; }
   }

The A leaf will be valid even for key entries in list B
that are disabled.  This is broken.  The when-expr in AA
has to account for the enabled flag or it would be broken.

IMO we are making a big mistake by using this approach instead
of the Conditional Enablement approach in Kent's draft.
The server has to treat the entire subtree as removed from the config,
not use an ad-hoc flag in the data model.



> /js
>


Andy


>
> On Tue, Apr 08, 2014 at 04:47:34PM +0000, Kent Watsen wrote:
> >
> >
> >
> > >draft-ietf-netconf-rfc5539bis-03 had
> > >
> > >         +--rw tls
> > >            +--rw enabled?     boolean
> > >
> > >which draft-kwatsen-netconf-server-00 lacks.  Why?
> > >
> > >Tom Petch
> >
> >
> > This must've gotten dropped do to the draft-kwatsen-netconf-server model
> > having a didn't structure, but as the original 5539 had no model, I think
> > that it's a fair topic for discussion.
> >
> > Personally, I'd rather stick with the original intent of presence
> > containers: "enabled" if-and-only-if  "configured".  We're using these
> > "enabled" configuration nodes as a substitute to having XML attributes
> for
> > metadata describing the node's enablement, such as is described in
> > draft-kwatsen-conditional-enablement.  At the time that draft was
> written,
> > there didn't seem to be much interest, but then later I heard some
> support
> > from Andy.  My thinking is to dust it off and get it going again, maybe
> > something simpler this time.
> >
> > Again, I'm thinking that it's OK, and even a good thing, to just use the
> > original intent of presence containers for now, knowing that a more
> > complete solution (which is clearly in demand) is right around the
> corner.
> >  What do people think?  Is there support to work on
> > draft-kwatsen-conditional-enablement?
> >
> > Thanks,
> > Kent
> >
> >
> > _______________________________________________
> > Netconf mailing list
> > Netconf@ietf.org
> > https://www.ietf.org/mailman/listinfo/netconf
>
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
> Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>