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

Alexander Clemm <alexander.clemm@huawei.com> Wed, 28 June 2017 17:51 UTC

Return-Path: <alexander.clemm@huawei.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 1A16C129C29 for <i2rs@ietfa.amsl.com>; Wed, 28 Jun 2017 10:51:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.211
X-Spam-Level:
X-Spam-Status: No, score=-4.211 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=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 SzGrTgyx7Jht for <i2rs@ietfa.amsl.com>; Wed, 28 Jun 2017 10:51:09 -0700 (PDT)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EC30B127078 for <i2rs@ietf.org>; Wed, 28 Jun 2017 10:51:08 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml702-cah.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DPZ69468; Wed, 28 Jun 2017 17:51:07 +0000 (GMT)
Received: from SJCEML703-CHM.china.huawei.com (10.208.112.39) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.301.0; Wed, 28 Jun 2017 18:51:06 +0100
Received: from SJCEML702-CHM.china.huawei.com ([169.254.4.142]) by SJCEML703-CHM.china.huawei.com ([169.254.5.136]) with mapi id 14.03.0301.000; Wed, 28 Jun 2017 10:51:01 -0700
From: Alexander Clemm <alexander.clemm@huawei.com>
To: Robert Wilton <rwilton@cisco.com>, 'Xufeng Liu' <Xufeng_Liu@jabil.com>, "i2rs@ietf.org" <i2rs@ietf.org>
Thread-Topic: [i2rs] I-D Action: draft-ietf-i2rs-yang-network-topo-13.txt
Thread-Index: AQHS7yrOk7VGfsKuwk+o0vJCGS1c7aI5NCVAgAFbCwCAAACWMA==
Date: Wed, 28 Jun 2017 17:51:00 +0000
Message-ID: <644DA50AFA8C314EA9BDDAC83BD38A2E0E0BE0C1@SJCEML702-CHM.china.huawei.com>
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> <ffcc83a6-d307-8a70-9353-4a066d7c9010@cisco.com>
In-Reply-To: <ffcc83a6-d307-8a70-9353-4a066d7c9010@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.213.48.147]
Content-Type: multipart/alternative; boundary="_000_644DA50AFA8C314EA9BDDAC83BD38A2E0E0BE0C1SJCEML702CHMchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.5953EC8B.01A7, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.4.142, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: edb946ef06e4209502bdf04ec0b01ce9
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/rObhGako8ACoR_C35XuSxy2mf5g>
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 17:51:13 -0000

Hi Rob,

Thank you

--- Alex

From: Robert Wilton [mailto:rwilton@cisco.com]
Sent: Wednesday, June 28, 2017 3:49 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,

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><mailto:alexander.clemm@huawei.com>; 'Xufeng Liu' <Xufeng_Liu@jabil.com><mailto:Xufeng_Liu@jabil.com>; i2rs@ietf.org<mailto: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

>