Re: [Netconf] Anyone want just Configured Subscriptions?

Qin Wu <bill.wu@huawei.com> Mon, 09 July 2018 11:19 UTC

Return-Path: <bill.wu@huawei.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 05D37130E03 for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 04:19:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 9FoVtdbZeXkg for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 04:19:46 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 311E912D7F8 for <netconf@ietf.org>; Mon, 9 Jul 2018 04:19:46 -0700 (PDT)
Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 4C01134EB0765; Mon, 9 Jul 2018 12:19:41 +0100 (IST)
Received: from NKGEML413-HUB.china.huawei.com (10.98.56.74) by LHREML712-CAH.china.huawei.com (10.201.108.35) with Microsoft SMTP Server (TLS) id 14.3.382.0; Mon, 9 Jul 2018 12:19:42 +0100
Received: from NKGEML513-MBX.china.huawei.com ([169.254.1.13]) by NKGEML413-HUB.china.huawei.com ([10.98.56.74]) with mapi id 14.03.0382.000; Mon, 9 Jul 2018 19:19:30 +0800
From: Qin Wu <bill.wu@huawei.com>
To: Kent Watsen <kwatsen@juniper.net>, Martin Bjorklund <mbj@tail-f.com>, "j.schoenwaelder@jacobs-university.de" <j.schoenwaelder@jacobs-university.de>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] Anyone want just Configured Subscriptions?
Thread-Index: AQHUFdzs6pUMltb0wkuG62iYXwjIv6SDM+iAgABHKgCAAA3RgIAA6BaAgAAi8ACAAGVXAIAAHjWAgAAJWoCAAB9CAIABgKFw
Date: Mon, 09 Jul 2018 11:19:30 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABA9AEF376D@nkgeml513-mbx.china.huawei.com>
References: <20180708100310.gn3xaol66f7c7lo5@anna.jacobs.jacobs-university.de> <20180708.180552.1582913595227099806.mbj@tail-f.com> <20180708175359.mdcjgvddb453e2fc@anna.jacobs.jacobs-university.de> <20180708.202727.1096638437748786994.mbj@tail-f.com> <B0DEB8BF-A652-43E5-8F35-A9732F4FE04A@juniper.net>
In-Reply-To: <B0DEB8BF-A652-43E5-8F35-A9732F4FE04A@juniper.net>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.138.33.244]
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/OfuMNlGnOFLH3py-LOiWNbPaODM>
Subject: Re: [Netconf] Anyone want just Configured Subscriptions?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.26
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: Mon, 09 Jul 2018 11:19:49 -0000

-----邮件原件-----
发件人: Netconf [mailto:netconf-bounces@ietf.org] 代表 Kent Watsen
发送时间: 2018年7月9日 4:19
收件人: Martin Bjorklund; j.schoenwaelder@jacobs-university.de
抄送: netconf@ietf.org
主题: Re: [Netconf] Anyone want just Configured Subscriptions?



> > > > If you do this, why does the client, after receiving a call 
> > > > home, not simply create dynamic subscriptions? ;-)
> > > 
> > > Well, the configured subscription is needed anyway in order for 
> > > the device to call home, so having the client create all 
> > > configured subscriptions as dynamic subscriptions as well doesn't 
> > > seem quite right.
> > 
> > To call home, all you need is call home configuration, not 
> > configured subscriptions.
>
> Yes, but the configured subscription defines parameters (stream and
> filter) to trigger the call home action.

I think Juergen's idea is to just configure /netconf-server/call-home/ netconf-client instances, and for those instances that are for notifications, the client can do a dynamic subscription;  no need to configure anything under the /subscriptions/subscription/receivers...

[Qin]: Forget the history of removing address and port under the /subscriptions/subscription/receivers, what's the real concern for this?
To support call home, what additional parameters are besides address and port?

Another idea is to have a separate notifications-specific list of call-home clients, which might be defined as MUST needing to advertise a new capability indicating that the flow of <notifications> can occur immediately:

  module ietf-netconf-notifications {
    prefix nn;
    import ietf-netconf-server { prefix ncs; }
    import ietf-subscribed-notifications { prefix sn; }

    // define a *local* netconf-server instance
    container "netconf-server" {
      uses "ncs:netconf-server-grouping" {
        // prune out the "listen" subtree
        refine "listen" {
          when "false()";
        }
      }
    }

    // add leafref to above locally-configured call-home instances
    augment "/sn:subscriptions/sn:subscription/sn:receivers/sn:receiver" {
      leaf netconf-endpoint {
        type leafref {
          path "/nn:netconf-server/nn:call-home/nn:netconf-client/nn:name";
        }
      }
    }
  }

[Qin]: Does this new proposal has impact on ietf-netconf-notifications defined in RFC6470?
It looks netcnf-endpoint is not defined as part of base event notification.

Kent // contributor



_______________________________________________
Netconf mailing list
Netconf@ietf.org
https://www.ietf.org/mailman/listinfo/netconf