Re: [Rift] RIFT YANG datamodel implementation

"Jeffrey (Zhaohui) Zhang" <zzhang@juniper.net> Fri, 12 March 2021 19:30 UTC

Return-Path: <zzhang@juniper.net>
X-Original-To: rift@ietfa.amsl.com
Delivered-To: rift@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C9CC23A0813 for <rift@ietfa.amsl.com>; Fri, 12 Mar 2021 11:30:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.245
X-Spam-Level:
X-Spam-Status: No, score=-2.245 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.248, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=juniper.net header.b=pGcgeiwP; dkim=pass (1024-bit key) header.d=juniper.net header.b=bp19Sxh5
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 AfaqGk9sRGpj for <rift@ietfa.amsl.com>; Fri, 12 Mar 2021 11:30:29 -0800 (PST)
Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (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 9A2B63A07A4 for <rift@ietf.org>; Fri, 12 Mar 2021 11:30:29 -0800 (PST)
Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12CJU4df019631; Fri, 12 Mar 2021 11:30:28 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=PPS1017; bh=LSX0MpJgz7hrC6LuIMDImKC0xfccg08lR26mlsuACFU=; b=pGcgeiwPxlcp6i3ahPF7CVL5w0Kfw5l5tR9it+0XptQZo3FZCnAwbFTuKZ6yiswKZ2p+ Yk7pevQpwBeQTDBszzfU6OR4kPcMfYE9ewJ7NkAZi4wieDLcgXeS9vGl7bVgkZeliilN M54nfRxqbue6vgDtFHH2VLSVJuT3kXWYo2WCxQIDaTAWLRiwXfRHatP2H7X2Ip8wuHMO IuqUUxyWhKkMOlEbcpiHhRBCQxyF0WknDYBno5ZzhbyJDQZlKZqKwYigM1yxkcSsZ1Cv wsjJE2nooo5Gju7IBDSyVMX8DcTMYoId6Fdnb68BEqmi3yPzPudMUtB8+BGsRRyjH/H9 7w==
Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2177.outbound.protection.outlook.com [104.47.57.177]) by mx0a-00273201.pphosted.com with ESMTP id 376g2h6wc4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Mar 2021 11:30:28 -0800
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GACqCx1Lf8IoaRFHmgfFzfGMl10v+obPmxwZ6bED3dCPN3235nL75Rny8E2WR+YR+8uLtesdeeC8YWRbt/wOtruLU0up/jJtSQSCN8e3JeooCSYsEZTtNvQ4r69e7wBQIKjo3U3nYjb1679uibaSjbihk3xw01wZc/SoJhGIcwz2xRU4JnuyM2MCbF1dy6nXNMcJTNeJb52Nk1VKpanc+EoK+oQCRhuG2/e4dZcJBpIKnsqw9oB5KLLLm/dH0VDbD/f7ePhwFgNIK/sPkpCADypFnWlFvOOsGy/tJbQU1q4FXh9XomvgF0cOUODt4YGDprgp7jrhqcVyWm5Q1Kb6lQ==
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=LSX0MpJgz7hrC6LuIMDImKC0xfccg08lR26mlsuACFU=; b=YqaQ3P7hQQucrI3uJ5khHPAi5XiGUCT0TY5mj00GyGN8QGOPdvIRd9qRo1JjhnLTtv/zhsvWoDo12CUPY68nfJRVbBANTk9VG/hHd58UkJAVbITOE7/sbqHV7eEgQ2uhhjykPQM6OK3qlbRDuDHZpzBFGmnu7lbAfhv5CZ6EjIaPsKcd/TD3pcTA6NjYMTRlIL9RfsgJr15s8fZohP8SnDc0bS6PBsKEGbKK2M+ZDGYuwzyhu11LG4tcSq5KdGRTBBaaqpBlrla112Gfn71YtUboV2N2Br6JCJMcSFrQbzKVwhrIK6q98ZHIuAHjEeEsOFmt4MOz0FewH5rhmMEH2g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LSX0MpJgz7hrC6LuIMDImKC0xfccg08lR26mlsuACFU=; b=bp19Sxh5W3Jz1LF8fUn6ml/AcluSH9fBMrQHJltXfn/HdgZubFOD+K8c2+ny22blQMykz+B9Gpah91r66DLdTcfvNesxyooaxb03kRozAmB93HvkROJ7MT6ESr4/PbLdPpbq+SVZ8Uq+XcR1CCC1K8a6DW6KwYGvse7jdXeizAY=
Received: from MN2PR05MB5981.namprd05.prod.outlook.com (2603:10b6:208:c3::15) by MN2PR05MB6623.namprd05.prod.outlook.com (2603:10b6:208:e3::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.10; Fri, 12 Mar 2021 19:30:26 +0000
Received: from MN2PR05MB5981.namprd05.prod.outlook.com ([fe80::203e:7f1f:be91:161c]) by MN2PR05MB5981.namprd05.prod.outlook.com ([fe80::203e:7f1f:be91:161c%6]) with mapi id 15.20.3955.012; Fri, 12 Mar 2021 19:30:25 +0000
From: "Jeffrey (Zhaohui) Zhang" <zzhang@juniper.net>
To: Tony Przygienda <tonysietf@gmail.com>, Bruno Rijsman <brunorijsman@gmail.com>
CC: "rift@ietf.org" <rift@ietf.org>
Thread-Topic: [Rift] RIFT YANG datamodel implementation
Thread-Index: AQHXFOvxhgrxgWVWZ0iKHYLo7i+YE6p9FzyAgAOqJ/A=
Date: Fri, 12 Mar 2021 19:30:25 +0000
Message-ID: <MN2PR05MB59815F65BE0982628ADB0E9ED46F9@MN2PR05MB5981.namprd05.prod.outlook.com>
References: <AF13C9C6-8493-45F7-823E-D4C0B57435C9@gmail.com> <CA+wi2hNvMcAkpz1yp__sKEQ8nW2_+eBbfENNfaXqWYN4h7kKjA@mail.gmail.com>
In-Reply-To: <CA+wi2hNvMcAkpz1yp__sKEQ8nW2_+eBbfENNfaXqWYN4h7kKjA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
dlp-product: dlpe-windows
dlp-version: 11.6.0.76
dlp-reaction: no-action
msip_labels: MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ActionId=2ffcf721-fbbc-4181-a596-42882d8ddbd3; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ContentBits=0; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=true; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Method=Standard; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Name=0633b888-ae0d-4341-a75f-06e04137d755; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SetDate=2021-03-12T19:26:36Z; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SiteId=bea78b3c-4cdb-4130-854a-1d193232e5f4;
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [71.248.165.31]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 8ea03497-0a01-4761-1169-08d8e58d496f
x-ms-traffictypediagnostic: MN2PR05MB6623:
x-microsoft-antispam-prvs: <MN2PR05MB66238FF609A6FDB8329F6F4BD46F9@MN2PR05MB6623.namprd05.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: U/ubFH4qN3d5NX1BuWqhpFR8jxMWWuXGvi4eJ4q3fdnhFEm41w3cTkmprR5AcGn8sFrNy+un4djrLhKmVREqn8LCWE3fEEj5HzKfi39nLgwfFw2v7cP/B23iRfsFVCpx/xcm0fUWO4ZYFiQ0yhmnUxbDvh5wyXoader/B/iCHbikgUvE3/pOmN9rkYw52i6fKFnM4SJse51ImM9Mvexb8WPC6XVEm7Z0pTDH22kyVFvwfoazxhDcsdH+kQZUXTxnt24ruTFRC5x6ht1Ju08S848ny9hFEgS6UZZB/YDt098QQntb/tfb311o+7dhQ42qG2wCpaxuUUmqA3nD1VCjKomzGLcbTfsFaXkw3FRAS99AFly4h/RxnGc0vvyD0GhWn3dBEtD9DZ5Xs3xgnIu35vu2CdYpltgM4ub0dHD9/6mOeOBw7vD4aO41Wl/wMpeklpWmuuwBBgcrZb6NaBQEfT4q1HcNDcknvufDISLVvFJsI5kYDM7mlbWZQTlFQ3Vvk+mJqhzSlor4utGFR6AJGGMBo79CyH6GovH7ScbeBzE/o/2fePAbMW3urT6VAfE41H4LODhOyN65ziHBWUghSaT/aboB98L36DNgCOIW4lkn7rW14/hoSGxPf4PLRDf0/L2IoVzl2zADFTZczA5nkA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR05MB5981.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(136003)(39860400002)(366004)(396003)(76116006)(66446008)(7696005)(5660300002)(64756008)(4326008)(52536014)(66946007)(66476007)(6506007)(966005)(53546011)(186003)(316002)(478600001)(66556008)(9686003)(86362001)(33656002)(2906002)(8676002)(55016002)(110136005)(83380400001)(66574015)(71200400001)(26005)(8936002)(166002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: VkMBnlH1bVZWSTojw4/2W1SLfHp92gAZ6ieAK3ztrgMcvr+SQcprcWWqUYLd8Ha4w2EK9CFEzfeLiX24iomhTKn5pq5ZKV5JKwpqFKQJmfMYqkvKIgSBwVIRJx3sjrqLkmrA8m5JcM1304iNvbCprh+8LLUrH27JsAstulrFg/UkXKwHPFpLuzDceGkMvnpX8V6kEWCv4UoKBiq1n9WMVmb42gvyff4UJQ4zd67q1VQP4QMGJaZjBZBwoxv8v48CIlbsPzmmbZsJKStf5awq3Ppaglq486XTsAgWLTnjdOlb+nFBkWzR0H1cxjW9MbJXYrBZ0yEMCHSonAlNYxDQStAqgHRSiSaMpdSwxJ5qppdqd+vFFN2bhXfyZqq78Wcdua9yN7suZPgh8JtSTK7pCntSR6++XQI0bm5r1MKMyxXhJbNk+LT7b8dnuEI07EncWdjm5fIXzr07WbwIdkeQ8LWBW3ha+NG8BqhystvGLQrvZff0VqBc21GjpHxsZO75KKwXfe4PJuWurAEgae0WZe4QKUfHfk4z/iVbTJCyDtPDYZXNDs7kvSqE7+atYWll8SkPiD8rq9n1yUT/v259keZ6B4bwc6JE96clSarkRgW2sm4PMIRDCULP4EvgNb4ufO3VMAiefN9bV/Wp+Gv6IzFkdq7pKjGiepMJ690lUioV1LyqpcxriOoaHI1k/1Bsyf882vPjAbpUxzp2xTJA5jt4LCmVulP/2PFxJeD/LcnHnQEu55BGP4xZmIvKmZ2dKAW0q6aIdicWIDQtLITE9hA1ULubstaOWaCcdM0jl5JbQlE/vzLVUTCROFbZeEJ1jzO/0Xjnqs4tipdzXPoiAseT/3gtqngVaocC4bYWQx+olchS8uqWeXA+shqNUBj31Mzdzu8I6wmvpvygBP3hildcTLXmevez46ydlRLqOGgBwhhAgh8odOItbFJWUSmxdia+HeRBcMd94NjKE1D6cOzCCny+cHxh7fvgRPSqzsim7WOu/h9P1r7QqotcFM3Kvu0Cxh2DMnaTyDwEBQRpHmXFroZwpYejt3wkOEZvifUxjvsFZeA/FNPUCN43hugRJLQNctt5VKYBiCFSBCMfKWvpg95EKgo3oeSFhR4bQuKStxaWsTqOh+0ecYXOVdUQ5CQcdaExSG9a9IJBJbijDMxSbMe8iIoU2ibzsqU/bGaELvNs28C2MYSuqkKvjbqCEiqGtNOd280JKc4XXfVONBBa+TVzbMmGvQVmuKdDvw00lWusuSvK8MBsuumJJEegvg6mRA+AfIsddrLWVJDzAEp+6VYjAkcI/dbmUUUZF+JlKAEsZKsulk4zu+Autsw4
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_MN2PR05MB59815F65BE0982628ADB0E9ED46F9MN2PR05MB5981namp_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR05MB5981.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 8ea03497-0a01-4761-1169-08d8e58d496f
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2021 19:30:25.6311 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 3umun2euRjcQE5VNIpdewyxZkqyOJEt2pM+5zdkv/lOSQ16f8XxqvpbXY+BFyTOHMVh2fbx6BDr1pB/FCVfg8A==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR05MB6623
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-12_09:2021-03-12, 2021-03-12 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 impostorscore=0 malwarescore=0 phishscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 clxscore=1011 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103120142
Archived-At: <https://mailarchive.ietf.org/arch/msg/rift/rt28naSpn5xwZXARD4kSCNZfDZE>
Subject: Re: [Rift] RIFT YANG datamodel implementation
X-BeenThere: rift@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of Routing in Fat Trees <rift.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rift>, <mailto:rift-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rift/>
List-Post: <mailto:rift@ietf.org>
List-Help: <mailto:rift-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rift>, <mailto:rift-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Mar 2021 19:30:32 -0000

Hi Tony, Bruno,

My question about implementation was indeed NOT about implementing YANG model itself, but to confirm that known implementors of RIFT protocol are happy with the YANG model.
And I think I’ve got the answers.

Thanks.
Jeffrey

From: RIFT <rift-bounces@ietf.org> On Behalf Of Tony Przygienda
Sent: Wednesday, March 10, 2021 6:29 AM
To: Bruno Rijsman <brunorijsman@gmail.com>
Cc: rift@ietf.org
Subject: Re: [Rift] RIFT YANG datamodel implementation

[External Email. Be cautious of content]

Just reviewed stuff carefully as well (also based on _real_ implemenation ;-) but not Yang implementation). comment on -02



          +--ro hierarchy-indications?       enumeration

that's bit more complex, we're lacking

    leaf_only_and_leaf_2_leaf_procedures = 1,

which should be configurable

also, observe that level == 24 that can be configued is NOT equivalent to top-of-fabric which is a special flag

so


       leaf configured-level {

         type level;

         description

           "The configured level value of this node.";

       }

should be something much more complex around a union of

tof

leaf-only

leaf-with-leaf-2-leaf

numeric

then

overload

in configuration sense should be

overload {

status: true/false

timeout: optional timeout on config element

}

so I'd split between configured-overload and in-overload or just overload

if we allow to configure maximum nonce delta we should probably also allow to configure lifetime delta (both are pretty dangerous since they can break convergence real fast)

+--rw holdtime?

should be global-holdtime

since that can be ultimately per link

same for tide generation

          +--rw tie-security-key-id?         uint32

that should refer to standard yang security chain as e.g. OSPF uses

that should be also originating-key-id or something since we need (missing right now) the keys we are willing to accept as RW

on acceptance we need following variants

SecurityChecking {
   NoChecking,
   Permissive,
   Loose,
   Strict,
}

same @ link level for the security keys



look @ YAML model we use in open source RIFT to see further details

own pod missing





@ interface level

what is

    +--ro hal?    level

it seems backwards, HAL is of level type, no?

also list of HAL systemid offers is helpful here

also on link add instance-name

DATABASE

                |  +--ro (type)?

                |  |  +--:(prefix)

                |  |  +--:(positive-disaggregation)

                |  |  +--:(negative-disaggregation)

                |  |  +--:(external)

                |  |  +--:(positive-external-disaggregation)

                |  |  +--:(pgp)


oder strictly per thrift model since order has meaning here

                |  |  +--ro link-id-pair* [remote-id]

                |  |  |  +--ro local-id?    uint32

                |  |  |  +--ro remote-id    uint32

                |  |  |  +--ro if-index?    uint32



Rijsman, et al.          Expires August 26, 2021                [Page 7]

Internet-Draft               RIFT YANG Model               February 2021



                |  |  |  +--ro if-name?     if:interface-ref

                |  |  +--ro cost?                         uint32

                |  |  +--ro bandwidth?                    uint32

                |  |  +--ro flood-reduction?              boolean

                |  |  +--ro received-link-capabilities

                |  |     +--ro bfd?                     boolean

                |  |     +--ro v4-forwarding-capable?   boolean

missing

   14: optional set<common.AddressFamilyType>
       (python.immutable = "")                address_families;




















On Tue, Mar 9, 2021 at 2:55 PM Bruno Rijsman <brunorijsman@gmail.com<mailto:brunorijsman@gmail.com>> wrote:
I did not attend yesterday's RIFT working group meeting for IETF 110 live, but I did just finish watching the video recording.

At offset 21:17 in the video there is a question about whether my RIFT-Python open source implementation has implemented the proposed YANG data model. The answer is that I have not actually implemented the YANG data model, so I won't be able to submit an implementation report.

I did very carefully review the YANG data model. I checked which of the attributes in the YANG data model could be supported by my implementation (or any other reasonable implementation). And also, based on the attributes that are reported / configurable in the open source code I made suggestions about adding new attributes to the YANG data model. My comments on the YANG data model are based “on real implementation” in that narrow sense, it is not based on actually implementing the YANG data model.

-- Bruno
_______________________________________________
RIFT mailing list
RIFT@ietf.org<mailto:RIFT@ietf.org>
https://www.ietf.org/mailman/listinfo/rift<https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/rift__;!!NEt6yMaO-gk!S0AWM3IbQZKTIE3K-doU4DpvPqiocIhzhU052mnvskTy1tzWcxkPeMDBYOSdE9lJ$>


Juniper Business Use Only