Re: [babel] Example configuration

Mahesh Jethanandani <mjethanandani@gmail.com> Thu, 08 August 2019 21:56 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6F8AB120073 for <babel@ietfa.amsl.com>; Thu, 8 Aug 2019 14:56:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=gmail.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 P66yQAqjgRjo for <babel@ietfa.amsl.com>; Thu, 8 Aug 2019 14:56:07 -0700 (PDT)
Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D9DD12002F for <babel@ietf.org>; Thu, 8 Aug 2019 14:56:07 -0700 (PDT)
Received: by mail-pf1-x434.google.com with SMTP id q10so44830417pff.9 for <babel@ietf.org>; Thu, 08 Aug 2019 14:56:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=oKYGfAsdSi58iumP5hUuORo+guVyhaklREgPgcLTiA4=; b=Z+EZG8S4AOpEOF8/SZSiCOk8Gej5jlxrUKLdmVDIin5uouSIp7kOFQOyJHGDvSpW69 Imw3ov3cTmnWuN7jJx/ZddOppIikogPcUJkxTMYsZsZIwv1HQ8DQ32TGHnvdkSGnIlTp 7uaLrt6QRkteiBeJRFoC4Hewj4OPSfpqj6LOBzdqaJ5UeIO8ugdJ0YkFWoYX5lDyhGr8 8qAbFOZOAqfiEcLFyOAGoucRwQw8wgByR9fXYgeAMxjMxOwyj0B2/X0M/11iOofM0cM9 tcp4+ZJCQOWaSjVyipRD/0Bm0D5tzA41TcaGwDP58EDBKtzBB/2ZKIZdN7NpMD0vQH0H YGEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=oKYGfAsdSi58iumP5hUuORo+guVyhaklREgPgcLTiA4=; b=BFVwnFlCJOvHpAfEIdRijUEUODhNZd/tPPYF3EZwGh3wASxB+ps3DBQO0xeQE/Pr+g t4Jium2wID81hXA1Qv3RRwzc6xh+dXgchKYgiBthBHeheXYi5J6dBT3dwVYsBO9YlbYr TdlVrBSpLYQe2Xzr9KFMTpxI/zkns3tPsHKvhXWxl1cU+M8GmvChaOqRffqU5jZUI184 UqDnzQ6eEmjUrGH4o+4h+HxUkr9VumxZt+yOd85RG4xPKHuaqcVDSUmEbpj01DYJIyo9 kfNl5TiagZHJnRq/YAlmdcGfkd62vzIz7KtWKcofxx/FZrnT0gnWcsojh8nNYQRH3Avy CNcA==
X-Gm-Message-State: APjAAAWY4X8cCoeZ+ICrMQXn9+iFP3AOY1cUvMeRGRCcSKhg8HBiMyXN kDQYLOeagb1kaiKKVkJ+5xE=
X-Google-Smtp-Source: APXvYqzpOXLp40ZCjncaZywOTaCzpSpG1gtHxSawDOvgpsJA7LLX9jLIoSrIEcA95nJ8cImcAwq9qw==
X-Received: by 2002:a63:29c4:: with SMTP id p187mr14885658pgp.330.1565301366664; Thu, 08 Aug 2019 14:56:06 -0700 (PDT)
Received: from [10.1.244.27] ([66.170.99.95]) by smtp.gmail.com with ESMTPSA id v13sm108815504pfe.105.2019.08.08.14.56.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Aug 2019 14:56:05 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <26F1A0CD-1FD2-456E-B295-8A60D93CF8E0@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_B0C3707D-A46B-4235-84DC-0913055AC0DF"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Thu, 08 Aug 2019 14:55:59 -0700
In-Reply-To: <87ftmbs92f.fsf@toke.dk>
Cc: "STARK, BARBARA H" <bs7652@att.com>, Babel at IETF <babel@ietf.org>, Juliusz Chroboczek <jch@irif.fr>
To: Toke Høiland-Jørgensen <toke@toke.dk>
References: <E726ED50-6D90-4537-B237-6E52D375F50B@gmail.com> <8736itu6j8.wl-jch@irif.fr> <0E0A89B7-3D7A-4605-8776-2CF685B268B0@gmail.com> <877e7qaxte.wl-jch@irif.fr> <1C6F628C-7A3C-4D66-9930-9F0244A20722@gmail.com> <8736ieasm6.wl-jch@irif.fr> <EF249683-1BB0-4686-A77A-847E64E4EA50@gmail.com> <87pnlhaixh.wl-jch@irif.fr> <2D09D61DDFA73D4C884805CC7865E6114E257961@GAALPA1MSGUSRBF.ITServices.sbc.com> <0B28A1FA-32B4-41E6-B646-C6A3907E9CCC@gmail.com> <2D09D61DDFA73D4C884805CC7865E6114E258CF7@GAALPA1MSGUSRBF.ITServices.sbc.com> <B2CE14DA-DEDA-40FB-AA96-FB4009F5FA19@gmail.com> <2D09D61DDFA73D4C884805CC7865E6114E25905B@GAALPA1MSGUSRBF.ITServices.sbc.com> <87lfw3u52i.fsf@toke.dk> <110D87BA-BBA1-417B-9BC3-77BAD4B201D1@gmail.com> <87ftmbs92f.fsf@toke.dk>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/PxIr1OBjIm8itr_pjBRUj0bqGyk>
Subject: Re: [babel] Example configuration
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Aug 2019 21:56:12 -0000

Hi Tote,

> On Aug 8, 2019, at 1:20 PM, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>> 
>> While seemingly more complex, it is not. First of all, with your
>> proposed schema, if you need the same presets for multiple interfaces,
>> you would be having to repeat them for multiple interfaces. Secondly,
>> there is no way in YANG to define a set of presets, so there will be
>> no drop down menu to select from.
> 
> These both sound like UI issues rather than configuration protocol
> issues. I'm not familiar with how YANG works, but from this it sounds
> like a UI cannot deviate from what is defined in the YANG model?

YANG is a data modeling language. It models configuration and operational parameters, defining what type of value a particular parameter is. It does not specify a value for them. For example, it models babel-interace-split-horizon parameter as a boolean. Unless a default is desired, it will not even tell you whether the value for split horizon is true or false. That is for the operator or whoever wants to manage the Babel protocol on the device to configure. That is why I said, YANG will not define preset values, for example “wired”, “wireless” or “other" UI. That is up to the operator to define.

> 
>> We were going to document the three or four well known presets.
>> Thirdly, while these names and values may make sense to us, they may
>> not to an operator, who might want to configure their own set of
>> presets.
> 
> But how does this work in the case where nothing is set on the
> management interface, the implementation auto-detect the interface type,
> and fills out the defaults based on the type? As Juliusz explained, the
> preset keyword cannot generally be inferred from the set values, so what
> is the info model / management interface supposed to do in this case?

Let us take two concrete examples. One where the operator has a eth0 interface which is connected to a wired network and does not need any link properties defined, as the implementation knows what to do with a wired interface. The second where it needs to set split horizon to false because the eth1 interface is connected via a bridge to the radio network.

In the first example, and assuming the model Barbara and I suggested, the operator does not need to anything to specify any link properties for eth0. The implementation can pick out the defaults based on the interface type (wired in this case) and use it. 

In the second example, the operator will define a babel-link-properties-obj, call it “radio” or “wireless” or anything they want, and within that object set the babel-interface-metric-algorithm (because it a mandatory parameter), and set the babel-split-horizon to false. They will then associate “radio” object with eth1 interface.

Does that help?

> 
> -Toke

Mahesh Jethanandani
mjethanandani@gmail.com