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

Xufeng Liu <Xufeng_Liu@jabil.com> Fri, 03 February 2017 16:16 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 E51F112966F; Fri, 3 Feb 2017 08:16:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.057
X-Spam-Level:
X-Spam-Status: No, score=-3.057 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_H2=-1.156, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 nAc7yj7swR8D; Fri, 3 Feb 2017 08:16:45 -0800 (PST)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0122.outbound.protection.outlook.com [104.47.42.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE9BC1295DC; Fri, 3 Feb 2017 08:16:44 -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=b3SMtLz9wR+9GD3VlbO4/7qO5azhwZKlQuau5qdr4Gk=; b=qCG88PBAIbgMGr6vCDKHHxulPjnjGc7Yf6ATFPpgvY0JrPuBuB2nONDy17un/vv9IB8LPQ3EX52cDvWeDF8+pMvO5xF+2NxqmE2PggCZZ53yEgqMju43zX83x9HRvzipwlvhcf1n1YqGJk1Zw/f+Vi71qzT/eySCecTUACKiOag=
Received: from BN3PR02MB1141.namprd02.prod.outlook.com (10.162.168.147) by BN3PR02MB1143.namprd02.prod.outlook.com (10.162.168.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Fri, 3 Feb 2017 16:16:43 +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.025; Fri, 3 Feb 2017 16:16:43 +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/y6tc6V0kTeEi7pAhS6Zp8AqFJRx6AgAAEUoCAAALgAIALPDeAgAALPQCAABeFgIAABLgAgAAODICAAJ8egIAAZlpAgAAsEQCAAAgoYIAAlJeAgADPNaCAABm7AIAAAqRggAAHWACAAAFgcA==
Date: Fri, 03 Feb 2017 16:16:43 +0000
Message-ID: <BN3PR02MB114192FEEF7116B20D314658F14F0@BN3PR02MB1141.namprd02.prod.outlook.com>
References: <BN3PR02MB1141BE8B907D10AAFAA6BDA7F14F0@BN3PR02MB1141.namprd02.prod.outlook.com> <20170203.163216.1400419881696462638.mbj@tail-f.com> <BN3PR02MB11416DD67AB92C6620CEF7E4F14F0@BN3PR02MB1141.namprd02.prod.outlook.com> <20170203.170800.1259525494650193374.mbj@tail-f.com>
In-Reply-To: <20170203.170800.1259525494650193374.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: c7913fac-e7ba-4bf1-1a9d-08d44c500b22
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:BN3PR02MB1143;
x-microsoft-exchange-diagnostics: 1; BN3PR02MB1143; 7:fyLspdynyDdiprtrJCucIE8OTfSu3UiknNQugdgBI/wSArygEuRxE5ZILbwM5nE52HKEMx7aA/EOLqLDAZbIdr+hUYeB0orJCxF8b8Jmth7Kkb3XePswUuhbjt6hf/rwH/i0qU6J3xW4B3owudG8Ak51Q0TFSDQK1YChu7/oisGP/QVcwgenj3e2bYoiAJ1LjSF6pFbOP6AQHuLN8mC2MlEuK54l5tfDdzb84jwSBIsCdl0B1k3iuYhEwmKHcWNxqbjF89KcZFRcTA5hjlHYhZhVTCmkcIZZ8v/dFM2FeUfV5+TYR7C7+Ssy552EHVq18iTV45JYRzf9PUdr6GCWBX1hL8FpS/TEc8GSINsD5OJ6HNtGW7yB8d8f0h7Hedxg2J5HsroSyfD0+OCeGsU3v2RA/rPYE+hVd9ivqvgNLv+z2iFy45CXmw0yVul9Ao9IpZcR3qWJEo/0yXnea6dhZofLGJ6ghI2p3goEY7nCb2YYMgthiq0Znf3x8g+wfQy7xNEbLt02jKlEL3n0srCArw==
x-microsoft-antispam-prvs: <BN3PR02MB11437F276134D81461DA641FF14F0@BN3PR02MB1143.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(138986009662008)(21534305686606);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123558025)(20161123562025)(20161123564025)(6072148); SRVR:BN3PR02MB1143; BCL:0; PCL:0; RULEID:; SRVR:BN3PR02MB1143;
x-forefront-prvs: 02070414A1
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39850400002)(39860400002)(39410400002)(39840400002)(39450400003)(51444003)(13464003)(377454003)(199003)(24454002)(189002)(66066001)(6116002)(3846002)(102836003)(2900100001)(4326007)(305945005)(6506006)(8936002)(7736002)(53936002)(92566002)(8666007)(8676002)(77096006)(9686003)(6436002)(86362001)(229853002)(25786008)(81156014)(99286003)(55016002)(81166006)(54906002)(74316002)(68736007)(3660700001)(76176999)(2906002)(33656002)(106116001)(2950100002)(6916009)(110136003)(54356999)(50986999)(7696004)(3280700002)(38730400001)(101416001)(5660300001)(122556002)(106356001)(105586002)(93886004)(97736004)(189998001)(230783001)(6246003)(80792005); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR02MB1143; H:BN3PR02MB1141.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: jabil.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2017 16:16:43.2470 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bc876b21-f134-4c12-a265-8ed26b7f0f3b
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR02MB1143
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/gkTUw60vE5W8jHMmR8cGeGM1n1k>
Cc: "draft-ietf-i2rs-yang-l3-topology@ietf.org" <draft-ietf-i2rs-yang-l3-topology@ietf.org>, "i2rs@ietf.org" <i2rs@ietf.org>, "kwatsen@juniper.net" <kwatsen@juniper.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: Fri, 03 Feb 2017 16:16:55 -0000


> -----Original Message-----
> From: Martin Bjorklund [mailto:mbj@tail-f.com]
> Sent: Friday, February 3, 2017 11:08 AM
> To: Xufeng Liu <Xufeng_Liu@jabil.com>
> Cc: kwatsen@juniper.net; draft-ietf-i2rs-yang-l3-topology@ietf.org;
> i2rs@ietf.org
> Subject: Re: [i2rs] Kathleen Moriarty's No Objection on draft-ietf-i2rs-yang-l3-
> topology-08: (with COMMENT)
> 
> Xufeng Liu <Xufeng_Liu@jabil.com> wrote:
> > Hi,
> >
> > > -----Original Message-----
> > > From: Martin Bjorklund [mailto:mbj@tail-f.com]
> > > Sent: Friday, February 3, 2017 10:32 AM
> > > To: Xufeng Liu <Xufeng_Liu@jabil.com>
> > > Cc: kwatsen@juniper.net; draft-ietf-i2rs-yang-l3-topology@ietf.org;
> > > i2rs@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 Kent,
> > > >
> > > > > -----Original Message-----
> > > > > From: Kent Watsen [mailto:kwatsen@juniper.net]
> > > > > Sent: Thursday, February 2, 2017 8:39 PM
> > > > > To: Xufeng Liu <Xufeng_Liu@jabil.com>
> > > > > Cc: i2rs@ietf.org; draft-ietf-i2rs-yang-l3-topology@ietf.org
> > > > > Subject: Re: [i2rs] Kathleen Moriarty's No Objection on
> > > > > draft-ietf-i2rs-yang-l3-
> > > > > topology-08: (with COMMENT)
> > > > >
> > > > > [reducing distribution]
> > > > >
> > > > >
> > > > > Hi 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"'
> > > > > >               }
> > > > >
> > > > >
> > > > > True, but maybe it could be:
> > > > >
> > > > >    type leafref {
> > > > >       path "../node/attribute-a"
> > > > >       require-instance false;
> > > > >       description
> > > > >         "In the case when the referenced instance is not a configured
> > > > >          object, the system may resolve it by looking for it under the
> > > > >          /nodes-state node.  As the referenced operational state data
> > > > >          may have a lifecycle independent of configuration, this results
> > > > >          in an effect much like pre-provisioning interfaces in RFC
> > > > >          7223.";
> > > > >    }
> > > > [Xufeng] I think that "require-instance false" does not help here.
> > > > The validation for path "../node/attribute-a" still fails because
> > > > "attribute-a" does not exist under /nodes/node/.
> > >
> > > No, "require-instance false" essentially turns off validation.
> > > Section
> > > 9.9.3 in RFC 7950 says:
> > >
> > >    If "require-instance" is "false", it means that the instance being
> > >    referred to MAY exist in valid data.
> > >
> > [Xufeng] My understanding is that this section talks about instance
> > "data" validation, but I was talking about schema validation. The path
> > statement is pointing to a non-existing schema node.
> 
> Aha, ok.  Yes, the path needs to refer to a valid schema node.  So the path would
> be /nodes-state/node/attribute-a.
> 
[Xufeng] Right. If we do so, the approach will be different from RFC7223, and requires the capability that a "config true" leafref references a "config false" leaf.

> > At least, pyang,
> > yangdump, and yangvalidator all fail on this currently.
> 
> 
> /martin