Re: [Lsr] draft-ietf-ospf-yang

"Acee Lindem (acee)" <> Tue, 04 December 2018 19:46 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id AE172130E59; Tue, 4 Dec 2018 11:46:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -15.96
X-Spam-Status: No, score=-15.96 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.46, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id G_e10SKUBGwz; Tue, 4 Dec 2018 11:46:09 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 6B9CD130E5A; Tue, 4 Dec 2018 11:46:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=2436; q=dns/txt; s=iport; t=1543952769; x=1545162369; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=B1W+tg4d4Xq3BRL8aZ0j1vIAh0G6s07lbRYOIdl6ExM=; b=SMUVXjiBHa9t/UGE2MFQE/ZnmXAniRsh1A30XbFSIh28Rj2iVmT8DxNX YTwBd9jQHOGR8ck7D/7b5aaTkDLodZbUD1KiDVN3fo3/hRPc7SNfdxFRC deiyg8P7SeW8PukH46imJidewI7INYFOsYdwV49+HAUOQGnqpz5Cojelu c=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AHAABF2AZc/5BdJa1kGgEBAQEBAgE?= =?us-ascii?q?BAQEHAgEBAQGBUgQBAQEBCwGCA4FoJwqDb5QngWiXboF6CwEBhGwCF4JzIjU?= =?us-ascii?q?IDQEDAQECAQECbSiFPQYjEVUCAQgaAiYCAgIwFRACBAESgyGCAqUAgS+EAgG?= =?us-ascii?q?GKoELixMXgX+BECgME4JMiAUxgiYCiQ2XPAkCkT8YkSaJBo9KAhEUgScgATa?= =?us-ascii?q?BVXAVZQGCQYInF41mATZBMYpJgR8BAQ?=
X-IronPort-AV: E=Sophos;i="5.56,315,1539648000"; d="scan'208";a="208496050"
Received: from ([]) by with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2018 19:46:08 +0000
Received: from ( []) by (8.15.2/8.15.2) with ESMTPS id wB4Jk8Dd014629 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 4 Dec 2018 19:46:08 GMT
Received: from ( by ( with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 4 Dec 2018 14:46:07 -0500
Received: from ([]) by ([]) with mapi id 15.00.1395.000; Tue, 4 Dec 2018 14:46:07 -0500
From: "Acee Lindem (acee)" <>
To: tom petch <>, "" <>, "" <>, "" <>, "" <>
Thread-Topic: draft-ietf-ospf-yang
Thread-Index: AQHUi/kT6LQa9fvqSUmy655qm6w/ZqVu/AyA
Date: Tue, 4 Dec 2018 19:46:07 +0000
Message-ID: <>
References: <576_1542796445_5BF5349D_576_261_1_9E32478DFA9976438E7A22F69B08FF924B7731BE@OPEXCLILMA4.corporate.adroot.infra.ftgroup> <> <19021_1543406661_5BFE8445_19021_254_3_9E32478DFA9976438E7A22F69B08FF924B776CB0@OPEXCLILMA4.corporate.adroot.infra.ftgroup> <> <26904_1543488239_5BFFC2EF_26904_436_1_9E32478DFA9976438E7A22F69B08FF924B777AA8@OPEXCLILMA4.corporate.adroot.infra.ftgroup> <00ce01d48bf8$be184980$>
In-Reply-To: <00ce01d48bf8$be184980$>
Accept-Language: en-US
Content-Language: en-US
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: []
Content-Type: text/plain; charset="utf-8"
Content-ID: <>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <>
Subject: Re: [Lsr] draft-ietf-ospf-yang
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Link State Routing Working Group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Tue, 04 Dec 2018 19:46:12 -0000

Hi Tom, 

Let me try to explain. 

On 12/4/18, 12:44 PM, "tom petch" <> wrote:

    The router id in this I-D confuse me.
    RFC8294 defines
         typedef router-id { type yang:dotted-quad;

Some implementations configure a global router-id while others only allow it at the control-plane-protocol level. This is why we have it in both places. 
    ospf-yang defines
     leaf ipv4-router-id { type inet:ipv4-address;

For better or worse, OSPF has a separate TE address that is routable and referred to as the TE router-id. You'll note that this is part of the te-rid container in both the OSPF and IS-IS YANG models. We could add "-te-" to the leaves to avoid confusion. 
    draft-ietf-teas-yang-te-types defines
      typedef te-node-id {     type yang:dotted-quad;
     ...       This attribute is mapped to Router ID ....

This is just wrong. It is a routable address in the IGP TE extensions. I've copied the draft authors. 

Acee Lindem

    Three different YANG types for a router id.
    Behind this, ospf-yang gives as references for a router te id
    RFC3630(V2) and RFC5329(V3).  Reading these, my take is that a router id
    is needed for te but that the existing id should be used where possible
    i.e. creating an additional identifier for the same instance of the same
    entity is A Bad Thing (which sounds like a good general principle).
    With two objects in the lsr protocols, that would appear to make at
    least three identifiers for the same instance of the same entity.
    I copy Stephane on this since the same issues apply to the other lsr
    protocol, mutatis mutandi.
    Tom Petch