Re: [OSPF] draft-ietf-ospf-yang-03 questions and doubts

t.petch <ietfc@btconnect.com> Thu, 12 May 2016 17:45 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: ospf@ietfa.amsl.com
Delivered-To: ospf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D64712D107; Thu, 12 May 2016 10:45:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.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 T4-JlEUgsGWQ; Thu, 12 May 2016 10:45:49 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0723.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe04::723]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E89F012D0F7; Thu, 12 May 2016 10:45:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5fY3myGoHzImZCv4uMid6nKYxkKEhHxMRnYr2hiJ9ok=; b=QDjPrevhHXp4qFq5MUU85jS+TSBTwbFG5HEbt7p07Yckch8zVlrl1Ik38Bjw3UiYIqbxTQJuSaYMQFjRzHjvTjhLOFJpiCiXCCsx4hxx2M7JTmJkJM3In61QR62uzlxFWxSozWJnk5+HU4j5eH8St6LD840exAItcuH2gCM+Ll4=
Authentication-Results: metaswitch.com; dkim=none (message not signed) header.d=none;metaswitch.com; dmarc=none action=none header.from=btconnect.com;
Received: from pc6 (109.145.193.232) by VI1PR07MB1632.eurprd07.prod.outlook.com (10.166.142.150) with Microsoft SMTP Server (TLS) id 15.1.497.12; Thu, 12 May 2016 17:45:31 +0000
Message-ID: <01f101d1ac75$8fd66a80$4001a8c0@gateway.2wire.net>
From: t.petch <ietfc@btconnect.com>
To: Alan Davey <Alan.Davey@metaswitch.com>, "Derek Man-Kit Yeung (myeung)" <myeung@cisco.com>, <draft-ietf-ospf-yang@ietf.org>
References: <C2EE31C852049D499842B19FC01C0804012A72782A@ENFICSMBX1.datcon.co.uk> <D2D8C451.73937%myeung@cisco.com> <CY1PR0201MB1066110895F4C141E7779015F9AF0@CY1PR0201MB1066.namprd02.prod.outlook.com> <D2FDEE96.7531D%myeung@cisco.com> <BN3PR0201MB10597DBA718D60998EA82E0FF9950@BN3PR0201MB1059.namprd02.prod.outlook.com> <BN3PR0201MB10593ECF530B4B73B7EDEA38F9720@BN3PR0201MB1059.namprd02.prod.outlook.com>
Date: Thu, 12 May 2016 18:41:06 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [109.145.193.232]
X-ClientProxiedBy: DB3PR05CA0016.eurprd05.prod.outlook.com (10.160.41.144) To VI1PR07MB1632.eurprd07.prod.outlook.com (10.166.142.150)
X-MS-Office365-Filtering-Correlation-Id: 1ff47432-8677-4a2a-a692-08d37a8d36ec
X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB1632; 2:muk5F4FKY2YBPtE68+ByAX/OhxjFUbrm5OMq645selRGllKeex3VFvsIfd5Wj7WxGFq+1sMU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Ykkxp2uxrqMRX0r/Ic=
X-Microsoft-Antispam-PRVS: <VI1PR07MB16326BA3826D7DB305DC6064A0730@VI1PR07MB1632.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(95692535739014);
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:VI1PR07MB1632; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB1632;
X-Microsoft-Exchange-Diagnostics: 1; VI1PR07MB1632; 4:WDQ537dueFMg3cxZhKoF3LEAR7kwZLZ4+nTT2KVbtAhMyDN8VDWeQtaZKdrtux/M4eXE5vBMuYfhu0TtM5TK07UQh9HzHk5LFRLg36XQrPQzrqLNbNORsN7rObr2fjMN1F7eVEkr7wk4wILrAVCGmvpS7ephmyiCR1WNGZp67xKd0GKEiIB+JfZOzTMys0nrSw0q2bOK5XPNaXSF3mRvfOyjy/pwVhNkfN6AFCBFFtG4xD3Iu9PSN4SECl+5mmmvRNpjyWwsyoQtU52e2+upBoF3Zr+YxPXJcJo4TCYuTkpFrCdVHDOBxnZ5LqUDuTJGkBDLQxWYjrQD8OB04/EZxu16XE8oEXcNmoNV3kcRGSWCCo1gd4tFglVfZFYdf2KR8UzCIJMeApoM2WFYr6iTS6ioYm/9Yd/uYB3BsBKGmBs=
X-Forefront-PRVS: 0940A19703
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(377454003)(13464003)(76104003)(81816999)(14496001)(86362001)(81686999)(93886004)(76176999)(50986999)(9686002)(47776003)(62236002)(1556002)(1456003)(230700001)(77096005)(19580405001)(116806002)(4326007)(84392002)(19580395003)(50466002)(44716002)(44736004)(50226002)(92566002)(106356001)(2906002)(5004730100002)(81166006)(230783001)(5001770100001)(33646002)(97736004)(66066001)(189998001)(23756003)(5008740100001)(42186005)(586003)(6116002)(3846002)(61296003)(74416001)(7726001)(4720700001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB1632; H:pc6; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en;
X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1; VI1PR07MB1632; 23:1Z0h0rEhg/lzY8biAVrtknUr8C+eHs3eEzIF+EM?= =?iso-8859-1?Q?Cv4J1esZ1WfkYFfAXP6XVd9wlFRRq006LWb8SgXA5ToKpnaTHgURC0gJos?= =?iso-8859-1?Q?1G3oN+950F2gfejkSXvAMdjQOFustDXq/0gnRS8OiIQIKFOGZPOUwM0HZS?= =?iso-8859-1?Q?WsyOFZnt0CH3oSiHWON6trEINQ5ax4MuZ9KcECCxGkA/x29+ilFY8PJVc5?= =?iso-8859-1?Q?/M97w/z67tGu/8Te9AzYGbUu/uD5Rj8PFVPsdBWT/O5EHrMGrabSo9SHfB?= =?iso-8859-1?Q?ZDcQNutqZUxnFJrjuaFa/JpnGETZBOTIaQ6KYQpSTWDSdEV399p0MrC0I4?= =?iso-8859-1?Q?bn21Nl7O1q3yTyWx+ZllC8j1eqfeM9SonVu/HycT2RjRcwOEDSZyj7xTKt?= =?iso-8859-1?Q?XrsIunNAo00fyuRw78pDz4TgUWXSQq//8OIijd4JxmhReCpZr5QdrfK8ck?= =?iso-8859-1?Q?f7xmDt9tmSdBAuzHFvXj5Pwn2nrQfnmb5Tji6swfRjNItle/c1zRqraVFE?= =?iso-8859-1?Q?YwEFX5fmQUVnZFjGrRqiDikjEyaMHW+KmCJAa2WsLH5dvUTD1UiIFg4nbX?= =?iso-8859-1?Q?9oZVXr+x5FPQnacI8ttn4t9nw0R4Vumy5+B9vPAs6xbX+ABZilG+bg6nKz?= =?iso-8859-1?Q?CVLgmHF2jz84PZ9Io3o78oEp9TX0j9HjWgtZis3vvkGuUQ9B7RJNTWNYZX?= =?iso-8859-1?Q?eCD6AkWa91LRM+tCTnESSVgxzbOlKEvKUqoBw9Nkcs5x84wHTdlt4TDUpw?= =?iso-8859-1?Q?klxxr6qbVvUOrJnC6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V+AppD1buKastElVUSmXmBps+AwDS+qieRI4Yt7bX2yZPCjEqi2lrKbLJIKHa91qUCg3uroohiQhIpJUXkjHhaCWbz1PJ6
SpamDiagnosticOutput: 1:23
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2016 17:45:31.5452 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB1632
Archived-At: <http://mailarchive.ietf.org/arch/msg/ospf/ovWVgj1I_leYxsocIuiWHUK6RCQ>
Cc: OSPF WG List <ospf@ietf.org>
Subject: Re: [OSPF] draft-ietf-ospf-yang-03 questions and doubts
X-BeenThere: ospf@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: The Official IETF OSPG WG Mailing List <ospf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ospf>, <mailto:ospf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ospf/>
List-Post: <mailto:ospf@ietf.org>
List-Help: <mailto:ospf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ospf>, <mailto:ospf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 May 2016 17:45:52 -0000

----- Original Message -----
From: "Alan Davey" <Alan.Davey@metaswitch.com>
To: "Derek Man-Kit Yeung (myeung)" <myeung@cisco.com>om>;
<draft-ietf-ospf-yang@ietf.org>
Cc: "OSPF WG List" <ospf@ietf.org>
Sent: Wednesday, May 11, 2016 5:40 PM

Hi Derek

A question about the key for OSPF interfaces in the Yang draft.  Please
let me know what you think.

The background is that the Management Information Base definitions
define indices for OSPF interfaces as follows.


-          For OSPFv2, RFC 4750 defines the index as ospfIfIpAddress,
ospfAddressLessIf.

-          For OSPFv3, RFC 5643 defines the index as ospfv3IfIndex,
ospfv3IfInstId.

However, in the OSPF Yang draft, the key is defined as "interface",
which I believe is a name of the interface.

How does "interface" map to the indices defined in RFCs 4750 and 5643?

<tp>

It doesn't (IMHO).  You have two lists of interfaces in this I-D

container interfaces { description "All interfaces."; list interface {
key "interface";
description "List of OSPF interfaces.";

container interfaces { description "All interfaces in the area.";  list
interface { key "interface";
description "List of OSPF interfaces.";

both keyed on 'interface' (which is two separate lists so two separate
'interface' leaf, different sets of key objects.).

Both are defined as

     type if:interface-ref;

and the if: harks back to
     import ietf-interfaces {prefix "if";
and ietf-interfaces is in RFC7223 where interface-ref is defined as
"   An interface is identified by its name, which is unique within the
   server.  This property is captured in the "interface-ref" and
   "interface-state-ref" typedefs, which other YANG modules SHOULD use
   when they need to reference a configured interface or operationally
   used interface, respectively."

So both lists are keyed on a name which is unique within the server and
can be anything, such as 'lan0' or 'fast-ethernet-23/7' or
'hotplug23/6/15' or... It all depends; names may be dictated by the
hardware with no choice, or they may be dictated by the software to
compliant hardware or ...

Underlying this is the thought that we have no good definition of an
interface, one that works across all protocols and other aspects of a
configuration; an interface is like a blob of jelly and pinning it down
to be a name is about as good a grasp of it as we will get (IMO).

Tom Petch

Thanks
Alan