[netmod] extensions and conformance

Ladislav Lhotka <lhotka@nic.cz> Mon, 10 August 2015 08:14 UTC

Return-Path: <lhotka@nic.cz>
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 034411B2CE3 for <netmod@ietfa.amsl.com>; Mon, 10 Aug 2015 01:14:16 -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
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 opV-t-HW0PFR for <netmod@ietfa.amsl.com>; Mon, 10 Aug 2015 01:14:14 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 6885A1AD367 for <netmod@ietf.org>; Mon, 10 Aug 2015 01:14:13 -0700 (PDT)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id 13FAA1CC0329 for <netmod@ietf.org>; Mon, 10 Aug 2015 10:14:17 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: netmod@ietf.org
User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.4.51.2 (x86_64-apple-darwin14.0.0)
Date: Mon, 10 Aug 2015 10:14:22 +0200
Message-ID: <m2tws7zhk1.fsf@birdie.labs.nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/7MxjH_aDeIL0mofeJtqCRVBN9kA>
Subject: [netmod] extensions and conformance
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: Mon, 10 Aug 2015 08:14:16 -0000

Hi,

recent discussions show that 6020(bis) text about extensions isn't
sufficiently clear about the scope and semantics of extensions. IMO this
needs to be fixed and so I propose to add the following item to YANG 1.1
issue list. Comments and additional solutions are welcome.

Lada

------------------------------------------------------------------------
* NEW :Yxx: clarify conformance wrt extensions

** Description

   YANG extensions as defined in RFC 6020 have no limits on scope –
   they can possibly modify YANG language, datastore semantics or even
   the NETCONF protocol. However, from the text in RFC 6020 it is
   unclear whether extensions appearing in YANG modules advertised by
   a server are mandatory to implement: "If a YANG compiler does not
   support a particular extension, which appears in a YANG module as
   an unknown-statement (see Section 12), the entire unknown-statement
   MAY be ignored by the compiler."

** Solution Yxx-01
   
   Extensions appearing in the server's model are an integral part of
   the server-client contract. That is, the server MUST implement
   them, and the client SHOULD terminate the session if it doesn't
   implement any of the extensions.

** Solution Yxx-02

   Develop a mechanism for negotiating extensions.

** Solution Yxx-03

   Make extensions optional. This means that extensions won't be
   allowed to change YANG language, NETCONF protocol, and validity of
   datastores and protocol messages.
------------------------------------------------------------------------

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