[netmod] YANG Mount = Alias Mount + Peer Mount (was RE: Motivations for Structuring Models)

"Eric Voit (evoit)" <evoit@cisco.com> Tue, 15 September 2015 15:21 UTC

Return-Path: <evoit@cisco.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ADA551A00C1 for <netmod@ietfa.amsl.com>; Tue, 15 Sep 2015 08:21:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.511
X-Spam-Level:
X-Spam-Status: No, score=-14.511 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] 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 X9pZGtFQ_8BG for <netmod@ietfa.amsl.com>; Tue, 15 Sep 2015 08:21:23 -0700 (PDT)
Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D3A1A1A00BE for <netmod@ietf.org>; Tue, 15 Sep 2015 08:21:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3509; q=dns/txt; s=iport; t=1442330483; x=1443540083; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=5qkMMlHNlyYVJGpyAt6Zk/xBK6JLTbaHfqAG0ykfAsc=; b=nBskZAkNnpMYW4aYPK24QkLKD19Q7S1lpz8x361GJI1Af21GuyYLDMto DncHnX6y65dRQjq7GoKnZ2SMfgJTvOzLbd20xYX9yNRmlWtAa/Cw9KrsJ Us2DTeoEC1koGyznrzcjDQ8wvDDEnFWxpDbRU0ixRmwYg7YdxKMhG3viz Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0D0AQD2NvhV/4QNJK1VCIMjVGkGvUcBDYFvDIUtSoFAOBQBAQEBAQEBgQqEIwEBAQMBAQEBNzQLBQcGAR0hNwsmAQQBDQUIEQKICwgNymABAQEBAQEBAQEBAQEBAQEBAQEBAQEXhnOJMwxLhDMFjHcBiGQBhQ+JQEaVB4NrAR8BAUKCERwWgT5xiSWBBQEBAQ
X-IronPort-AV: E=Sophos;i="5.17,536,1437436800"; d="scan'208";a="29085713"
Received: from alln-core-10.cisco.com ([173.36.13.132]) by rcdn-iport-5.cisco.com with ESMTP; 15 Sep 2015 15:21:11 +0000
Received: from XCH-ALN-011.cisco.com (xch-aln-011.cisco.com [173.36.7.21]) by alln-core-10.cisco.com (8.14.5/8.14.5) with ESMTP id t8FFLBv1006399 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 15 Sep 2015 15:21:11 GMT
Received: from xch-aln-013.cisco.com (173.36.7.23) by XCH-ALN-011.cisco.com (173.36.7.21) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Tue, 15 Sep 2015 10:21:10 -0500
Received: from xch-aln-013.cisco.com ([173.36.7.23]) by XCH-ALN-013.cisco.com ([173.36.7.23]) with mapi id 15.00.1104.000; Tue, 15 Sep 2015 10:21:10 -0500
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: Ladislav Lhotka <lhotka@nic.cz>, Randy Presuhn <randy_presuhn@mindspring.com>, "netmod@ietf.org" <netmod@ietf.org>, Rob Shakir <rjs@rob.sh>
Thread-Topic: YANG Mount = Alias Mount + Peer Mount (was RE: [netmod] Motivations for Structuring Models)
Thread-Index: AdDvyhrI2wLjsCf6TN+s18UjF8BE5Q==
Date: Tue, 15 Sep 2015 15:21:10 +0000
Message-ID: <f5f8a7b1e43b4a608c4783de302fda7c@XCH-ALN-013.cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.118.56.229]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/CHs5iJ17Dh_3bPao-WEUEr_w0_E>
Cc: Sander Mertens <sander.mertens8@gmail.com>
Subject: [netmod] YANG Mount = Alias Mount + Peer Mount (was RE: Motivations for Structuring Models)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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, 15 Sep 2015 15:21:24 -0000

There was a recent thread on structuring YANG models so that application developers might be able to reference alternative local hierarchies/tree structures for certain objects.  This thread motivated Alex, Sander, and I to rework the YANG Mount requirements draft.  v03 is posted at:
http://datatracker.ietf.org/doc/draft-voit-netmod-peer-mount-requirements/

This draft has been retitled to "Requirements for mounting of local and remote YANG subtrees".  This retitling was done because we have separated the thinking on what it takes to Mount objects from remote devices (Peer Mount) from what it takes to Mount within the same device (Alias Mount).

We would be interested in your thoughts.   

Eric

-----Original Message-----
From: Ladislav Lhotka, August 31, 2015 11:05 AM

Randy Presuhn <randy_presuhn@mindspring.com> writes:

> Hi -
>
> It is with no little amusement that I watch this thread struggling 
> with questions that were solved fairly neatly a quarter century ago in 
> GDMO/CMIP-land.  I'm *not* suggesting we go back there, but would like 
> to offer an observation about modeling that might help.
>
> The organization of instance data in SNMP is a direct mirror of the 
> "object" definitions.  Simple at first, but quickly becoming baroque 
> as various minds of "multiplexing" are added to compensate for post 
> hoc deficiencies in the index structures.
>
> Life is such that once a resource has been modeled, it will be 
> used/re-used/embedded in systems in ways in which its designers 
> couldn't be expected to imagine.  A consequence of this is that if 
> instance naming is completely locked down when the management 
> interface for a resource is first defined (as it is in SNMP) then all 
> sorts of peculiar hacks will be needed to deal with, for example, 
> virtual routers.  Unfortunately, an SNMP/SMI-like mindset is so 
> pervasive that folks seem to overlook that there are other ways to 
> deal with this situation.
>
> What GDMO did was to use a separate "NAME BINDING" construct to 
> specify contexts in which instances might show up, allowing instances 
> to be put in places that weren't even imagined when the original class 
> definition was written.  Name bindings could be standardized, or be 
> vendor or even product-specific, allowing the simplicity or complexity 
> of a given system's instance tree to reflect the actual simplicity or 
> complexity of that system, rather than requiring all systems to be 
> structured for the worst case.

How could this be expressed in YANG terms? (I tried to figure it out myself but I unfortunately couldn't make any sense of sec. 8.6 in CCITT Recommendation X.722).

Thanks, Lada

>
> Yes, separating the specification of instance naming in large part 
> from class definition does have implications for how one does access 
> control, and how clients figure out how to ask a server to create 
> something, but it's not a huge deal - it's just not like VACM, and a 
> whole slew of hacky solutions and "wierd plumbing adapters" (to borrow 
> from Jeff Case) just go away.  Strangely, it makes the job of the 
> initial modeler and of the eventual user much easier.
>
> Randy
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

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