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

Kent Watsen <kwatsen@juniper.net> Tue, 08 April 2014 17:21 UTC

Return-Path: <kwatsen@juniper.net>
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 39FEB1A0660 for <netconf@ietfa.amsl.com>; Tue, 8 Apr 2014 10:21:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.948
X-Spam-Level:
X-Spam-Status: No, score=-2.948 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, UNRESOLVED_TEMPLATE=1.252] 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 KViBlYTDWz_e for <netconf@ietfa.amsl.com>; Tue, 8 Apr 2014 10:21:36 -0700 (PDT)
Received: from tx2outboundpool.messaging.microsoft.com (tx2ehsobe002.messaging.microsoft.com [65.55.88.12]) by ietfa.amsl.com (Postfix) with ESMTP id 58BD41A0663 for <netconf@ietf.org>; Tue, 8 Apr 2014 10:21:28 -0700 (PDT)
Received: from mail23-tx2-R.bigfish.com (10.9.14.226) by TX2EHSOBE003.bigfish.com (10.9.40.23) with Microsoft SMTP Server id 14.1.225.22; Tue, 8 Apr 2014 17:21:11 +0000
Received: from mail23-tx2 (localhost [127.0.0.1]) by mail23-tx2-R.bigfish.com (Postfix) with ESMTP id 1F87CA03C3; Tue, 8 Apr 2014 17:21:11 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:157.56.240.101; KIP:(null); UIP:(null); IPV:NLI; H:BL2PRD0510HT002.namprd05.prod.outlook.com; RD:none; EFVD:NLI
X-SpamScore: -24
X-BigFish: VPS-24(zz98dI9371Ic85fh1432I4015Izz1f42h2148h1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6h208chzz8275ch1de098h1033IL17326ah8275bh8275dh18c673h1de097h186068hz2fh109h2a8h839hbe3he5bhf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh224fh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1fe8h1ff5h209eh20f0h2216h22d0h2336h2438h2461h2487h24ach24d7h2516h2545h255eh25cch25f6h2605h268bh26c8h26d3h1155h)
Received-SPF: pass (mail23-tx2: domain of juniper.net designates 157.56.240.101 as permitted sender) client-ip=157.56.240.101; envelope-from=kwatsen@juniper.net; helo=BL2PRD0510HT002.namprd05.prod.outlook.com ; .outlook.com ;
X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009001)(428001)(164054003)(377454003)(51704005)(199002)(189002)(24454002)(74366001)(94946001)(83506001)(74706001)(74876001)(63696002)(76796001)(76786001)(93516002)(46102001)(86362001)(36756003)(15975445006)(81542001)(80976001)(81686001)(31966008)(74662001)(95666003)(81816001)(74502001)(79102001)(95416001)(77096001)(20776003)(66066001)(59766001)(77982001)(65816001)(80022001)(85852003)(97336001)(47736002)(81342001)(98676001)(47446003)(53806002)(69226001)(83072002)(90146001)(54356002)(56816005)(56776001)(76482001)(50986002)(15202345003)(97186001)(92726001)(16236675002)(83322001)(87266001)(92566001)(19580405001)(19580395003)(94316002)(2656002)(49866001)(85306002)(47976002)(99396002)(87936001)(4396001)(54316003)(93136001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR05MB459; H:CO1PR05MB458.namprd05.prod.outlook.com; FPR:8CF4D12B.A302D7B4.7DF7917B.80E7D049.204D6; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
Received: from mail23-tx2 (localhost.localdomain [127.0.0.1]) by mail23-tx2 (MessageSwitch) id 1396977669118228_16755; Tue, 8 Apr 2014 17:21:09 +0000 (UTC)
Received: from TX2EHSMHS009.bigfish.com (unknown [10.9.14.239]) by mail23-tx2.bigfish.com (Postfix) with ESMTP id 166843C004C; Tue, 8 Apr 2014 17:21:09 +0000 (UTC)
Received: from BL2PRD0510HT002.namprd05.prod.outlook.com (157.56.240.101) by TX2EHSMHS009.bigfish.com (10.9.99.109) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 8 Apr 2014 17:21:06 +0000
Received: from CO1PR05MB459.namprd05.prod.outlook.com (10.141.72.146) by BL2PRD0510HT002.namprd05.prod.outlook.com (10.255.100.37) with Microsoft SMTP Server (TLS) id 14.16.435.0; Tue, 8 Apr 2014 17:21:23 +0000
Received: from CO1PR05MB458.namprd05.prod.outlook.com (10.141.72.140) by CO1PR05MB459.namprd05.prod.outlook.com (10.141.72.146) with Microsoft SMTP Server (TLS) id 15.0.913.9; Tue, 8 Apr 2014 17:21:21 +0000
Received: from CO1PR05MB458.namprd05.prod.outlook.com ([169.254.10.33]) by CO1PR05MB458.namprd05.prod.outlook.com ([169.254.10.33]) with mapi id 15.00.0913.002; Tue, 8 Apr 2014 17:21:21 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Andy Bierman <andy@yumaworks.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "t.petch" <ietfc@btconnect.com>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] comments on draft-kwatsen-netconf-server-00
Thread-Index: AQHPKv0ucc5p8aJ330OdaW2Ybc6v6pq7ahEAgAkOewCAQfmZuoABiUoAgABEvgCAAAZggP//vk8A
Date: Tue, 08 Apr 2014 17:21:20 +0000
Message-ID: <CF69A7C3.68676%kwatsen@juniper.net>
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> <CABCOCHSRyE_nMUybHrYRm7iuVGtyHGvL4oXaN90dXN_eXu47uQ@mail.gmail.com>
In-Reply-To: <CABCOCHSRyE_nMUybHrYRm7iuVGtyHGvL4oXaN90dXN_eXu47uQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.3.9.131030
x-originating-ip: [66.129.241.13]
x-forefront-prvs: 017589626D
Content-Type: multipart/alternative; boundary="_000_CF69A7C368676kwatsenjunipernet_"
MIME-Version: 1.0
X-FOPE-CRA-Verdict: 157.56.240.101$btconnect.com%0%1%DuplicateDomain-c684c95e-93ad-459f-9d80-96fa46cd75af.juniper.net%False%False%0$
X-OriginatorOrg: juniper.net
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%0$Dn%BTCONNECT.COM$RO%1$TLS%0$FQDN%$TlsDn%
Archived-At: http://mailarchive.ietf.org/arch/msg/netconf/2d25-XGLvhLZCYoquqe1pmWWi3A
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:21:44 -0000

Right, and if we agree to that in principle, then it seems that we should stop polluting our data-models with the "enabled" flag.   That way we have less number of data-models to clean up later, if we even can update them without breaking backwards-compatibility.

Thanks,
Kent


From: Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com>>
Date: Tuesday, April 8, 2014 1:16 PM
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>>, Kent Watsen <kwatsen@juniper.net<mailto:kwatsen@juniper.net>>, "t.petch" <ietfc@btconnect.com<mailto:ietfc@btconnect.com>>, NetConf <netconf@ietf.org<mailto:netconf@ietf.org>>
Subject: Re: [Netconf] comments on draft-kwatsen-netconf-server-00




On Tue, Apr 8, 2014 at 9:53 AM, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de<mailto: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<mailto: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<mailto:Netconf@ietf.org>
https://www.ietf.org/mailman/listinfo/netconf