Re: [Netconf] [yang-doctors] YANG Doctor question: empty mandatory choice? (was RE: YangPush now)

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Thu, 26 July 2018 22:11 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 82A91131246; Thu, 26 Jul 2018 15:11:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] 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 qJAIRWZ-Ttr5; Thu, 26 Jul 2018 15:11:23 -0700 (PDT)
Received: from anna.localdomain (firewallix.jacobs-university.de [212.201.44.247]) by ietfa.amsl.com (Postfix) with ESMTP id 8A0BD131244; Thu, 26 Jul 2018 15:11:23 -0700 (PDT)
Received: by anna.localdomain (Postfix, from userid 501) id A945A2385F90; Fri, 27 Jul 2018 00:11:21 +0200 (CEST)
Date: Fri, 27 Jul 2018 00:11:21 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Eric Voit (evoit)" <evoit=40cisco.com@dmarc.ietf.org>
Cc: Kent Watsen <kwatsen@juniper.net>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
Message-ID: <20180726221120.bv3mtlitoqqov2zm@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: "Eric Voit (evoit)" <evoit=40cisco.com@dmarc.ietf.org>, Kent Watsen <kwatsen@juniper.net>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
References: <727ae35abd394a85812168615acce2d3@XCH-RTP-013.cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <727ae35abd394a85812168615acce2d3@XCH-RTP-013.cisco.com>
User-Agent: NeoMutt/20180716
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/cl-4wzU6KVwvg0npjS2TYN9YVLg>
Subject: Re: [Netconf] [yang-doctors] YANG Doctor question: empty mandatory choice? (was RE: YangPush now)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Jul 2018 22:11:26 -0000

On Thu, Jul 26, 2018 at 07:22:40PM +0000, Eric Voit (evoit) wrote:

> For all receivers in a subscription, the selected transport choice
> case in Kent’s suggestion above MUST match to the value of the
> “transport” leaf which is one level higher in the tree.  I.e.:
> 
>     +--rw subscriptions
>        +--rw subscription* [identifier]
>           +--rw transport                                  transport {configured}?
>           +--rw receivers
>              +--rw receiver* [name]
>              +--rw (transport)
>                 +--rw :(NETCONF)
>                 |  +--rw (NETCONF specific call home parameters)
>                 +--rw :(HTTP2)
>                     +--rw (HTTP2 specific parameters)
> 
> (Note on the tree above, I inserted the NETCONF and HTTP2 cases of
> transport for illustration purposes for the question below.  These
> two cases would actually be incorporated via separate augmentations
> to the ietf-subscribed-notifications.yang model.)
> 
> Considering above, It seems difficult to enforce that the transport
> cases selected under all receivers for a single subscription MUST be
> identical, and also MUST match to the value of the “transport” leaf
> under the subscription.

Why is the transport leaf needed if the choice cases identify the
transport? Why do all receivers of a subscription have to use the same
transport?

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>