[netmod] Schema mount and Network Instance model

Mahesh Jethanandani <mjethanandani@gmail.com> Tue, 21 January 2020 23:25 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9A45212004E; Tue, 21 Jan 2020 15:25:56 -0800 (PST)
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 YZHexVvrRV1P; Tue, 21 Jan 2020 15:25:52 -0800 (PST)
Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (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 57E2D12002E; Tue, 21 Jan 2020 15:25:52 -0800 (PST)
Received: by mail-pl1-x634.google.com with SMTP id p23so435149plq.10; Tue, 21 Jan 2020 15:25:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:cc:to; bh=hThdqzZ8cKL1R0lp8t9bTSD/R5bkNeYk97eFBBjIvP0=; b=mS6PC8VX8xaTKOoRpmJpUyMpQt0vcG9iVcVj/ytC2SBS6wOizMwPC/bessFhi72x5c 5usmqBRbzqoAgg+gaSrh07H6NfZbOvUKqlx6KAWqc4fvJyTJ8yCsb1sR5yz8h5HKPb3C RSu1ni3Y01zgzER0y0DvvsYBMOH2KazUSGFypdc/3J9TYiSQaCFq6PgbAE52bubHVrFb VZGQkcGJNH/12KhV8ystc+y1lUsF/4cKKWmluuDyd/r7IgC/10DQBcVdqswIe4LzCId9 EsVSfHvn9SuZO0VvLOQkMAo6ETswJKlC0/QA/wPLNc1jzbk1ZIKDBER+ODK1bY1PMMv1 o59g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:cc:to; bh=hThdqzZ8cKL1R0lp8t9bTSD/R5bkNeYk97eFBBjIvP0=; b=RifS4EXu0JpIDNUf4uarg3sDdnWj9ogPFtw3R0Aif2s6LxqvBqQ8CJx+93Nt66v2mI FbS3W1v4TvvomWbuSSsXYsTlR/AvbUS2HC0Z/XcBXCKs/+oTpqgWMTUvLb/kVPUBqSIt /pOWvfZwJguWRbVfgsVojrbHoQ3ddMGyKy1vM3k2QoWilME3Bw462H4clQ3AVNMXfFGz kHOjRx9YAm4pJdTCWMK9wX8Cv3qdbW/0c38w5B+TFtyyig01guZeDwcswouM5zt0x6LA k6NMBCuFVnHAvdCMYN/ogdpk0h2keSc6LBfJOTAbLoD4vThOoOgFHOuR72XvdYdclLJN 25lw==
X-Gm-Message-State: APjAAAXGSbW7RET00pogUx4E6JdiqR2kEgU2y8AQifX8yxV/sm9q+MM3 6E5zUYWRc1ncy0uCc+4sdXpMOXbO
X-Google-Smtp-Source: APXvYqx9cGfH5EcHyfMcKpZj5KtTPo+t4i/pjZYVxCdOzs39SvsjF0O76bJtCj+pcXQkgJujym2WkA==
X-Received: by 2002:a17:90a:8001:: with SMTP id b1mr991580pjn.39.1579649150409; Tue, 21 Jan 2020 15:25:50 -0800 (PST)
Received: from [10.33.123.108] ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id i68sm45534956pfe.173.2020.01.21.15.25.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jan 2020 15:25:49 -0800 (PST)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_81FBEBBD-4BC6-40EB-83F6-09AA84BB1F97"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Message-Id: <D551C809-9650-4DFB-A4E3-607CC88A4F8C@gmail.com>
Date: Tue, 21 Jan 2020 15:25:48 -0800
Cc: draft-ietf-idr-bgp-model@ietf.org, Jeffrey Haas <jhaas@juniper.net>, Jeffrey Haas <jhaas@pfrc.org>
To: netmod <netmod@ietf.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/zAZFvUXtFQb0rmHCiwfjJh1pbSY>
Subject: [netmod] Schema mount and Network Instance model
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Jan 2020 23:25:57 -0000

The network-instances YANG model [RFC8529] gives an example in Appendix A.1 <https://tools.ietf.org/html/rfc8529#appendix-A.1> of how to use schema mount to mount the routing protocol. An example modeled along those lines for the BGP YANG model, and enclosed herewith fails validation using yanglint with the following error. What am I doing wrong?

Validating yang/example-bgp-configuration-a.1.3.xml
err : Unknown element "routing". (/ietf-network-instance:network-instances/network-instance[name='vrf-red']/vrf-root)
failed (error code: 0)

With confdc it fails as follows:

Loading Data for example a.1.3
confd_load: 666: maapi_load_config(sock, tid, flags, abspath(argv[0])) failed: external error (19): Error on line 9: unknown element: routing in /ni:network-instances/ni:network-instance[ni:name='vrf-red']/ni:vrf-root/rt:routing

If what I have is not an error, it raises two questions. Is schema mount supported? Supported from a validation perspective. I can imagine that not everyone (or anyone) may have actually implemented schema mount. 

And the second and more important question is how are routing protocols supposed to support VRF if the two models, network instance and routing protocol, do not work together? What needs to change to get them to work?

Thanks.

Mahesh Jethanandani
mjethanandani@gmail.com