Re: [netmod] I-D Action: draft-ietf-netmod-schema-mount-03.txt

Ladislav Lhotka <lhotka@nic.cz> Wed, 02 November 2016 14:26 UTC

Return-Path: <lhotka@nic.cz>
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 2BE3E129675 for <netmod@ietfa.amsl.com>; Wed, 2 Nov 2016 07:26:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
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 8pfLal2MTCA8 for <netmod@ietfa.amsl.com>; Wed, 2 Nov 2016 07:26:45 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 65316129661 for <netmod@ietf.org>; Wed, 2 Nov 2016 07:26:44 -0700 (PDT)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id B041E1CC028A; Wed, 2 Nov 2016 15:26:50 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: "Acee Lindem (acee)" <acee@cisco.com>
In-Reply-To: <D43E3790.86E09%acee@cisco.com>
References: <147792321214.32369.17480502582405559340.idtracker@ietfa.amsl.com> <D43D2A12.86A35%acee@cisco.com> <20161101.085153.1841880487538583641.mbj@tail-f.com> <D43DF1E3.86D18%acee@cisco.com> <E1688D2A-24BF-4AE7-B0A8-16529652DFE1@nic.cz> <D43E3790.86E09%acee@cisco.com>
Date: Wed, 02 Nov 2016 15:26:43 +0100
Message-ID: <m260o6lzz0.fsf@birdie.labs.nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/MFDBhinmw3FYaEuhqW-9Cp9FJpU>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] I-D Action: draft-ietf-netmod-schema-mount-03.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Wed, 02 Nov 2016 14:26:47 -0000

"Acee Lindem (acee)" <acee@cisco.com> writes:

> On 11/1/16, 7:38 AM, "Ladislav Lhotka" <lhotka@nic.cz> wrote:
>
>>
>>> On 1 Nov 2016, at 12:21, Acee Lindem (acee) <acee@cisco.com> wrote:
>>> 
>>> 
>>> 
>>> On 11/1/16, 3:51 AM, "Martin Bjorklund" <mbj@tail-f.com> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> "Acee Lindem (acee)" <acee@cisco.com> wrote:
>>>>> Hi Lada, Martin,
>>>>> 
>>>>> With respect to the restriction in section 3.1, I think it would be
>>>>> better
>>>>> to support paths that relative either to the mount point or to the
>>>>> absolute device root If not, how will we support device list interface
>>>>> references? 
>>>> 
>>>> Can you elaborate on the use case a bit?
>>> 
>>> Let’s say you want to schema mount a model, e.g., ietf-routing, and it
>>>has
>>> references to interfaces using the interface-ref from ietf-interfaces
>>>(RFC
>>> 7223). Is this possible?
>>
>>It is possible if ietf-interface and ietf-routing are part of the same
>>(mounted) schema. If you want to have, e.g., a global list of interfaces
>>and refer to it from a mounted schema (routing instance), then it is not
>>supported by schema mount - and it could hardly be because modules such
>>as ietf-routing do not have the information where they can possibly be
>>mounted.
>>
>>It is probably necessary, as in the logical-devices example, to include
>>ietf-interfaces in the mounted schema, and handle the relationship
>>between the global and mounted interface list outside the data model.
>>
>>Ideas how to handle this formally would certainly be appreciated.
>
> I think we need to be able to handle either an absolute path or one
> relative to the mount point. I can see how this is going to be difficult
> since the models don’t support this today.

We need to consider two cases:

1. Routing instances that refer to a global list of interfaces.

2. Logical/virtual devices as in Appendix A that refer to local/mounted interfaces.

Even if we invent some means for specifying paths starting from the
global root, I don't see how we could cover both 1 and 2 in the same
module.

Lada

>
> Thanks,
> Acee 
>
>
>
>
>
>>
>>Lada 
>>
>>> 
>>> Thanks,
>>> Acee 
>>> 
>>> 
>>> 
>>> 
>>>> 
>>>> 
>>>> /martin
>>>> 
>>>> 
>>>> 
>>>>> 
>>>>> Thanks,
>>>>> Acee 
>>>>> 
>>>>> On 10/31/16, 10:13 AM, "netmod on behalf of internet-drafts@ietf.org"
>>>>> <netmod-bounces@ietf.org on behalf of internet-drafts@ietf.org> wrote:
>>>>> 
>>>>>> 
>>>>>> A New Internet-Draft is available from the on-line Internet-Drafts
>>>>>> directories.
>>>>>> This draft is a work item of the NETCONF Data Modeling Language of
>>>>>>the
>>>>>> IETF.
>>>>>> 
>>>>>>       Title           : YANG Schema Mount
>>>>>>       Authors         : Martin Bjorklund
>>>>>>                         Ladislav Lhotka
>>>>>> 	Filename        : draft-ietf-netmod-schema-mount-03.txt
>>>>>> 	Pages           : 24
>>>>>> 	Date            : 2016-10-31
>>>>>> 
>>>>>> Abstract:
>>>>>>  This document defines a mechanism to combine YANG modules into the
>>>>>>  schema defined in other YANG modules.
>>>>>> 
>>>>>> 
>>>>>> The IETF datatracker status page for this draft is:
>>>>>> https://datatracker.ietf.org/doc/draft-ietf-netmod-schema-mount/
>>>>>> 
>>>>>> There's also a htmlized version available at:
>>>>>> https://tools.ietf.org/html/draft-ietf-netmod-schema-mount-03
>>>>>> 
>>>>>> A diff from the previous version is available at:
>>>>>> https://www.ietf.org/rfcdiff?url2=draft-ietf-netmod-schema-mount-03
>>>>>> 
>>>>>> 
>>>>>> Please note that it may take a couple of minutes from the time of
>>>>>> submission
>>>>>> until the htmlized version and diff are available at tools.ietf.org.
>>>>>> 
>>>>>> Internet-Drafts are also available by anonymous FTP at:
>>>>>> ftp://ftp.ietf.org/internet-drafts/
>>>>>> 
>>>>>> _______________________________________________
>>>>>> netmod mailing list
>>>>>> netmod@ietf.org
>>>>>> https://www.ietf.org/mailman/listinfo/netmod
>>>>> 
>>>>> _______________________________________________
>>>>> netmod mailing list
>>>>> netmod@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/netmod
>>>>> 
>>> 
>>> _______________________________________________
>>> netmod mailing list
>>> netmod@ietf.org
>>> https://www.ietf.org/mailman/listinfo/netmod
>>
>>--
>>Ladislav Lhotka, CZ.NIC Labs
>>PGP Key ID: E74E8C0C
>>
>>
>>
>>
>

-- 
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C