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

Kent Watsen <kwatsen@juniper.net> Thu, 16 February 2017 23:35 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 E6DE6126B6D for <i2rs@ietfa.amsl.com>; Thu, 16 Feb 2017 15:35:23 -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_H3=-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=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 4EvlXesqmQYQ for <i2rs@ietfa.amsl.com>; Thu, 16 Feb 2017 15:35:22 -0800 (PST)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0114.outbound.protection.outlook.com [104.47.37.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 0F268129421 for <i2rs@ietf.org>; Thu, 16 Feb 2017 15:35:21 -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=3tHheLN/7yPt5/Ewct2uPw/FuDRPBg10I/sPXBG+j28=; b=kPw6MBQFvUOsSrCi6us/suT4UO6gWAaughb8Kmx+dPFg2PTAfjB3JA7RRN6EJ/bi1e4CCFjwi2hWWTLrOmCI2/kY7XHWXZx8aSEbULf+p/0OPl1cjM3lsz20QzmSvJAiZOO0rm2LE5EawOfgcwDJnDbkv8ECPTu1EjZHHJPlez4=
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com (10.160.117.151) by BN3PR0501MB1444.namprd05.prod.outlook.com (10.160.117.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.10; Thu, 16 Feb 2017 23:35:19 +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; Thu, 16 Feb 2017 23:35:20 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Martin Bjorklund <mbj@tail-f.com>, "xufeng.liu.ietf@gmail.com" <xufeng.liu.ietf@gmail.com>
Thread-Topic: [i2rs] modeling options for draft-ietf-i2rs-yang-network-topo
Thread-Index: AQHShm7DGX1TjHFotkqv+yitC/fU9qFoWKoA///awYCAAIH9AIADEzSAgABfVYD//9IJAA==
Date: Thu, 16 Feb 2017 23:35:19 +0000
Message-ID: <9B5F937A-346D-429A-9E9C-1D453BED83B3@juniper.net>
References: <447B5293-75CE-4CE2-ADA4-D9E55EC7EA35@juniper.net> <20170214.174106.332845199336010868.mbj@tail-f.com> <007601d2886a$bf085170$3d18f450$@gmail.com> <20170216.221949.1797970554181706414.mbj@tail-f.com>
In-Reply-To: <20170216.221949.1797970554181706414.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.1f.0.170216
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: 9d99c6df-a860-40d4-1dd6-08d456c47883
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:BN3PR0501MB1444;
x-microsoft-exchange-diagnostics: 1; BN3PR0501MB1444; 7:C7ikB2J35Je/t0IJszrEtANHOdyEmn0u6D+UJYVoMHRhzUlOYQe4b3SnHKyDtoNqOU3d/cVIIFt8NO/gqccmIQTWDH1h3jQNfMprjStQR2X19xS5aHQ8tJCUpnOvW7ojD6wn+UNO8hblqOi4AC7b+kSMVthQ69kPu0YfOC0iP4CrTzmw0ibPYSoDGVM4p86CjyPiMJnuzjCyS5g4vybAtm74G7vTaN9GO+L2t1o5Y0QE9yZIPhpbcrWy8nhMgQNVipvw3C/r5JSJbgZl0hhAugecs83N97bJnchVmi3CoUJlkRIxd9PYSncNIv2wNeUYL3Ne1YQNrZpSaUi3B66DHg==
x-microsoft-antispam-prvs: <BN3PR0501MB14444E477760447D5C86FECAA55A0@BN3PR0501MB1444.namprd05.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123558025)(20161123564025)(6072148); SRVR:BN3PR0501MB1444; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0501MB1444;
x-forefront-prvs: 0220D4B98D
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39840400002)(39850400002)(39410400002)(39450400003)(39860400002)(199003)(189002)(5660300001)(81156014)(2950100002)(81166006)(66066001)(33656002)(93886004)(7736002)(3660700001)(6512007)(2900100001)(122556002)(389900003)(83506001)(82746002)(305945005)(561944003)(53936002)(83716003)(25786008)(8936002)(8676002)(99286003)(92566002)(105586002)(6506006)(101416001)(97736004)(2906002)(106356001)(6486002)(6436002)(86362001)(77096006)(4001350100001)(36756003)(2501003)(54356999)(6246003)(230783001)(38730400002)(39060400002)(189998001)(76176999)(3280700002)(229853002)(3846002)(4326007)(68736007)(50986999)(6116002)(102836003)(106116001)(104396002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0501MB1444; H:BN3PR0501MB1442.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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: <C0B1CA3346704A49AB9FD04F758F8B6D@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Feb 2017 23:35:19.9938 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0501MB1444
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/PO7U7qgMKvwqBxKwp_knBSDx0UQ>
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: Thu, 16 Feb 2017 23:35:24 -0000


>>>> 2) It doesn't say anything about how the opstate data is stored on the
>>>>    server.  The opstate data is not modeled at all.  This approach
>>>>    only defines a presentation-layer format for how opstate data can
>>>>    be returned via an RPC.  The server is free to persist the opstate
>>>>    data anyway it wants, perhaps in an internal datastore called
>>>>    'operational-state' or in an uber-datastore with the opstate data
>>>>    flagged with a datastore='oper-state' attribute.  Regardless, it's
>>>>    an implementation detail, and the conceptual datastore model is
>>>>    preserved.
>>> 
>>> You are essentially defining a new operation, but do it by modifying the
>>> semantics of an existing one.  I don't think this is a good idea; it is
>>> better to define a new rpc.
>> 
>> [Xufeng] Is using a new rpc is acceptable? If so, this could be a viable
>> option.
>
>The draft-ietf-netmod-revised-datastores proposes a new rpc (maybe
><get-data>) to return data from the new operational-state datastore.
>This is IMO better than adding opstate nodes to the reply to a
><get-config> request.


Martin,

Going back your earlier "better to define a new rpc" comment, I fail to
see how this proposal is significantly different than RFC 6243.

If not this, then the new RPC would be something like <get-config-ex>
more than the planned <get-data>, as the goal is to return 'running'
+ "some opstate" (not just opstate).

Still, in looking the the pros/cons, Option 1 appears stronger - only
the authors don't like the idea of having to rewrite their models
later...

Kent