Re: [i2rs] Kathleen Moriarty's No Objection on draft-ietf-i2rs-yang-l3-topology-08: (with COMMENT)

Xufeng Liu <Xufeng_Liu@jabil.com> Thu, 02 February 2017 17:13 UTC

Return-Path: <Xufeng_Liu@jabil.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 E6F851294BA; Thu, 2 Feb 2017 09:13:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.922
X-Spam-Level:
X-Spam-Status: No, score=-1.922 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=jabil.onmicrosoft.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 M53AkJ_JIqy8; Thu, 2 Feb 2017 09:13:39 -0800 (PST)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0115.outbound.protection.outlook.com [104.47.42.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 91523129722; Thu, 2 Feb 2017 09:13:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jabil.onmicrosoft.com; s=selector1-jabil-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3MqLMSPxcv+lv/66jKjujFkCIx1HI+vsg2HHr/H/KII=; b=cRrBuJ5MVYZTvFwiQu43pSIcfI3HKQrAoOA+oSGb91mUaXNfJ7fJkqjkFo0/2HEJ2ha/c8+IYIcl/qI79GJbaZfbs4bcv6yMIQCo/3ZkMkXPS6mmTTklPXWXkpWEmld7T3Q+LFusH181l752vWy+0+kve9nKlomGi8Vq8Ty+Yq8=
Received: from BN3PR02MB1141.namprd02.prod.outlook.com (10.162.168.147) by BN3PR02MB1141.namprd02.prod.outlook.com (10.162.168.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Thu, 2 Feb 2017 17:13:36 +0000
Received: from BN3PR02MB1141.namprd02.prod.outlook.com ([10.162.168.147]) by BN3PR02MB1141.namprd02.prod.outlook.com ([10.162.168.147]) with mapi id 15.01.0874.021; Thu, 2 Feb 2017 17:13:36 +0000
From: Xufeng Liu <Xufeng_Liu@jabil.com>
To: Martin Bjorklund <mbj@tail-f.com>
Thread-Topic: [i2rs] Kathleen Moriarty's No Objection on draft-ietf-i2rs-yang-l3-topology-08: (with COMMENT)
Thread-Index: AQHSdw/y6tc6V0kTeEi7pAhS6Zp8AqFJRx6AgAAEUoCAAALgAIALPDeAgAALPQCAABeFgIAABLgAgAAODICAAJ8egIAAZlpAgAAsEQCAAAgoYA==
Date: Thu, 02 Feb 2017 17:13:36 +0000
Message-ID: <BN3PR02MB11415971D591FE5181D53409F14C0@BN3PR02MB1141.namprd02.prod.outlook.com>
References: <644DA50AFA8C314EA9BDDAC83BD38A2E0DF7D7EE@SJCEML703-CHM.china.huawei.com> <20170202.083329.1828765889486608943.mbj@tail-f.com> <BN3PR02MB1141CB95373AA63789365FEDF14C0@BN3PR02MB1141.namprd02.prod.outlook.com> <20170202.171732.487428777571541086.mbj@tail-f.com>
In-Reply-To: <20170202.171732.487428777571541086.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Xufeng_Liu@jabil.com;
x-originating-ip: [98.191.72.170]
x-ms-office365-filtering-correlation-id: 05a62782-5601-48e9-6bd1-08d44b8ed329
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:BN3PR02MB1141;
x-microsoft-exchange-diagnostics: 1; BN3PR02MB1141; 7:SWT4sWky0VXJQOKxV2PYYcnfXw15U/1N0cGOWGgMsuU3UcEmdx9lFYziFpoycSzJ4kUCjljXd9YP/WxS1N8s6EdHYaMk7MxqDfdEaZcTGGATCSgpTkl/6l4XAxBBQTiqbQJOTz2a4Zp9v1rr1sJWJUCo/IkvxUKv6ugNKlCUtdYUxbeqAUzfdO9xpj8g4I+Hqfn64sJdjTU8ArcGZDG2l6IMWvP5BD6SwZO5yxOreB98yZ+LDliitNvAKflA/u51t5BvmLAjJLL9HSRbN8kMHUUo8TzD89Tm+F5rZImPUPqwN+LCFtUnwZ+yXTqjAM0TqPCB6J9Cs5fIhH8Hp1ObpHdy5gLvSDwr5nzAXw5klID0chnIKZSxl0GUyPzqlZQS1VuGXH0qxuj1TGP0UhtcHv+fKGPusd7+eBzArn9YOFOElnHNMzyskPjZiH2oMVmeC81x4fFkLzI1m+gRNRGXUiq76ZPc9t0AH9LHL6sThK7bmCt9/kfQYuwhiGdiiMzvdwDneKX2RXH7tLRQ5kSZIM5T8JT3vSpgMXEg9Q5uLq293W7oZC7G18945dQ6Szzn
x-microsoft-antispam-prvs: <BN3PR02MB1141F18434497214FE870251F14C0@BN3PR02MB1141.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(50582790962513)(21534305686606);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123558025)(20161123562025)(20161123560025)(20161123555025)(6072148); SRVR:BN3PR02MB1141; BCL:0; PCL:0; RULEID:; SRVR:BN3PR02MB1141;
x-forefront-prvs: 02065A9E77
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39840400002)(39450400003)(39850400002)(39860400002)(39410400002)(377454003)(189002)(24454002)(199003)(52314003)(13464003)(2900100001)(92566002)(38730400001)(39060400001)(2906002)(99286003)(74316002)(55016002)(8936002)(86362001)(3280700002)(68736007)(77096006)(25786008)(6506006)(97736004)(5660300001)(229853002)(54906002)(6436002)(9686003)(230783001)(4326007)(110136003)(105586002)(81166006)(81156014)(33656002)(3846002)(80792005)(101416001)(54356999)(50986999)(76176999)(93886004)(6916009)(122556002)(2950100002)(7736002)(6116002)(189998001)(7696004)(53936002)(102836003)(66066001)(106116001)(8676002)(3660700001)(305945005)(106356001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR02MB1141; H:BN3PR02MB1141.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: jabil.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: jabil.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2017 17:13:36.4577 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bc876b21-f134-4c12-a265-8ed26b7f0f3b
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR02MB1141
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/UPDSuqUYiZ8R9vfLCSojY5SWboI>
Cc: "i2rs@ietf.org" <i2rs@ietf.org>, "draft-ietf-i2rs-yang-l3-topology@ietf.org" <draft-ietf-i2rs-yang-l3-topology@ietf.org>, "akatlas@gmail.com" <akatlas@gmail.com>, "alexander.clemm@huawei.com" <alexander.clemm@huawei.com>, "iesg@ietf.org" <iesg@ietf.org>, "lberger@labn.net" <lberger@labn.net>
Subject: Re: [i2rs] Kathleen Moriarty's No Objection on draft-ietf-i2rs-yang-l3-topology-08: (with COMMENT)
X-BeenThere: i2rs@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 17:13:42 -0000

Hi Martin,

> -----Original Message-----
> From: Martin Bjorklund [mailto:mbj@tail-f.com]
> Sent: Thursday, February 2, 2017 11:18 AM
> To: Xufeng Liu <Xufeng_Liu@jabil.com>
> Cc: alexander.clemm@huawei.com; akatlas@gmail.com; lberger@labn.net;
> draft-ietf-i2rs-yang-l3-topology@ietf.org; i2rs@ietf.org; iesg@ietf.org
> Subject: Re: [i2rs] Kathleen Moriarty's No Objection on draft-ietf-i2rs-yang-l3-
> topology-08: (with COMMENT)
> 
> Hi,
> 
> Xufeng Liu <Xufeng_Liu@jabil.com> wrote:
> > Hi Martin,
> >
> > I know that this is a previously discussed solution, but I still have
> > some issues with it:
> >
> > 1) In the case of the interfaces model, for each referenced
> > interface-state, the operator needs to configure an interface object
> > with the same interface name. However, in the case of the topology
> > model, if we need to reference an underlay link-state, we will need to
> > configure a topology (called network), a source node, a destination
> > node, a source termination-point, a destination termination-point,
> > which are five objects without including other consequent mandatory
> > objects.
> 
> You don't have to configure a "dummy" object if you are not using leafrefs to
> config.  And the number of nodes that you need for unique identification should
> be totally independent.

[Xufeng] We have to do them in this case, because a link connects two termination-points, with each of them are in a node, which can only exists within the context of a topology. Without defining these objects, I cannot configure a valid link.
 
> 
> > 2) This approach stretches the definition of "system generated"
> > non-configurable objects. The system generated objects mentioned in 1)
> > are designed to be not configurable. Configuring them may result
> > un-desirable consequences.
> 
> See above.
[Xufeng] We don't want to configure a node or link just because we need to reference it. Configuring a node means that the system will need to perform a series of tasks and may change the node to have different behaviors from previous "system generated" non-configurable node.

> 
> > 3) In general, this approach will not work if the referenced schema
> > leaf is marked as "config false". In such a case, we cannot configure
> > such a referenced leaf since it is not configurable.
> 
> I don't understand this comment.
[Xufeng] Assume the following model:

+--rw nodes
   +--rw node [id]
      +--rw id   string
      +--rw under-lay-attribute-a ???
+---ro nodes-state
   +--ro node [id]
      +--ro id   string
      +--ro attribute-a string

I cannot define the under-lay-attribute-a to reference attribute-a as:
               type leafref {
                 path "../node/attribute-a"'
               }

> 
> BTW, maybe further discussion about a new solution should be on the i2rs ML
> only?
> 
> 
> /martin
> 
> 
> >
> > Thanks,
> >
> > - Xufeng
> >
> > > -----Original Message-----
> > > From: Martin Bjorklund [mailto:mbj@tail-f.com]
> > > Sent: Thursday, February 2, 2017 2:33 AM
> > > To: alexander.clemm@huawei.com
> > > Cc: akatlas@gmail.com; lberger@labn.net; draft-ietf-i2rs-yang-l3-
> > > topology@ietf.org; i2rs@ietf.org; iesg@ietf.org
> > > Subject: Re: [i2rs] Kathleen Moriarty's No Objection on
> > > draft-ietf-i2rs-yang-l3-
> > > topology-08: (with COMMENT)
> > >
> > > Alexander Clemm <alexander.clemm@huawei.com> wrote:
> > > > We are working this separately and will articulate the different
> > > > options and their respective issues.
> > > >
> > > > The fundamental issue is still the fact that you may have
> > > > dependencies in overlay topologies on underlay topologies that are
> > > > discovered and represent “state”, and that in fact your underlay may be
> either.
> > > >
> > > > RFC 7223, as far as I can tell, sidesteps this issue.  It does
> > > > define a type “interface-ref” with a path to reference a
> > > > configured interface, and it does define a type
> > > > “interface-state-ref” to reference an operationally present
> > > > interface.  However, interface-state-ref is used only in read-only
> > > > objects, whereas (to put the analogy) it is needed for
> > > > configurable objects as well.  Likewise, there are two types;
> > > > really we need a union which would allow either (or a leafref with
> > > > alternate paths, which is not supported).  While there are some
> > > > analogies with a preprovisioning scenario, there are also differences.
> > >
> > > When people refer to the "pre-provisioning approach" in RFC 7223, it
> > > is not the "interface-ref" or "interface-state-ref" they refer to.
> > >
> > > The pre-provisioning mechanism in RFC 7223 says that when the device
> > > initializes a detected interface, it will check the configuration to
> > > see if there is config available for an interface with the same name
> > > as the newly detected one.
> > > If so, that config is used.
> > >
> > > I think the idea was to use something similar here.  E.g., allow a
> > > configured overlay to refer to a discovered underlay by name.  In
> > > YANG, this can be done with a node with the same type; or possibly
> > > with a leafref to the state data with "require-instance false".
> > >
> > > This design allows an overlay to be configured for an existing
> > > detected underlay.
> > > Let's say the device reboots and starts to rebuild its topologies.
> > > During some
> > > period of time, the configured overlay still exist in the config,
> > > but not in the state, since the underlay is not yet available.  Once
> > > it becomes instantiated in the state, the overlay is also
> > > instantiated in the state.  (This assumes that the
> > > system-
> > > generated topology names do not change).
> > >
> > >
> > > /martin
> > >
> > >
> > >
> > > >
> > > > Anyway, Xufeng, Kent, Pavan and I are having offline discussions
> > > > and will come back with further elaboration on this.
> > > >
> > > > --- Alex
> > > >
> > > > From: i2rs [mailto:i2rs-bounces@ietf.org] On Behalf Of Alia Atlas
> > > > Sent: Wednesday, February 01, 2017 1:14 PM
> > > > To: Lou Berger <lberger@labn.net>
> > > > Cc: draft-ietf-i2rs-yang-l3-topology@ietf.org; i2rs@ietf.org;
> > > > iesg@ietf.org
> > > > Subject: Re: [i2rs] Kathleen Moriarty's No Objection on
> > > > draft-ietf-i2rs-yang-l3-topology-08: (with COMMENT)
> > > >
> > > > On Wed, Feb 1, 2017 at 3:56 PM, Lou Berger
> > > > <lberger@labn.net<mailto:lberger@labn.net>> wrote:
> > > >
> > > >
> > > > On 2/1/2017 2:32 PM, Juergen Schoenwaelder wrote:
> > > > > On Wed, Feb 01, 2017 at 01:52:25PM -0500, Lou Berger wrote:
> > > > >> Juergen,
> > > > >>
> > > > >>     What precludes treating such dependencies in the same way
> > > > >> per-provisioning is handled by RFC7223?
> > > > >>
> > > > > This is fine. But having direct dependencies, e.g., leafrefs
> > > > > from config true leafs to config false leafs, is not.
> > > > >
> > > > > /js
> > > > >
> > > >
> > > > Okay, then we're on the same page -- I think some may have missed
> > > > the possibility of handling references to dynamic topology
> > > > information in config using a 'pre-provisioning' approach.
> > > >
> > > > I would be happy to see Alex, Xufeng, Kent & Pavan articulate what
> > > > this would look like and how it would work for the base topology
> > > > model, so that the WG can consider all potentially viable options.
> > > > I'm not certain how it would function for the recursive nature and
> > > > it does presume the separate /config and /oper-state trees in the
> > > > data-model that were a concern (though certainly the current
> > > > recommended approach for YANG models).
> > > >
> > > > Regards,
> > > > Alia