Re: [i2rs] I-D Action: draft-ietf-i2rs-yang-network-topo-13.txt

Robert Wilton <rwilton@cisco.com> Wed, 28 June 2017 10:48 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: i2rs@ietfa.amsl.com
Delivered-To: i2rs@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 441A1129C04 for <i2rs@ietfa.amsl.com>; Wed, 28 Jun 2017 03:48:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.492
X-Spam-Level:
X-Spam-Status: No, score=-14.492 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
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 nl_BU6lSt9nk for <i2rs@ietfa.amsl.com>; Wed, 28 Jun 2017 03:48:39 -0700 (PDT)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 760BB12EAEB for <i2rs@ietf.org>; Wed, 28 Jun 2017 03:48:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=22627; q=dns/txt; s=iport; t=1498646917; x=1499856517; h=subject:to:references:from:message-id:date:mime-version: in-reply-to; bh=S0KcSYNWIBY4hZk1HUdpFagiRHLdppg+5kPJgWZK+BQ=; b=cEB+ukpUiTUVel1NowY+Z6Z1sS3UR3SuyI8jneY0HnZ4AelkkGfKCbNe Fm56PZt5wyYMlriv8niGC2LgV97xPpzWeHecv5amrgBSR3bhzKscE57Z2 xgWwI/QABgQ0kGnHxdI5sTKYo2xfMpLvkaeB1WZ+DYESTI1rfuy8unseh E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DPAAB6iFNZ/xbLJq1cGQEBAQEBAQEBAQEBBwEBAQEBgm+CWoNsihlzkFMic4FOhWmNUIIRhhwCg0QYAQIBAQEBAQEBayiFGAEBAQECASMKUQsLEQMBAQEBIAcDAgJFAQkIBgEMBgIBARWJfwMNCLEkgiYpizQBAQEBAQEBAQEBAQEBAQEBAQEBAQEdgyeDTIFhKwuBYlg0gleCMxaCXYJhBYd1DIFThnGGXocWO48PhGGCCoVKg0uGd4ktgj1tiFEfOIEKMCEIGxWFWhyBZz82iToBAQE
X-IronPort-AV: E=Sophos;i="5.40,275,1496102400"; d="scan'208,217";a="652889197"
Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2017 10:48:35 +0000
Received: from [10.63.23.55] (dhcp-ensft1-uk-vla370-10-63-23-55.cisco.com [10.63.23.55]) by aer-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id v5SAmYDx012756; Wed, 28 Jun 2017 10:48:35 GMT
To: Alexander Clemm <alexander.clemm@huawei.com>, 'Xufeng Liu' <Xufeng_Liu@jabil.com>, "i2rs@ietf.org" <i2rs@ietf.org>
References: <149810775944.30654.3855289160631916559@ietfa.amsl.com> <01a101d2eb18$8efea040$acfbe0c0$@clemm.org> <37626ce1-f10e-0357-e749-cfa9de40951a@cisco.com> <20170624131701.GC2187@elstar.local> <64c72fd5-8833-5d3c-afba-60402adf0882@cisco.com> <308C9498061C7E0D.327c7acb-aec9-4f08-b62c-980f928829ea@mail.outlook.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0E0BC826@SJCEML702-CHM.china.huawei.com> <b46b3778-f5d8-f3b8-82c9-a3ae72cc3b69@cisco.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0E0BDAAD@SJCEML702-CHM.china.huawei.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <ffcc83a6-d307-8a70-9353-4a066d7c9010@cisco.com>
Date: Wed, 28 Jun 2017 11:48:34 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0E0BDAAD@SJCEML702-CHM.china.huawei.com>
Content-Type: multipart/alternative; boundary="------------3C212B47D3DD613084B76B30"
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/_MZWmSeOuOIyZv_nPijpqwIh500>
Subject: Re: [i2rs] I-D Action: draft-ietf-i2rs-yang-network-topo-13.txt
X-BeenThere: i2rs@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Interface to The Internet Routing System \(IRS\)" <i2rs.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i2rs>, <mailto:i2rs-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i2rs/>
List-Post: <mailto:i2rs@ietf.org>
List-Help: <mailto:i2rs-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i2rs>, <mailto:i2rs-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jun 2017 10:48:42 -0000

Hi Alex,


On 27/06/2017 22:09, Alexander Clemm wrote:
>
> Hi Robert,
>
> We will add it to the draft.
>
> This will presumably also affect the l3-topo draft, to augment the 
> –state with its own –state tree.
>
Yes, I would think so.

> You mention tooling that can automatically generate this.  Can you 
> please point me to such a tool?  (If not, no problem, will update 
> manually.)
>
Not that is robust enough at the moment, it needs some more work.

> Will investigate use of grouping and uses statements.  In that case 
> the –state module could simply use the grouping defined in the 
> NMDA-compliant module.
>
Groupings can sometimes be shared, but I think that gets more complex, 
so life is easier if you don't try and optimize them.

I think that the conversion steps are:
1) Take a copy of the NMDA module and add "-state" to the name of the 
module, and also in the namespace.
2) Add "-s" to the prefix.
3) Delete any typedefs/identities and import from the original NMDA 
module instead.
4) Fixup up augments to augment the "-state" module path instead of the 
NMDA config tree, and add any required imports.
5) Check xpath expressions.  Paths that are relative and internal to the 
module should be fine, absolute paths may need to be updated to use the 
equivalent -state module (if it exists).

Thanks,
Rob

> Thanks
>
> --- Alex
>
> *From:*Robert Wilton [mailto:rwilton@cisco.com]
> *Sent:* Tuesday, June 27, 2017 2:50 AM
> *To:* Alexander Clemm <alexander.clemm@huawei.com>; 'Xufeng Liu' 
> <Xufeng_Liu@jabil.com>; i2rs@ietf.org
> *Subject:* Re: [i2rs] I-D Action: draft-ietf-i2rs-yang-network-topo-13.txt
>
> Hi Alex,
>
> If you need to represent learned topologies before NMDA compliant 
> implementations are available then you need the extra -state module 
> (i.e. a copy of the NMDA compatible I2RS topology module, but with 
> name appended with -state and all nodes set as config false).  This 
> could be generated via tooling, put into github, or added in an 
> appendix to the draft.
>
> Without this, then the existing I2RS topology module can only be used 
> to represent configured topologies on non NMDA compliant 
> implementations (specifically any implementations that don't expose 
> the operational state datastore).
>
> For NMDA compliant implementations the network topology module in 
> draft -13 works well.
>
> Thanks,
> Rob
>
> On 26/06/2017 18:52, Alexander Clemm wrote:
>
>     Hi Rob,
>
>     Inline <ALEX>, below
>
>     Thanks
>
>     --- Alex
>
>     ---------- Forwarded message ----------
>     From: "*Robert Wilton*" <rwilton@cisco.com <mailto:rwilton@cisco.com>>
>     Date: Mon, Jun 26, 2017 at 1:53 AM -0700
>     Subject: Re: [i2rs] I-D Action:
>     draft-ietf-i2rs-yang-network-topo-13.txt
>     To: "Alexander Clemm" <ludwig@clemm.org
>     <mailto:ludwig@clemm.org>>, <i2rs@ietf.org
>     <mailto:i2rs@ietf.org>>, "'Nitin Bahadur'"
>     <nitin_bahadur@yahoo.com <mailto:nitin_bahadur@yahoo.com>>, "'Russ
>     White'" <russ@riw.us <mailto:russ@riw.us>>, "'Xufeng Liu'"
>     <Xufeng_Liu@jabil.com <mailto:Xufeng_Liu@jabil.com>>,
>     <hari@packetdesign.com <mailto:hari@packetdesign.com>>, "'Jan
>     Medved (jmedved)'" <jmedved@cisco.com <mailto:jmedved@cisco.com>>,
>     <robert.varga@pantheon.sk <mailto:robert.varga@pantheon.sk>>,
>     "'Susan Hares'" <shares@ndzh.com <mailto:shares@ndzh.com>>, "Kent
>     Watsen" <kwatsen@juniper.net <mailto:kwatsen@juniper.net>>,
>     "Martin Bjorklund" <mbj@tail-f.com <mailto:mbj@tail-f.com>>
>
>
>     Hi Juergen,
>
>       
>
>       
>
>     On 24/06/2017 14:17, Juergen Schoenwaelder wrote:
>
>     > On Thu, Jun 22, 2017 at 11:44:00AM +0100, Robert Wilton wrote:
>
>     >> Do you think that it would be useful if the draft also included the extra
>
>     >> transient "-state" modules in an appendix (e.g. as per
>
>     >> draft-dsdt-nmda-guidelines-01 section 2)?
>
>     >>
>
>     >> Specifically, I'm thinking to help make the topology module fully usable by
>
>     >> modules that augment it (e.g. by the TE modules if/when they adopt the NMDA
>
>     >> conventions), until NMDA implementations before widely available.
>
>     >>
>
>     > Rob,
>
>     >
>
>     > the less we have of those transient "-state" trees, the better it is.
>
>     > For LMAP (in auth48) we did not do this. These extra "-state" trees
>
>     > should ideally only be used in very rare cases, I think existing code
>
>     > already works with a single tree (at least this is what I understood
>
>     > from the OpenDaylight discussions).
>
>     I completely agree with you in general, but for the topology module I
>
>     think that the -state tree is required to represent topologies that
>
>     exist but have not been configured (e.g. perhaps those learned from a
>
>     dynamic routing protocol).
>
>       
>
>     Also copying Kent and Martin, since they were very both very involved in
>
>     the discussions on the I2RS alias discussing the structure of the I2RS
>
>     network topology module.
>
>       
>
>     My interpretation is from Xufeng was it is needed for the TE YANG
>
>     modules, but if it turns out that it is not actually needed, then that
>
>     is also good with me ;-)
>
>       
>
>     <ALEX>
>
>     The need to represent topologies that are learned is certainly
>     there.  It is not exclusive to TE, and I would be surprised if TE
>     YANG modules have an extra need for a separate state tree. 
>     Probably the best person to comment here is Xufeng, but it sounds
>     to me, also per Juergen’s comments, that an extra state tree will
>     _/not/_ be needed.
>
>     </ALEX>
>
>     Thanks,
>
>     Rob
>
>       
>
>     >
>
>     > /js
>
>     >
>
>       
>