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

Alan Davey <Alan.Davey@metaswitch.com> Tue, 15 December 2015 16:30 UTC

Return-Path: <Alan.Davey@metaswitch.com>
X-Original-To: ospf@ietfa.amsl.com
Delivered-To: ospf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 727481A9084; Tue, 15 Dec 2015 08:30:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.001
X-Spam-Level:
X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
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 WLI9O_Itgzo7; Tue, 15 Dec 2015 08:30:20 -0800 (PST)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0765.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc10::1:765]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2D4381AC3A1; Tue, 15 Dec 2015 08:23:28 -0800 (PST)
Received: from BY1PR0201CA0041.namprd02.prod.outlook.com (10.160.191.179) by BL2PR02MB433.namprd02.prod.outlook.com (10.141.94.146) with Microsoft SMTP Server (TLS) id 15.1.337.19; Tue, 15 Dec 2015 16:23:13 +0000
Received: from BN1AFFO11FD008.protection.gbl (2a01:111:f400:7c10::127) by BY1PR0201CA0041.outlook.office365.com (2a01:111:e400:4814::51) with Microsoft SMTP Server (TLS) id 15.1.355.16 via Frontend Transport; Tue, 15 Dec 2015 16:23:12 +0000
Authentication-Results: spf=pass (sender IP is 192.91.191.64) smtp.mailfrom=metaswitch.com; ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=bestguesspass action=none header.from=metaswitch.com;
Received-SPF: Pass (protection.outlook.com: domain of metaswitch.com designates 192.91.191.64 as permitted sender) receiver=protection.outlook.com; client-ip=192.91.191.64; helo=metaswitch.com;
Received: from metaswitch.com (192.91.191.64) by BN1AFFO11FD008.mail.protection.outlook.com (10.58.52.68) with Microsoft SMTP Server (TLS) id 15.1.346.13 via Frontend Transport; Tue, 15 Dec 2015 16:23:12 +0000
Received: from ENFICSCAS2.datcon.co.uk (172.18.4.11) by ENFICSCAS2.datcon.co.uk (172.18.4.11) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Tue, 15 Dec 2015 16:23:10 +0000
Received: from ENFIRHMBX1.datcon.co.uk (172.18.74.36) by ENFICSCAS2.datcon.co.uk (172.18.4.11) with Microsoft SMTP Server (TLS) id 15.0.1104.5 via Frontend Transport; Tue, 15 Dec 2015 16:23:10 +0000
Received: from ENFICSMBX1.datcon.co.uk ([fe80::d5d5:c683:a3be:3a19]) by ENFIRHMBX1.datcon.co.uk ([fe80::b06d:4d13:5f63:3715%12]) with mapi id 14.03.0266.001; Tue, 15 Dec 2015 16:23:10 +0000
From: Alan Davey <Alan.Davey@metaswitch.com>
To: "draft-ietf-ospf-yang@ietf.org" <draft-ietf-ospf-yang@ietf.org>
Thread-Topic: draft-ietf-ospf-yang-03 questions and doubts
Thread-Index: AdE3NLGjjtMGuql0QfiSt+s9ulh9zg==
Date: Tue, 15 Dec 2015 16:23:09 +0000
Message-ID: <C2EE31C852049D499842B19FC01C0804012A72782A@ENFICSMBX1.datcon.co.uk>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.18.209.34]
Content-Type: multipart/alternative; boundary="_000_C2EE31C852049D499842B19FC01C0804012A72782AENFICSMBX1dat_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD008; 1:6XATyjHUHOV/lRA5IAb4iVb4/SvQFdj653RpYJnV10QrMORS4+IHY7h97OS97XEBASvpaCaHLDM7fmIGg42Vi3oJQoziB5+x6YQJKtpeWhEWu6S4Qn+DWxHBYXWqDnRsJhQfXd/dvZV79NUk8ImGV8kDSqTaReVdCyynLq1KyWqv9PFLjBCT3kK+5Znx4Rq6dM1ZLffRe7BDTB4piduqMfBmYJluxk0nrT1K2XTcjNkbR2E72ZjVwp35d8WZzV6LwdqyXQPAiAOPHhM989Abv1NmBmsxbbQAfYNaK5Sux9oL7+QPimB8s4abG9+NBZ9jLfXiWKtvfY2My94pFGBXI/dymfIVVnbUw+4H/7sWcgdUTAQo6meFMm7t0EkeqI6NKj6l7Lc/DiEZcCGdkL+yUMabEKdlYaJHvDL+cPDNXJE=
X-Forefront-Antispam-Report: CIP:192.91.191.64; CTRY:GB; IPV:CAL; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(438002)(199003)(51444003)(189002)(1096002)(55846006)(6116002)(300700001)(230783001)(15975445007)(19625215002)(5003600100002)(512934002)(54356999)(19300405004)(19580395003)(50986999)(92566002)(2900100001)(5250100002)(790700001)(40036005)(86362001)(586003)(53416004)(110136002)(2351001)(33656002)(84326002)(2501003)(102836003)(5001970100001)(1220700001)(2920100001)(229853001)(6806005)(189998001)(26826002)(22756006)(450100001)(87936001)(3846002)(5008740100001)(5004730100002)(11100500001)(2930100002)(16236675004)(106466001); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR02MB433; H:metaswitch.com; FPR:; SPF:Pass; PTR:enficscas2.metaswitch.com; A:1; MX:1; LANG:en;
X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB433; 2:WFR3CRXHcsaQLNUiRi28kzpAqxRRKljeDo8i/KxI1fC6GVRUIgmBy7k2xmoTVporqw9vnGDWxvCrJ6+eB0mk6X+jcp229n+cRNzaeEf7TZe+tPJZcOWH9b1vNxZq8lKZtAgGibwunHBgsrAMzx2kbw==; 3:rReJuxMluIlyJgsirfEbFrYXKlycL0ZUOf7Ct65nHbLi2mMTSqOdP1uhbu48MOpop/o9ZJGv9vOEDabm/el/mxFP8Hq57LWv6ZJ47BwOHOPWuSPbzvxJKBZRwvVm4DtKdJNuNJ4mUpR9zD1PnA1aQW7Ru7nyaVIoIWN603LkxxkEQ/IRxDZ7BT1R+zwcdxNYw/ikhebJsKyP0KsM5ZAhh0q3pLLOhDd1Bw2MtS0wlgMjxf9XA1CB50NzXMDgGLUulhvEXRckiI1cURu12ntAkg==; 25:CSwc1H3xLYVRTVXMOsik9xrw+H5PGoWte2BAN4TPJMUSD2KPondDw/RT/jl+i2PVCtjyZ8yHvEsB/y49TpsOsnf0+emnEksnLMy729talmxxTlTajWMCf5ZTHkESYF0vJcnJgkqFPifoKxsJIGGN/aGqnT/BKHcGI8++LW64eJr+sIvl4ep0EG+5Rq3U550qf6FTuBU+VwS/OG/xiVLIBM33ROrW1+xaSIItMAffbGTfBnmQEbdqnxnyWPhIx8PiY9bOygkmJIpqVbOZIe0Ryw==; 20:ZUy+ExH3dtN/zKZV8nJL0LkiL6qCyRHGNBzb+qgQX02++WajAlWKQ8FMyjsQedmx841Hoy044eCI3cHZoXFpaVBcbagBIZg3cfl21+/SQH2cjNt3pYtStladanojbN5nYVgR4CfmZmBiHFUGa5IlKac8x68muBP6stuqbYPvzjo=
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BL2PR02MB433;
X-Microsoft-Antispam-PRVS: <BL2PR02MB433B6217DD2104FB2889D30F9EE0@BL2PR02MB433.namprd02.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046); SRVR:BL2PR02MB433; BCL:0; PCL:0; RULEID:; SRVR:BL2PR02MB433;
X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB433; 4:aA43R12TKhLMF9Gi5P0UBjXG313I99437x+nWwiTH6fHBU9KRuw/PIzal8mpD5qNbq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2O9e+WYcAttrgqgo1xFQ70Ju5YM5R5aocF/5GZ2q7QK/x00pesHiZQ==; 24:5tEO3t4LJ4bWu01mpYnh1IcTE80/LxK9rc01fXFzcK7w/XZrQBRicfPif4GptjR0ftoFxvADuN8ycHWBb9qrasxXRkFV+gRnoFvLOzdg6gM=
SpamDiagnosticOutput: 1:23
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: metaswitch.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2015 16:23:12.0347 (UTC)
X-MS-Exchange-CrossTenant-Id: 9d9e56eb-f613-4ddb-b27b-bfcdf14b2cdb
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=9d9e56eb-f613-4ddb-b27b-bfcdf14b2cdb; Ip=[192.91.191.64]; Helo=[metaswitch.com]
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR02MB433
Archived-At: <http://mailarchive.ietf.org/arch/msg/ospf/3ZVruc4XEf8ozk_IqAbABrnFxpA>
Cc: "ospf@ietf.org" <ospf@ietf.org>
Subject: [OSPF] draft-ietf-ospf-yang-03 questions and doubts
X-BeenThere: ospf@ietf.org
X-Mailman-Version: 2.1.15
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: Tue, 15 Dec 2015 16:30:26 -0000

Folks

I have a doubt about draft-ietf-ospf-yang-03.  Please let me know your thoughts on the following.

The text is OSPFv2-specific in places.  I think that it would be better to define separate top-level groupings and containers for OSPFv2 and OSPFv3 and define common groupings and containers, where possible, that are used by both.

For example, grouping interface-operation contains the following, which is incorrect for OSPFv3.


-          leaf dr with type ipv4-address

-          leaf bdr with type ipv4-address.

I think that it would be better to define something along the following lines.


-          ospfv3-interface-operation {

o   uses interface-config

o   uses ospf-common-interface-operation

o   leaf dr {

§  type if:interface-ref

§  description:

·                   "The remote interface ID used by the Designated Router on

·                   this link.  This is the interface index of the interface local to the DR.";

o   etc

-          ospfv2-interface-operation {

o   uses interface-config

o   uses ospf-common-interface-operation

o   leaf dr {

§           type inet:ipv4-address;

§           description "Designated Router (DR) IP address.";

o   etc.

Regards
Alan Davey