Re: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16

Douglas Hubler <douglas@hubler.us> Tue, 18 September 2018 21:35 UTC

Return-Path: <douglas@hubler.us>
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 048BE130E99 for <netconf@ietfa.amsl.com>; Tue, 18 Sep 2018 14:35:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hubler-us.20150623.gappssmtp.com
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 M3lb3PqcjG_K for <netconf@ietfa.amsl.com>; Tue, 18 Sep 2018 14:35:35 -0700 (PDT)
Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 276AA130E8C for <netconf@ietf.org>; Tue, 18 Sep 2018 14:35:35 -0700 (PDT)
Received: by mail-io1-xd2d.google.com with SMTP id y3-v6so2825620ioc.5 for <netconf@ietf.org>; Tue, 18 Sep 2018 14:35:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hubler-us.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+mIO6dgZZwNVUF23g64FV/j2vID4C9gmA/2WYkX4qLk=; b=NPHjkQYEfg5gBl/qNgjsAX/CxhNJ+wBEV/aajBlIHcWUv1byS4UCOIWXEY6ENMYT61 4SzgBU7/6RyqQ7j9+RNdZn9c/DPGNKEve8ezzPsdLcbf2Np8dsiZDSdXB5vd/EP6ZfaX BMcExQh3enp4gOBGcokFXVrcI5qWymkaJpkDpO6eTpwmiHiVkWPzJo9BIP1d0NU2Tw/L E8LYPZpc/8FPn1btQG5luywOJ8hlDRAAEjBk/jMH9cXTw2UkvCPHPt7xkKme9tfWPyxw kVjbGn/RMzKJCIIZWmOAOAN4hjzm14K6fvmD4HRAm37YgdgfI3zvG3uW7I6N49NZeSEQ LCgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+mIO6dgZZwNVUF23g64FV/j2vID4C9gmA/2WYkX4qLk=; b=bdm4GpGnNkCWTXsDU++cQdy0IGsVjl5cGWULWNOi5u8YAamOoSX4j+e4zQDLenCPOl A0hT+yPjmLPUZRWn6ZlZ1gxxfhyqFdB0tvm58OpdUS/WVRBI96I70tjPrnOi6psz5tLH ak5s4+ePnO4XIhSe0lfYw1Taqn6akeqV2nn3qyWXG8WHtRMj1qnhwfNvmYMfTJqo/XzC pxB9rj1TnQS5oYu74EQWUbTWw/JV+v97LuqmqQrXxa/wE+asE2xFQ8urjYGIZYtnkR13 /C7JehJjlJLYLGA5ArrDcUcbuRAEH15MR3k8KVKsiTtyK1z1xonYlM9ARgnAgZvkZEqw SiFA==
X-Gm-Message-State: APzg51AJFAGQGOq1icB7fzQ0ODRLaFUiccLDszve7l3aZFX1Vxilca8u Lng4m75/Gubz4gj0K2XcXrZl1suholk=
X-Google-Smtp-Source: ANB0Vdbm/fWtaH5iTjZ/n7NfEKCXATrYr3zz94kkJbth35NI+ONZMGYn7CrP0BZcytEfgWEQs2ugkQ==
X-Received: by 2002:a6b:18c5:: with SMTP id 188-v6mr26246546ioy.211.1537306534307; Tue, 18 Sep 2018 14:35:34 -0700 (PDT)
Received: from mail-it0-f41.google.com (mail-it0-f41.google.com. [209.85.214.41]) by smtp.gmail.com with ESMTPSA id a14-v6sm6703480ioh.45.2018.09.18.14.35.33 for <netconf@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Sep 2018 14:35:33 -0700 (PDT)
Received: by mail-it0-f41.google.com with SMTP id j81-v6so5502537ite.0 for <netconf@ietf.org>; Tue, 18 Sep 2018 14:35:33 -0700 (PDT)
X-Received: by 2002:a02:b517:: with SMTP id l23-v6mr29349452jaj.127.1537306533008; Tue, 18 Sep 2018 14:35:33 -0700 (PDT)
MIME-Version: 1.0
References: <20180914071445.ywfnizh4rnzbrs4f@anna.jacobs.jacobs-university.de> <CABCOCHRes7CLrdtyyTz1whmuuU_rMMVTHGh8vM32H+jukEf1LQ@mail.gmail.com> <CALAkb6emOEv0Zo6mss5wjp7NaO4pLbjZxGbNc2Bodt_PuZFu6A@mail.gmail.com> <20180918.214022.2268667197465086195.mbj@tail-f.com>
In-Reply-To: <20180918.214022.2268667197465086195.mbj@tail-f.com>
From: Douglas Hubler <douglas@hubler.us>
Date: Tue, 18 Sep 2018 17:35:21 -0400
X-Gmail-Original-Message-ID: <CALAkb6cfiFugMpSdU+FUhu9zRsWkXttGRZq80VQtD9kM+wM4bg@mail.gmail.com>
Message-ID: <CALAkb6cfiFugMpSdU+FUhu9zRsWkXttGRZq80VQtD9kM+wM4bg@mail.gmail.com>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: andy@yumaworks.com, j.schoenwaelder@jacobs-university.de, evoit@cisco.com, netconf@ietf.org
Content-Type: multipart/alternative; boundary="000000000000cf9df505762c11ba"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/lYG86kZiPI1gvzto_NXXwuMmaKE>
Subject: Re: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 18 Sep 2018 21:35:37 -0000

On Tue, Sep 18, 2018 at 3:40 PM Martin Bjorklund <mbj@tail-f.com> wrote:

> So it seems you support my point to make this draft use SSE.  Then if
> you use HTTP/2 you (the client) can simply create one HTTP/2 stream per
> notification stream.  This just falls out for free with HTTP/2.
>

yes, with caveat that I haven't attempted actual implementation yet.


>
> > I don't understand the details surrounding using an RPC to make a dynamic
> > subscription.  Unless it's optional, then I can start to understand.
>
> The client would POST to the "rpc" establish-subscripion, and in the
> reply to the POST is a "location" leaf (*) that contains a URI.  The
> client then GET this URI; this is the SSE event stream.
>

I see.  But if a client reads the YANG as

 module my-module {
    ...
    notification my-event {
    }
}

and client knew base stream URI was:

   /restconf/my-streams

Couldn't the client then deduce SSE URL as:

 GET  /restconf/my-streams/my-module:my-event?...

Thereby saving a trip to server?  Would it be wrong for a client to make
any assumptions?  I realize this ASSUMEs a transport protocol, but
could/would there be a one-time, capability check the client could make to
test for available transports?

I really appreciate your time explaining, I have been following the emails
best I could but I think some basic things are still eluding me.