Re: [i2rs] modeling options for draft-ietf-i2rs-yang-network-topo

Kent Watsen <kwatsen@juniper.net> Wed, 15 February 2017 19:27 UTC

Return-Path: <kwatsen@juniper.net>
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 43E301299FE for <i2rs@ietfa.amsl.com>; Wed, 15 Feb 2017 11:27:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.789
X-Spam-Level:
X-Spam-Status: No, score=-3.789 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.887, 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=junipernetworks.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 E2TnFgiemCYy for <i2rs@ietfa.amsl.com>; Wed, 15 Feb 2017 11:27:39 -0800 (PST)
Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0114.outbound.protection.outlook.com [104.47.40.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E5F7D129A00 for <i2rs@ietf.org>; Wed, 15 Feb 2017 11:27:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=junipernetworks.onmicrosoft.com; s=selector1-juniper-net; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pbUEHpWOVL189CsimyGr/06pa864p/MmExIh8O/M1MY=; b=ZOBG+JYqGePCEjclAs5TCFs2MlDB1UqEAdMy4M+2P0qvVnJwkw/h8o4Z5kLG9HaaJMXvsyBYsSlvvlntGAtsVAN4YjMUWvpRHYhQkY8+CVc8DxEDAS4LpH4aAgvxHOW1kXhbEnNXCoiIXjvNz+WH2Aw2eEKKPqNkmA52LG7BVbA=
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com (10.160.117.151) by BN3PR0501MB1443.namprd05.prod.outlook.com (10.160.117.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.10; Wed, 15 Feb 2017 19:27:32 +0000
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) by BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) with mapi id 15.01.0919.013; Wed, 15 Feb 2017 19:27:32 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Alexander Clemm <alexander.clemm@huawei.com>, Martin Bjorklund <mbj@tail-f.com>
Thread-Topic: [i2rs] modeling options for draft-ietf-i2rs-yang-network-topo
Thread-Index: AQHShm7DGX1TjHFotkqv+yitC/fU9qFoWKoA///awYCAAIH9AIAAm0MAgABo64CAAKsLAIAABLsAgAAJFAD//6/6gA==
Date: Wed, 15 Feb 2017 19:27:32 +0000
Message-ID: <36186505-9F9E-49EA-B033-D4AFDFD66661@juniper.net>
References: <644DA50AFA8C314EA9BDDAC83BD38A2E0DF80205@SJCEML703-CHM.china.huawei.com> <20170215.091219.721914825568257957.mbj@tail-f.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0DF80493@SJCEML703-CHM.china.huawei.com> <20170215.194126.118198588680956999.mbj@tail-f.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0DF804DE@SJCEML703-CHM.china.huawei.com>
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0DF804DE@SJCEML703-CHM.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.1e.0.170107
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [66.129.241.14]
x-ms-office365-filtering-correlation-id: 07f11400-8fb1-4e4f-0de5-08d455d8b024
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:BN3PR0501MB1443;
x-microsoft-exchange-diagnostics: 1; BN3PR0501MB1443; 7:xj0Rdn8FW4Bhj1AJfC9COd6RlCMY46/ZvFDqM4hp5yT8EuUsDtQ7tnERdC1q0q+RznFVvJYk+nQOyv8JqLRFPagVOfwDOKvpKmXA74LNfVmhRVXx9Lh1zYPtCQdzw69CqWFvCQNWjMdSh8uQ2qrnV50Ehd3dIFAV9vGvvnVieb+ckExM/OQDRsZWXVlKDZuNYqjkrMInmGic585w2w7PZyPUNEit8QR4JNTm1jAmElPkAYYCeoXZdchuZAOdX/T0Qdxa42QdLzW/VDLG8AydjT1MD6UIaO9DDsZkM+a6LQG4xwmJeFj35lmYNHV1/6MTmrfbGd2DJjukEjnrv4XzzA==
x-microsoft-antispam-prvs: <BN3PR0501MB1443D139341B4E658E91E54AA55B0@BN3PR0501MB1443.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(20161123558025)(6072148); SRVR:BN3PR0501MB1443; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0501MB1443;
x-forefront-prvs: 021975AE46
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39860400002)(39450400003)(39840400002)(39850400002)(39410400002)(189002)(199003)(81156014)(8676002)(38730400002)(68736007)(101416001)(92566002)(105586002)(106356001)(106116001)(2900100001)(36756003)(6246003)(86362001)(53936002)(54356999)(76176999)(93886004)(230783001)(102836003)(50986999)(3846002)(81166006)(6116002)(389900002)(7736002)(305945005)(5660300001)(77096006)(2950100002)(82746002)(229853002)(122556002)(4001350100001)(6486002)(83506001)(4326007)(83716003)(2906002)(6512007)(97736004)(189998001)(33656002)(25786008)(6506006)(66066001)(99286003)(3660700001)(3280700002)(8936002)(6436002)(104396002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0501MB1443; H:BN3PR0501MB1442.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <3F56BD87D0AA014A8A364B66A601E28D@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2017 19:27:32.1791 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0501MB1443
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/AsBTqy_KACuGHPNGLtqXogtyb4I>
Cc: "i2rs@ietf.org" <i2rs@ietf.org>
Subject: Re: [i2rs] modeling options for draft-ietf-i2rs-yang-network-topo
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: Wed, 15 Feb 2017 19:27:40 -0000

> So, the suggested solution would be to not have validation
> of information, but simply have misconfigured stuff that
> violates integrity constraints never show up in the state tree.  

A leafref with require-instance false, even if pointing to a path
in the configuration, effectively disables validation.  Still, I
think a leafref is better than just a description statement.

> Perhaps this is the best that YANG can support today, although
> I still find this not very satisfying.  At a minimum, it would
> be good if the framework would support an indication whether
> the configured topology information went into effect or not.

The revised-datastore solution is intended to provide a way to
show this.  See draft-ietf-netmod-opstate-reqs.

> The implication is that a client will need to achieve this now
> by retrieving the corresponding state tree after each
> configuration operation (and if the configuration would not
> show correspondingly in the state tree, troubleshoot to see
> what's wrong).   So, if this is taken as design pattern, it
> would be good to introduce operations to support that.

See draft-ietf-netmod-opstate-reqs.

> Likewise, it would be good to have a "diffing" operation 
> in which state tree and configuration tree are checked for
> differences and discrepancies are reported (e.g. config not
> in state, and possibly vice versa).

See opstate-reqs, requirement 2-C.

> These should probably
> be added as requirements for I2Rs and the next revision of 
> the overall YANG+associated protocols framework.    

Sure, but I don't think this is needed, as we already have the
opstate-reqs draft.


Kent