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 15:51 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 A14C1129C3A; Fri, 3 Feb 2017 07:51:02 -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 ihf7ZWYvpxZx; Fri, 3 Feb 2017 07:50:59 -0800 (PST)
Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0130.outbound.protection.outlook.com [104.47.33.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9BA63129C73; Fri, 3 Feb 2017 07:50:59 -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=NWj7u4hvoLIVizrhBIDx6XX3LpmSOX6h4EJvVhMvTg4=; b=lyLEkqPNzckYgYZg13i+O8rX2tq1xNJNnW23J7EUIVCuae6vMb/fOEnklM/C+bKoDmj8pFBakeR19VamKT11aqsHQpXd7Uf33hsKKJZXAcTdGgr7gJ8qO18D99mZdJ81UbMphhtaQT8bSt7a1umenmvhee41orW4a1W/odwzfzE=
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; Fri, 3 Feb 2017 15:50:57 +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 15:50:57 +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/y6tc6V0kTeEi7pAhS6Zp8AqFJRx6AgAAEUoCAAALgAIALPDeAgAALPQCAABeFgIAABLgAgAAODICAAJ8egIAAZlpAgAAsEQCAAAgoYIAAlJeAgADPNaCAABm7AIAAAqRg
Date: Fri, 03 Feb 2017 15:50:57 +0000
Message-ID: <BN3PR02MB11416DD67AB92C6620CEF7E4F14F0@BN3PR02MB1141.namprd02.prod.outlook.com>
References: <BN3PR02MB11415971D591FE5181D53409F14C0@BN3PR02MB1141.namprd02.prod.outlook.com> <0D6214AD-503C-4570-BB5E-F0042ABC6641@juniper.net> <BN3PR02MB1141BE8B907D10AAFAA6BDA7F14F0@BN3PR02MB1141.namprd02.prod.outlook.com> <20170203.163216.1400419881696462638.mbj@tail-f.com>
In-Reply-To: <20170203.163216.1400419881696462638.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: 3e776300-14a4-4d68-ac5b-08d44c4c71b1
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:whVKmblj3uHqWSrG/lgQdBBb43ZkkBHCU0UbdxhYPsfAxof9AtOWqvBR/a0/tKOpeeTbhqUhd3a4Fc8jneUv7MF0c4ygSWwjdUkW6xBFKkvcKWAMt51DpLjoe2ph5J7YWlRipfKznzo4hi4EanMxlO2oRpWIBj94Wcsl4kHR25BnGTr4rUn4Fv636ME3r025IHYfZUxQkXWxxSpWjPi0Cvz/kdIh8/Zof/KYof3ZeX0ps9Ta42P2J1O0j/fAk93RGt50fQx1NYsJmtjpyr/z5t4H9u3+IY4m9u1WlxSYXEp2CzDNinnhps94Cq+Oe8fUPYZPNKQoc3DMbbj7S7pkS7PNL84H2JcRllMBoNiuDJTrcG57h23hMKnkKWHAWueBEn7ZVJRdg23iZJtRaPFL6zEn88P/AHYHQkFV0LIANX57yYC53D7X/0cgWDRx77+AGUEiAJu0AvetRd1ptlu9uSHWFKqceTr0hwkuUlqm6hgG6U+NeOUWbdK/7CEWxI6lh1LgyPF/OZrZI3oxkLYR1w==
x-microsoft-antispam-prvs: <BN3PR02MB11411F3672A5A4D8623AAF06F14F0@BN3PR02MB1141.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)(20161123562025)(20161123558025)(20161123564025)(20161123555025)(20161123560025)(6072148); SRVR:BN3PR02MB1141; BCL:0; PCL:0; RULEID:; SRVR:BN3PR02MB1141;
x-forefront-prvs: 02070414A1
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39450400003)(39410400002)(39850400002)(39860400002)(39840400002)(199003)(189002)(51444003)(377454003)(13464003)(24454002)(25786008)(6436002)(305945005)(99286003)(55016002)(230783001)(54906002)(6506006)(8666007)(38730400001)(2900100001)(2950100002)(77096006)(33656002)(2906002)(93886004)(101416001)(74316002)(122556002)(53936002)(9686003)(189998001)(102836003)(3846002)(76176999)(54356999)(50986999)(229853002)(6116002)(6246003)(8936002)(110136003)(3660700001)(97736004)(81156014)(3280700002)(7736002)(80792005)(8676002)(81166006)(106116001)(4326007)(105586002)(106356001)(5660300001)(66066001)(6916009)(92566002)(86362001)(7696004)(68736007); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR02MB1141; 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 15:50:57.2325 (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/MkcuJuu988cTqANyD-uoEaT0Mhg>
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 15:51:02 -0000

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. At least, pyang, yangdump, and yangvalidator all fail on this currently.
> 
> /martin