Re: [Lsr] I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-03.txt

Yingzhen Qu <yingzhen.qu@futurewei.com> Wed, 12 August 2020 21:36 UTC

Return-Path: <yingzhen.qu@futurewei.com>
X-Original-To: lsr@ietfa.amsl.com
Delivered-To: lsr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BA9B53A0BE6; Wed, 12 Aug 2020 14:36:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.09
X-Spam-Level:
X-Spam-Status: No, score=-2.09 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=futurewei.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 wA0IKbqFKiNC; Wed, 12 Aug 2020 14:36:35 -0700 (PDT)
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2132.outbound.protection.outlook.com [40.107.220.132]) (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 F0E6B3A0BE0; Wed, 12 Aug 2020 14:36:34 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nXSBBH4NtuHTsa1U7QtetveR/6cCGGxQSHxLd+EyGKgWVRijRdMgYKz2W5eZx2wDulE5xW571aZqFiZ3uxvG2gApAalvhyWgvfJWKTSLtGe4DYiv45VxgGA5k7jYSAnfOoaH22Ix2vVBVuiVDgugPiq9sDPmIb+z2c6mRcONUEohU98tqYP3qrW+qqZrfmN7phP7N5cCBwlQmaoyvs5wSUQFN19xYyksvIlyQ3CLXN1kAJ3BiULqfgcL1+PcCEQi63R+ftH/zev2ik5ya2wq4+8EpaXroiCDYH9cbhA+X/v3A1wSzU5qvryyXKBlUS/GYFhqjCftdBrS2n0+09j8nw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cJtC9txFkZBVIO2sYmpvKN9TRBuxDtZpbIrPcJGdilU=; b=SDTBsNi5h6HMfq1y4kqng7K7RBzNZ0Y5XwAsH2PEjAhGppk+skr8Dv+nuDOPlydquxWaYXMnV5RvKWF0YI9Oj1yEm+yWMhKr5x1iVP89iMBIDekcJjIV8fj7IqkMTZBROFHX20EHkBvQndeMkV1HskhRMsS6JBBx7idr7TcKtruFwgkq/s4NjiTuFELlWkLIbSgG/uaw9zQGTgaI6ZlalBC9bXnovyg3kMqv329RyTCLQMeR+0OmgpAhxnuMv4F3zQ3Fu+p4/y/ptWzL46YgMuY42kBvvwzJMBg0nUEQbN3YgoS6yRKZRbGvCHy7Q5jLM2wZe5/f2L9FLBS/RQpAdA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=futurewei.com; dmarc=pass action=none header.from=futurewei.com; dkim=pass header.d=futurewei.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Futurewei.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cJtC9txFkZBVIO2sYmpvKN9TRBuxDtZpbIrPcJGdilU=; b=AebnmBrtotr/ilqqrEOqgdPPgzlxRxyl5EZ5UZAqm3rKS6b5sH3vk6X7CmpQT1ENFW3nbjdzGUnM5A/oKB5EzfQV6S515OXhoIQFAxsaY/aKPUr+5o4bfU6c0Dqxo2DqcoAR6Eic7+bqvIGWjvAUCJrqMSl8eesmslVcmiCwGTQ=
Received: from BY5PR13MB3048.namprd13.prod.outlook.com (2603:10b6:a03:188::21) by BYAPR13MB2680.namprd13.prod.outlook.com (2603:10b6:a03:fd::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.11; Wed, 12 Aug 2020 21:36:32 +0000
Received: from BY5PR13MB3048.namprd13.prod.outlook.com ([fe80::94ab:7a6c:a7d2:3acf]) by BY5PR13MB3048.namprd13.prod.outlook.com ([fe80::94ab:7a6c:a7d2:3acf%4]) with mapi id 15.20.3283.014; Wed, 12 Aug 2020 21:36:32 +0000
From: Yingzhen Qu <yingzhen.qu@futurewei.com>
To: tom petch <ietfc@btconnect.com>, "lsr@ietf.org" <lsr@ietf.org>, "lsr-chairs@ietf.org" <lsr-chairs@ietf.org>
Thread-Topic: I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-03.txt
Thread-Index: AQHWcJ7+BuyL8qWrrk+mmSmY1/uMx6k0irKA
Date: Wed, 12 Aug 2020 21:36:32 +0000
Message-ID: <00C87331-B945-4F2C-95D0-FC85DE0D8E33@futurewei.com>
References: <B3509906-710E-4334-8BC1-D1B6C09C0500@futurewei.com> <AM7PR07MB62487E726ABCDEF8229158BAA0440@AM7PR07MB6248.eurprd07.prod.outlook.com> <AM7PR07MB624865BAD582D164505C0FC7A0420@AM7PR07MB6248.eurprd07.prod.outlook.com>
In-Reply-To: <AM7PR07MB624865BAD582D164505C0FC7A0420@AM7PR07MB6248.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1e.0.191013
authentication-results: btconnect.com; dkim=none (message not signed) header.d=none;btconnect.com; dmarc=none action=none header.from=futurewei.com;
x-originating-ip: [2601:646:9500:c900:7001:bae8:5f9e:f4d3]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: ae39619d-dec0-4021-b55d-08d83f07c7ef
x-ms-traffictypediagnostic: BYAPR13MB2680:
x-microsoft-antispam-prvs: <BYAPR13MB26802C7C8F7BB99513CD5049E1420@BYAPR13MB2680.namprd13.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: K66XDZQ+8WylE+cekr2ZrMtiOBesvUQS9OcEyLXBP8RXwTNuXxSmR9kQeGL4JVqiTWlmMBwAF4Wy1KiGGiZDbSBbOkG5XggIJUJEJPZrDbY0z5/5GNXpblWzN9RO+4T4fcX2AssNYPOAXu8dqdBEZEuUIoZ8HBudw60+WjZ7ICFsLWNf0IdzcpLoI2WSzwww7UckW8yDrp3SrTzmWIEI19TOYP+OzLYIEpdic4Kf3BtPMW2n1t32afBU5K2lnG8tD2panmdQCSgU7YEMAbBtUJHjG+ni/eef0jwuWVXBoKyo0fxLeuMvcPaqdvGO1T1Rv492m2G8Lo7j7mKFg4A6mnjWvq6QK7DXPETzDJ43CDWwQHjjvEqzeupu/dFFT1Pf9Lp+ZHpO9Lk1T1VwVJKU7g==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR13MB3048.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(396003)(346002)(39850400004)(376002)(71200400001)(66574015)(2906002)(83380400001)(76116006)(296002)(5660300002)(316002)(8936002)(45080400002)(110136005)(478600001)(36756003)(33656002)(44832011)(6506007)(66446008)(66946007)(8676002)(6486002)(2616005)(86362001)(6512007)(186003)(64756008)(966005)(66556008)(66476007); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: ge0t++zER021gHD3Pmd6NLdmRJbxRSa6okgx+YcJPC5d0HLQeEb7A8h5HPQY+Vul1uPV3ey0mK6U14F3D3ilLacGI0tmH1natVhAnjjaCS7y3RhUx1L+Xz6ZbhasPvVvqzkN9/I9+8XI9U47Ea65anTPpx4FY2dRC0Tvx8rSeZoQWEml4zkV2Ph8Nz+ejEUxVFbziW1UC2PLMWGxaT+6z3GRVzJfeXZStblx8+J6cVNbYs++6+JbAsb5JoZQhQ2fTrHblCT6a2RPre3JgMFvxfJ4yZr6t77kFCZCLVDhxCS8GIRbmhJBnYucWqMIt3Zz3tupTXroDUpYXEO61hUugJGhM1m/uSwNt7LfAhSHEW/n2otqcO5hcDCkXdgoJ0lAStonpAaBpZaKofNqhhrHutIpxwahQ3UCjlpy+odxD/myDDfoNxfOf8S2AWQ63gugJlj6QJJnxhZcjkeLe2o2QRplMlibBh1hYZqPQqYX//1nE2foEn2ITzeipf6ipsyklg27TEgyEIRCGhjss3/flpWgUrvd3imMudClWMGfXO7KKTTqoj3krhLo0ecqFhYpXSBy3soJuOFRRFTYyIfJrtkZqlGoq7dyQceV/G+fQwBnv5TYx7m01yK4F6KXd1wtDYXnPaB3pHzCsKpKuQ6uBO+1bKOiLjOilF5FAzXxwcB7Fx2H2u7/W/bq20RWsyD8Z9JEwx6kXClv5ccS72SblQ==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <1409A45AA84EED4BA347BF18FD3B0F2E@namprd13.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: Futurewei.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BY5PR13MB3048.namprd13.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: ae39619d-dec0-4021-b55d-08d83f07c7ef
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2020 21:36:32.2932 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 0fee8ff2-a3b2-4018-9c75-3a1d5591fedc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: IUhBGa8tQRj8KOeAosDwU7mIYvB5yJx0Kemw40g7NkUDoNaZVy1h83gptVE6WQFWlsZX312/wLUVydcYFw/qFA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR13MB2680
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/YwAtGvalNokrqv4rZ_NWsM_Am1s>
Subject: Re: [Lsr] I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-03.txt
X-BeenThere: lsr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Link State Routing Working Group <lsr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lsr>, <mailto:lsr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lsr/>
List-Post: <mailto:lsr@ietf.org>
List-Help: <mailto:lsr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lsr>, <mailto:lsr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Aug 2020 21:36:37 -0000

Hi Tom,

Thank you for the review. Please see my answers inline.

I'll publish a new version of the draft soon addressing these comments, also comments from your previous email.

Thanks,
Yingzhen

On 8/12/20, 4:52 AM, "tom petch" <ietfc@btconnect.com> wrote:

    
    
    Looking at some more technical aspects of this
    
        /* Configuration */
            "This augments the OSPFv3 protocol configuration
             with segment routing.";
    really?
 [YQ]: fixed. 
   
          leaf extended-lsa-support {
          leaf extended-lsa-support {
    why two? what does it mean if one is true and one false?  (why not more
    than two?:-)
    I wonder too where this boolean is best placed; there seems to me to be
    no obvious ospfv3 place for it so
    "/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/ospf:o
    spf"
    is probably as good as any.
    [YQ]: The first configuration is at ospf process level, and the second is at area level. Please refer to RFC 8362 section 6.2.


           when "/rt:routing/rt:control-plane-protocols"
              + "/rt:control-plane-protocol/rt:type = 'ospf:ospfv3'"  {
    is rt:type always set to ospfv3 as opposed to ospf? is there something
    in ospf-yang that ensures this?
[YQ]: I don't really understand your question here. In ietf-ospf.yang, type could be ospf, ospfv2 or ospfv3. This model is meant for OSPFv3 only.
    

         * Link State Database (LSDB) Augmentations
          when "derived-from-or-self(/rt:routing/rt:control-plane-protocols"
             + "/rt:control-plane-protocol/rt:type,"
             + "'ospfv3')"  {
    derived-from seems unnecessary for ospfv3, equality would do
[YQ]: yes, you're right.
    
        grouping ipv4-link-local-tlv {
          container ipv4-link-local-tlv {
            description "IPv6 Link-Local LSA TLV";
    IPv6 looks odd here
    [YQ]: thanks for catching this. (

        grouping ospfv3-e-lsa-area {
          description "Area scope OSPFv3 Extended LSAs.";
          container e-router {
            when  "derived-from(../../ospf:header/ospf:type,
    'ospfv3-e-router-lsa')" {
    I see nothing derived from 'ospfv3-e-router-lsa' so I cannot see when
    this is true
[YQ]: this is meant for when lsa-header type is 'ospfv3-e-router-lsa', base identity is ospf-lsa-type defined in ietf-ospf.yang. I'm changing this to equality. Same for the followings.
    
                leaf type {
                  type uint8;
    this is an enumeration in ospf-yang
[YQ]: this is operational data, so I don't see this causing real problems. And it's possible that future OSPFv3 extensions may add more link types. 
    
            when "derived-from(../../ospf:header/ospf:type,
    'ospfv3-e-network-lsa')"
    likewise I cannot see this being true
    
            when "derived-from(../../ospf:header/ospf:type,
    'ospfv3-e-inter-area-prefix-lsa')"
    and again
    
            when "derived-from(../../ospf:header/ospf:type,
    'ospfv3-e-inter-area-router-lsa')"
    and again
    
            when "derived-from-or-self(../../ospf:header/ospf:type,
    'ospfv3-e-intra-area-prefix-lsa')"
    I think you know this by now but this one would work but is not needed,
    simple equality test would do.
    
            when "derived-from-or-self(../../ospf:header/ospf:type,
    'ospfv3-e-as-external-lsa')"
    again equality is all that seems to be needed
    
            when "derived-from-or-self(../../ospf:header/ospf:type,
    'ospfv3-e-nssa-lsa')"
    and again
    
            when "derived-from-or-self(../../ospf:header/ospf:type,
    'ospfv3-e-link-lsa')
    and again
    
    Tom Petch
    
    ----- Original Message -----
    From: <internet-drafts@ietf.org>
    To: <i-d-announce@ietf.org>
    Cc: <lsr@ietf.org>
    Sent: Friday, August 07, 2020 7:03 PM
    Subject: I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-03.txt
    
    
    > A New Internet-Draft is available from the on-line Internet-Drafts
    directories.
    > This draft is a work item of the Link State Routing WG of the IETF.
    >
    >         Title           : YANG Model for OSPFv3 Extended LSAs
    >         Authors         : Acee Lindem
    >                           Sharmila Palani
    >                           Yingzhen Qu
    >         Filename        :
    draft-ietf-lsr-ospfv3-extended-lsa-yang-03.txt
    >         Pages           : 26
    >         Date            : 2020-08-07
    >
    > Abstract:
    >    This document defines a YANG data model augmenting the IETF OSPF
    YANG
    >    model to provide support for OSPFv3 Link State Advertisement (LSA)
    >    Extensibility as defined in RFC 8362.  OSPFv3 Extended LSAs provide
    >    extensible TLV-based LSAs for the base LSA types defined in RFC
    5340.
    >
    >
    > The IETF datatracker status page for this draft is:
    >
    https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fdraft-ietf-lsr-ospfv3-extended-lsa-yang&amp;data=02%7C01%7Cyingzhen.qu%40futurewei.com%7C03231597e277451b29eb08d83eb6205a%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637328299234619301&amp;sdata=2%2BVcGUT2yBcSJWcaBTWd2sEyNTqyDsKPjhAGeYJbDDo%3D&amp;reserved=0
    /
    >
    > There are also htmlized versions available at:
    > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Fdraft-ietf-lsr-ospfv3-extended-lsa-yang-03&amp;data=02%7C01%7Cyingzhen.qu%40futurewei.com%7C03231597e277451b29eb08d83eb6205a%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637328299234629297&amp;sdata=EREBl54b02PTU74BURgfU%2F1hFCRCcka%2FRGrWU%2BZGGGg%3D&amp;reserved=0
    >
    https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Fdraft-ietf-lsr-ospfv3-extended-lsa&amp;data=02%7C01%7Cyingzhen.qu%40futurewei.com%7C03231597e277451b29eb08d83eb6205a%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637328299234629297&amp;sdata=WyUkgbPBkoOuOu2bK%2F%2BQCjzyqXizGNMwlkZVxXPvUx8%3D&amp;reserved=0
    -yang-03
    >
    > A diff from the previous version is available at:
    >
    https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Frfcdiff%3Furl2%3Ddraft-ietf-lsr-ospfv3-extended-lsa-yan&amp;data=02%7C01%7Cyingzhen.qu%40futurewei.com%7C03231597e277451b29eb08d83eb6205a%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637328299234629297&amp;sdata=S8yER1C8a3T5fzm9z5AXGIX0tvlu2zAXn35ThpcKbvU%3D&amp;reserved=0
    g-03
    >
    >
    > 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:
    > https://nam11.safelinks.protection.outlook.com/?url=ftp%3A%2F%2Fftp.ietf.org%2Finternet-drafts%2F&amp;data=02%7C01%7Cyingzhen.qu%40futurewei.com%7C03231597e277451b29eb08d83eb6205a%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C0%7C637328299234629297&amp;sdata=zg4gKfMuMShFSUaqTDSeUtIXbAIL2vr6UGarQFKZGig%3D&amp;reserved=0
    >
    >
    >