Re: [netconf] [netconf-wg/https-notif] Should the receivers container be moved under the augment statement and the leafref renamed? (#2)

Martin Bjorklund <mbj@tail-f.com> Tue, 11 February 2020 15:32 UTC

Return-Path: <mbj@tail-f.com>
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 0AB0C1208B6 for <netconf@ietfa.amsl.com>; Tue, 11 Feb 2020 07:32:40 -0800 (PST)
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, SPF_HELO_NONE=0.001, SPF_PASS=-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 wtFBEBl9VqNU for <netconf@ietfa.amsl.com>; Tue, 11 Feb 2020 07:32:38 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 62266120880 for <netconf@ietf.org>; Tue, 11 Feb 2020 07:32:38 -0800 (PST)
Received: from localhost (unknown [173.38.220.37]) by mail.tail-f.com (Postfix) with ESMTPSA id 460651AE018B; Tue, 11 Feb 2020 16:32:34 +0100 (CET)
Date: Tue, 11 Feb 2020 16:31:55 +0100
Message-Id: <20200211.163155.825868185729184607.mbj@tail-f.com>
To: kent+ietf@watsen.net
Cc: netconf@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <0100017034db6704-09a8b95c-654c-4a99-9a08-31f94e265b9e-000000@email.amazonses.com>
References: <0100016fa69f59c6-212e569d-fb2b-47cb-a1ff-e897829ba111-000000@email.amazonses.com> <20200211.142456.1627117725994673253.mbj@tail-f.com> <0100017034db6704-09a8b95c-654c-4a99-9a08-31f94e265b9e-000000@email.amazonses.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset="utf-8"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/jsmhfYkZiQhlYEpj8D_rUZXoQaM>
Subject: Re: [netconf] [netconf-wg/https-notif] Should the receivers container be moved under the augment statement and the leafref renamed? (#2)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG 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: Tue, 11 Feb 2020 15:32:40 -0000

Kent Watsen <kent+ietf@watsen.net> wrote:
> Hi Martin,
> 
> >>>> The reason to not move the receiver container under the augment is so
> >>>> as to allow the leafref to point to multiple receivers.
> >>> 
> >>> I don't understand this reason.
> >> 
> >> Each "receiver" (in https-notif) maps to an HTTPS connection from the
> >> publisher to the receiver.
> >> 
> >> There is likely to be more than one configured subscription, yet all
> >> notifications should go to the same receiver.
> >> 
> >> We'd like to use the same HTTPS "connection" for all, as opposed to
> >> having an HTTPS connection for each.
> >> 
> >> The "receiver-ref" leaf provides an indirection enabling this
> >> many-to-one relationship.
> > 
> > I can't find the original thread about this issue, so I'll rephrase
> > what I (think I) wrote from the start:
> > 
> > I understand the reason for the many-to-one, and I wish we had that in
> > the base model itself (i.e., RFC 8639), so that protocol-documents
> > didn't have to invent this, and so that we could have
> > receiver-specific config in one place.
> 
> I agree, it would’ve been better in RFC 8639.  I recall Juergen
> writing once that he expected it to be a common pattern.  But that is
> behind us now, or are you suggesting a -bis?  Is there is an action
> coming out of this fork in the thread?

No I don't expect a -bis for this.  When/if we do a -bis, we should
have a look at this.


/martin


> 
> 
> >>> Since this is not a stand-alone model, I think it should augment
> >>> /sn:subscriptions.  In some way it doesn't matter what nodes are
> >>> called and where they are located, but having descriptive names and
> >>> keep related nodes under common subtrees helps the understanding of
> >>> models.
> >> 
> >> Is s/receiver-ref/https-receiver-ref/ what you had in mind?
> > 
> > Yes, as a minimum.
> > 
> > I would also change the top-level container "receivers" to augment
> > /sn:subscriptions:
> > 
> >  augemnt /sn:subscriptions {
> >    container https-receivers {
> >      ...
> >    }
> >  }
> 
> Ah, I see now, thank you for providing the snippet.
> 
> 
> Kent // contributor
> 
> 
> 
>