Re: [Netconf] Issue SN #5: How to represent Source VRF of configured subscription?

Alexander Clemm <alexander.clemm@huawei.com> Mon, 20 November 2017 19:27 UTC

Return-Path: <alexander.clemm@huawei.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 75E1512EA57 for <netconf@ietfa.amsl.com>; Mon, 20 Nov 2017 11:27:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.209
X-Spam-Level:
X-Spam-Status: No, score=-4.209 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 ATgDqWy2QmiT for <netconf@ietfa.amsl.com>; Mon, 20 Nov 2017 11:27:00 -0800 (PST)
Received: from huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 89A1312EA58 for <netconf@ietf.org>; Mon, 20 Nov 2017 11:26:59 -0800 (PST)
Received: from lhreml704-cah.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 8D72145A6F3EA for <netconf@ietf.org>; Mon, 20 Nov 2017 19:26:55 +0000 (GMT)
Received: from SJCEML703-CHM.china.huawei.com (10.208.112.39) by lhreml704-cah.china.huawei.com (10.201.108.45) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 20 Nov 2017 19:26:57 +0000
Received: from SJCEML521-MBX.china.huawei.com ([169.254.1.83]) by SJCEML703-CHM.china.huawei.com ([169.254.5.4]) with mapi id 14.03.0361.001; Mon, 20 Nov 2017 11:26:51 -0800
From: Alexander Clemm <alexander.clemm@huawei.com>
To: Robert Wilton <rwilton@cisco.com>, "Eric Voit (evoit)" <evoit@cisco.com>, "netconf@ietf.org" <netconf@ietf.org>, Lou Berger <lberger@labn.net>
Thread-Topic: [Netconf] Issue SN #5: How to represent Source VRF of configured subscription?
Thread-Index: AdNdqNgU4QJmn1g8RCO8EZWBkLDxQwARwawAAAUK44AAg9S/gAAA/l0AAIdhYyA=
Date: Mon, 20 Nov 2017 19:26:51 +0000
Message-ID: <644DA50AFA8C314EA9BDDAC83BD38A2E0EACD8F5@sjceml521-mbx.china.huawei.com>
References: <f11c1a157bec4b0588a955a6385b96bf@XCH-RTP-013.cisco.com> <eb3ddb7b-ff49-b1c6-c91c-14bae2a7895f@cisco.com> <c474b5778c704baab9070b298b5b2a3d@XCH-RTP-013.cisco.com> <383a834a60eb489a9e4fbb9bdf5a5c43@XCH-RTP-013.cisco.com> <31442888-3dba-7834-c408-bd7986b9e381@cisco.com>
In-Reply-To: <31442888-3dba-7834-c408-bd7986b9e381@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.213.48.57]
Content-Type: multipart/alternative; boundary="_000_644DA50AFA8C314EA9BDDAC83BD38A2E0EACD8F5sjceml521mbxchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Gs7RHhwz0EnU_8od9n4feT0GYzg>
Subject: Re: [Netconf] Issue SN #5: How to represent Source VRF of configured subscription?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Nov 2017 19:27:02 -0000

I am fine with that change, but wanted to bring up one additional option that was also briefly mentioned in the room which strikes me as perhaps a bit more elegant.  That is the option to use augmentation.  In that case, source-vrf and the import statement would simply be omitted. Instead, a new module would be created (e.g. ietf-vrf-for-subscribed-notifications), which contains the import statement and two augments statements to augment the source-vrf into the existing module.

--- Alex

From: Netconf [mailto:netconf-bounces@ietf.org] On Behalf Of Robert Wilton
Sent: Friday, November 17, 2017 10:46 AM
To: Eric Voit (evoit) <evoit@cisco.com>; netconf@ietf.org; Lou Berger <lberger@labn.net>
Subject: Re: [Netconf] Issue SN #5: How to represent Source VRF of configured subscription?


On 17/11/2017 18:17, Eric Voit (evoit) wrote:
I would like to continue the discussion on this topic from our session.   I think we came to agreement among the attendees.   Hopefully this thread can confirm, or refine as need.

First let’s look at Robert’s proposal below:
There are lots of good elements in Robert’s proposal below, but it isn’t up to our WG to determine the proper structure of the network-instance-model.   Authors of that model were in the room, and are aware that YANG model developers from outside would welcome a partitioning which decouples any linkages to schema-mount when all that is needed is to identify a VRF by name.

Looking at what we can control, discussed in the room was the following change to subscribed-notifications:

1.       import “ietf-network-instance”

2.       create if-feature “VRF”.

3.       apply feature “VRF” to object “source-VRF”

4.       Leafref to “source-VRF” to validate against the network-instance model’s /network-instances/network-instance/name.

This is the current proposal.  Are there are concerns/objections/refinements?

No concerns, but perhaps one trivial refinement.

I had mistakenly thought that a device would either support VRFs for all protocols or none, hence my suggestion to have a single "VRF" feature, which would naturally be defined by the network-instances model.

In the discussions that I had with Lou, some of them at the mic, some afterwards, Lou clarified that it quite plausible that VRFs may only be supported by some protocols on a device and not all, and hence the solution of having a "VRF" feature per protocol seems like the right solution.

I think that I would call the feature "supports-vrf" rather than "vrf".

Thanks,
Rob




Eric



From: Netconf [mailto:netconf-bounces@ietf.org] On Behalf Of Eric Voit (evoit)
Sent: Tuesday, November 14, 2017 10:23 PM
To: Robert Wilton -X (rwilton - ENSOFT LIMITED at Cisco) <rwilton@cisco.com><mailto:rwilton@cisco.com>; netconf@ietf.org<mailto:netconf@ietf.org>; Lou Berger <lberger@labn.net><mailto:lberger@labn.net>
Subject: Re: [Netconf] Issue SN #5: How to represent Source VRF of configured subscription?

Agree it is a generic problem.

I would defer to Lou and the other authors of draft-ietf-rtgwg-ni-model as this would be a fairly significant change.

Eric

From: Robert Wilton, November 14, 2017 7:58 PM

Hi Eric, Lou,

This seems to be a generic problem.

Could the VRF leafref name dependency issue be solved with an if-feature statement?.

I.e.could the network instance draft define a separate YANG module (with no dependencies) that defines a "VRF" feature.

All the VRF references (ideally if all IETF YANG modules that may optionally depend on VRFs) could be leaf-refs to /network-instances/network-instance/name but predicated with an if-feature "ni:vrf".

Hence if a device doesn't support VRFs, then it doesn't implement the "vrf" feature, so it doesn't have to implement the full network instances module, or schema mount.

Thanks,
Rob

On 15/11/2017 08:45, Eric Voit (evoit) wrote:

In the WG session tomorrow, I am hoping to get “hum feedback” on:



draft-ietf-netconf-subscribed-notifications

https://github.com/netconf-wg/rfc5277bis/issues/5



The two choices exposed during the two week review for how to represent Source VRF of configured subscription were:



(1) Leafref to “ietf-network-instance”  /network-instances/network-instance/name

·         Creates dependency on schema mount for subscriptions.

·         Source VRF is an optional capability, but publishers that don’t care about VRFs must still import.  (Note: could also augment the leafref in another model, but that adds another layer of complexity)

·         establishes model dependency to draft-ietf-rtgwg-ni-model



(2) Use a string which would be populated with exact same name as would be in the leafref of (1)

·         Possible to name VRF which doesn’t exist



The current draft does (2).



Thanks,

Eric






_______________________________________________

Netconf mailing list

Netconf@ietf.org<mailto:Netconf@ietf.org>

https://www.ietf.org/mailman/listinfo/netconf

.