Re: [netmod] I-D Action: draft-ietf-netmod-sub-intf-vlan-model-01.txt

Robert Wilton <rwilton@cisco.com> Thu, 15 June 2017 16:18 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B3C7F129486 for <netmod@ietfa.amsl.com>; Thu, 15 Jun 2017 09:18:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.502
X-Spam-Level:
X-Spam-Status: No, score=-14.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 cTx7rypyYY0e for <netmod@ietfa.amsl.com>; Thu, 15 Jun 2017 09:18:27 -0700 (PDT)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A47E81200CF for <netmod@ietf.org>; Thu, 15 Jun 2017 09:18:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4341; q=dns/txt; s=iport; t=1497543506; x=1498753106; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=w89w5WSapM7pw5apc+bSTOCbnLrkWJbgLaNQ5WeQop0=; b=hUEAHR4a/DeJzqKS+9cCxXTV01/B8mBj6U1Rv8EPynV8ZpIX6FpXLKrM 974/GrcgQZowu4PHBGxkxXHSYYe6vuGDhfjopgCm194dezLQpS6mVLaHs 58G71583TJ8y9xb9EpsE++7GoM0+zZo+iMu+rBDoQeHcuB9Z8uwEd39NZ M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CMAACQskJZ/xbLJq1dGQEBAQEBAQEBAQEBBwEBAQEBhDqBDY4Oc5EDlgeCESENhSxKAoMiGAECAQEBAQEBAWsohRgBAQEBAgEBATY2GwsYLicwBgEMBgIBAYogCBCtB4tBAQEBAQEBAQEBAQEBAQEBAQEBAR+GYoFgK4J3gyaHNwEElw6HO4cujCeCB1WEcYNLhnOMPIhDHziBCjAhCBsVHyqHED82hxUrghIBAQE
X-IronPort-AV: E=Sophos;i="5.39,343,1493683200"; d="scan'208";a="652602222"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jun 2017 16:18:24 +0000
Received: from [10.63.23.55] (dhcp-ensft1-uk-vla370-10-63-23-55.cisco.com [10.63.23.55]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id v5FGIOmK031770; Thu, 15 Jun 2017 16:18:24 GMT
To: Vladimir Vassilev <vladimir@transpacket.com>, netmod@ietf.org
References: <148943391240.20421.7015046968650807465@ietfa.amsl.com> <d8118ca7-92f7-ce53-50a0-fd1a15181e4b@transpacket.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <fa2f21bb-e23f-d0a2-1b95-64419e177419@cisco.com>
Date: Thu, 15 Jun 2017 17:18:22 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <d8118ca7-92f7-ce53-50a0-fd1a15181e4b@transpacket.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/VaJzAGwhFrtwbJK45sIwiC9yyvc>
Subject: Re: [netmod] I-D Action: draft-ietf-netmod-sub-intf-vlan-model-01.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jun 2017 16:18:30 -0000

Hi Vladimir,

Thanks for raising this.


On 15/06/2017 12:59, Vladimir Vassilev wrote:
> Hello,
>
> There is a problem with a mutually exclusive 'when' statements for the 
> /interfaces/inteface/encapsulation container in 
> ietf-interfaces-common@2017-03-13.yang 
> (draft-ietf-netmod-intf-ext-yang-04) and 
> ietf-if-l3-vlan@2017-03-13.yang  models causing error with our 
> validation tools.
>
> As defined in ietf-interfaces-common@2017-03-13.yang:
>
> ...
>
>     container encapsulation {
>       when
>         "derived-from-or-self(../if:type,
>                               'ianaift:ethernetCsmacd') or
>          derived-from-or-self(../if:type,
>                               'ianaift:ieee8023adLag') or
>          derived-from-or-self(../if:type, 'ianaift:pos') or
>          derived-from-or-self(../if:type,
>                               'ianaift:atmSubInterface') or
>          derived-from-or-self(../if:type, 'ethSubInterface')" {
>
> ...
>
> and here augmented in ietf-if-l3-vlan@2017-03-13.yang:
>
>   augment "/if:interfaces/if:interface/if-cmn:encapsulation/" +
>           "if-cmn:encaps-type" {
>     when "../if:type = 'ianaift:l2vlan' and
>           derived-from-or-self(../if-cmn:forwarding-mode,
>                                'if-cmn:network-layer')" {
>
> Short term fix I use is to add "or derived-from-or-self(../if:type, 
> 'ianaift:l2vlan')" to the ietf-interfaces-common definition.
I suspect that probably the reverse fix is probably better.

I.e. add derived-from-or-self(../if:type, 'ethSubInterface' to the 
encapsulation when statement replacing the l2vlan, since ethSubInterface 
derived from l2vlan anyway.

Thanks,
Rob


>
>
> Vladimir
>
>
> On 03/13/2017 08:38 PM, internet-drafts@ietf.org wrote:
>> A New Internet-Draft is available from the on-line Internet-Drafts 
>> directories.
>> This draft is a work item of the NETCONF Data Modeling Language of 
>> the IETF.
>>
>>          Title           : Sub-interface VLAN YANG Data Models
>>          Authors         : Robert Wilton
>>                            David Ball
>>                            Tapraj Singh
>>                            Selvakumar Sivaraj
>>     Filename        : draft-ietf-netmod-sub-intf-vlan-model-01.txt
>>     Pages           : 27
>>     Date            : 2017-03-13
>>
>> Abstract:
>>     This document defines YANG modules to add support for classifying
>>     traffic received on interfaces as Ethernet/VLAN framed packets to
>>     sub-interfaces based on the fields available in the Ethernet/VLAN
>>     frame headers.  These modules allow configuration of Layer 3 and
>>     Layer 2 sub-interfaces (e.g. attachment circuits) that can
>>     interoperate with IETF based forwarding protocols; such as IP and
>>     L3VPN services; or L2VPN services like VPWS, VPLS, and EVPN.  The
>>     sub-interfaces also interoperate with VLAN tagged traffic orginating
>>     from an IEEE 802.1Q compliant bridge.  Primarily the classification
>>     is based on VLAN identifiers in the 802.1Q VLAN tags, but the model
>>     also has support for matching on some other layer 2 frame header
>>     fields and is designed to be extensible to match on other arbitrary
>>     header fields.
>>
>>     The model differs from an IEEE 802.1Q bridge model in that the
>>     configuration is interface/sub-interface based as opposed to being
>>     based on membership of an 802.1Q VLAN bridge.
>>
>>
>> The IETF datatracker status page for this draft is:
>> https://datatracker.ietf.org/doc/draft-ietf-netmod-sub-intf-vlan-model/
>>
>> There's also a htmlized version available at:
>> https://tools.ietf.org/html/draft-ietf-netmod-sub-intf-vlan-model-01
>>
>> A diff from the previous version is available at:
>> https://www.ietf.org/rfcdiff?url2=draft-ietf-netmod-sub-intf-vlan-model-01 
>>
>>
>>
>> Please note that it may take a couple of minutes from the time of 
>> submission
>> until the htmlized version and diff are available at tools.ietf.org.
>>
>> Internet-Drafts are also available by anonymous FTP at:
>> ftp://ftp.ietf.org/internet-drafts/
>>
>> _______________________________________________
>> netmod mailing list
>> netmod@ietf.org
>> https://www.ietf.org/mailman/listinfo/netmod
>
> .
>